h1, p {
    margin: 1.5% 0;
}

#h1 {
    font-family: 'Righteous', cursive;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgb(202, 103, 28);
}

html, body {
    margin: 0;
    overflow-x: hidden;
}

.navbar a {
    text-decoration-line: none;
}

.navbar p {
    margin-left: 20px;
}

#preloader {
    position: fixed;
    z-index: 9999;
    height: 100%;
    width: 100%;
    background-color: #fff;
}
  
#preloader:before {
    content: '';
    display: block;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 25px 25px 25px;
    border-color: transparent transparent orange white;
    animation: spin 1s infinite linear;
}
  
@keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}
  
.navbar {
    background-color: orange;
    overflow: hidden;
    display: flex;
}

.navbar img {
    width: 5%;
}

.navbar p {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    text-align: center;
    color: rgb(255, 241, 222);
}

.active {
    background-color: #4CAF50;
    color: white;
}

/* Section 1 */  
.section1 {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255, 170, 0), rgba(255, 175, 0, 0.6));
}

.left {
    font-size: 20px;
    padding: 0% 8%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 7%;
}

.button {
    margin: 1% 0;
    background-color: orange;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.button:hover {
    background-color: white;
    color: orange;
    cursor: pointer;
}

.right {
    padding: 0% 5%;
    text-align: center;
    flex: 1;
    position: relative;
    margin-top: 7%;
}

.right img {
    max-width: 550px;
    height: auto;
}

.video-box {
    position: absolute;
    top: 44.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Add z-index to make the new image appear above the original image */
}

.video-box iframe {
    max-width: 410px;
    height: 270px;
}

svg {
    width: 100%;
}
  
path {
    fill: rgb(255, 175, 0);
    fill-opacity: 0.2;
}

.wave {
    animation: wave 8s linear infinite;
}

.wave1 {
    animation: wave1 10s linear infinite;
}

.wave2 {
    animation: wave2 12s linear infinite;
}

@keyframes wave {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(100%);
    }
}

@keyframes wave1 {
    0% {
      transform: scaleY(1.1) translateX(0%);
    }

    100% {
      transform: scaleY(1.1) translateX(100%);
    }
}

@keyframes wave2 {
    0% {
      transform: scaleY(.9) translateX(0%);
    }

    100% {
      transform: scaleY(.9) translateX(100%);
    }
}

/* Section 2 */
.head {
    font-family: 'Poppins', sans-serif;
    font-size: large;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-list {
    padding: 20px;
}

.contact-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.contact-list li {
    margin: 0 10px;
}
  
.contact-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}
  
.contact-list i {
    font-size: 60px;
    margin-right: 10px;
    color: #333;
}

.contact-list i:hover {
  color: orange;
  transition: color 0.2s ease-in-out;
}
  
/* Section 3 */  
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
    margin-right: 10px; /* added to separate span elements */
}

.head2 {
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    font-size: large;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3%;
}

.container {
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5% 5% 5%;
}

.container .icon {
    
}

/* Section 4 */
.border-container {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
}

.border-interval {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2%;
}

.border {
    padding: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 95%;
    display: grid;
}

.border > h2 {
    font-size: 48px;
    grid-column: 2;
    grid-row: 1;
    padding-left: 5% ;
}

.border > p {
    font-size: 20px;
    text-align: justify;
    grid-column: 2;
    grid-row: 2;
    padding: 0% 5% 0% 5%;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-right: 20px;
    grid-column: 1;
    grid-row: 1 / span 4;
    padding-right: 5%;
}

.border2 {
    padding: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 95%;
    display: grid;
}

.border2 > h2 {
    font-size: 48px;
    grid-column: 1;
    grid-row: 1;
    padding-left: 5% ;
}

.border2 > p {
    font-size: 20px;
    grid-column: 1;
    grid-row: 2;
    text-align: justify;
    padding: 0% 5% 0% 5%;
}

.image-container2 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-right: 20px;
    grid-column: 2;
    grid-row: 1 / span 4;
    padding-left: 5%;
}

.image-container img, .image-container2 img {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.image-container:hover img {
    transform: scale(1.15);
}

.image-container2:hover img {
    transform: scale(1.15);
}

/* Separate the two borders */
.border + .border {
     margin-left: 50px;
}
/* footer */
.footer-container {
    font-family: 'Montserrat', sans-serif;
    display: grid;
    grid-template-areas:
    'logo about'
    'logo join';
    padding: 3% 5% 2% 5%;
    background-color: #FCF5EF;
  }
  
  .footer-container > div > img {
    width: 150px;
  }
  
  .desc-detail {
    overflow-y: auto;
  }

  
/* Mobile Phone */
@media only screen and (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    .contact-list i{
        font-size: 20px;
    }
    .mt-md-3{
        margin-top: 3rem !important;
    }
    .footer-container {
        grid-template-areas:
        'logo'
        'logo'
        'about'
        'join';
    }
    h1, p {
        margin: 1% 0;
    }

    /* Section 1 */
    .section1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left, .right {
        padding: 10px;
        margin-top: 5%;
        text-align: center;
        flex: 1;
    }

    .left {
        padding: 5%;
    }

    .button {
        position: relative;
        transform: translate(-50%, 50%);
        left: 50%;
    }

    .right img {
        max-width: 100%;
    }

    #image-container {
        object-fit: cover;
        width: 70%;
        height: 70%;
        margin-left: 0.3%;
    }

    .image-container img {
        object-fit: cover;
        width: 320px;
        display: flex;
    }

    .image-box img {
        max-width: 100%;
    }

    /* Section 2 */
    .container {
        display: flex;
        flex-direction: column;
        width: min-content;
    }

    /* Section 3 */
    .border-container {
        flex-wrap: wrap;
    }

    .border {
        padding: 6%;
        height: auto;
        width: 80%;
        margin: 30px 0;
    }

    .border-interval {
        flex-direction: column;
    }

    .border + .border {
        margin-left: 0;
    }
}