@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Roboto Mono', monospace;
}

/* ----------------- Progress Bar -------------------- */

.scroll-indicator {
    width: 100%;
    height: 4px;
    background: #afabab;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    visibility: hidden;
}

.progress {
    width: 0%;
    background: rgb(242, 39, 39);
    background: linear-gradient(90deg, rgba(242, 39, 39, 1) 0%, rgba(245, 245, 245, 1) 28%, rgba(8, 6, 171, 1) 50%, rgba(255, 255, 255, 1) 71%, rgba(255, 0, 0, 1) 100%);
    height: 5px;
}

.top {
    display: none;
}

/* ----------------- Nav Bar -------------------- */

.desktop-container {
    display: none;
}

.mobile-container img {
    width: 4rem;
    margin: 0.5rem;
    color: black;
}

.mobile-container {
    margin: 1rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    /* box-shadow: 4px 1px 5px 2px black; */
    border: #416EF2 solid 3px;
    border-radius: 5px;

}

.mobile-container i {
    position: fixed;
    top: 1.8rem;
    right: 2.2rem;
}

.nav-popup {
    background-color: #416EF2;
    width: 65%;
    position: fixed;
    top: 5rem;
    right: 1.1rem;
    border-radius: 2px;
    opacity: 0;
}

.nav-popup * {
    color: #ffffff;
    list-style-type: none;
    padding: 1rem
}

.nav-popup a {
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
}

.nav-popup a:hover {
    font-weight: 600;
    text-decoration: underline;
}

.fa-bars {
    color: #416EF2;
    font-size: 2rem;
    border-radius: 5px;
}

.fa-xmark {
    background-color: #fff;
    color: #416EF2;
    font-size: 2.8rem;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
}

.show * {
    opacity: 1;
    pointer-events: painted;
    transition: all 0.2s ease-in-out;
}

/* ------------------- Header -------------------- */

header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: black;
    height: 100vh;

}

.main-img img {
    margin-top: 2rem;
    width: 80%;
}

header a {
    text-decoration: none;
}

.waviy {
    -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(0, 0, 0, .2));
    font-size: 1.8rem;
    font-weight: 700;
    padding-top: 5rem;
    margin: 3rem 0;
}

.waviy span {
    display: inline-block;
    color: black;
    animation: waviy 1s infinite;
    animation-delay: calc(.1s * var(--i));
}

@keyframes waviy {

    0%,
    40%,
    100% {
        transform: translateY(0)
    }

    20% {
        transform: translateY(-20px)
    }
}

.home :first-child {
    font-size: 2rem;
    margin: 2rem;
}

.home :nth-child(2) {
    font-size: 2.5rem;
    margin: 2rem;
}



/* ----------------- About me -------------------- */

.bookmark {
    display: flex;
    flex-direction: row;
    padding: 4rem 0;
}

.bookmark :first-child {
    height: 7px;
    width: 25%;
    background: #416EF2;

}

.bookmark :nth-child(2) {
    height: 7px;
    width: 25%;
    background: #e71009;
}

.aboutme {
    margin: 0 2rem;
    text-align: center;
    align-items: center;
    color: black;
}

.aboutme h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-check {
    margin: 3rem 0;
    padding-left: 2.5rem;
    text-align: left;
}

.aboutme img {
    margin-top: 2.5rem;
}

.aboutme h2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.aboutme p {
    margin-top: 1rem;
    font-size: 1rem;
}

.aboutme img {
    width: 9rem;
}

/* ---------------- Our courses ------------- */

.courses {
    text-align: center;
    align-items: center;
    color: black;
}

.courses h1 {
    font-size: 2.5rem;
}

.courses img {
    width: 70%;
}


.class-think-thai>* {
    margin: 1rem;
    text-decoration: none;
}


/* ------------------ Think Thai courses ----------------- */

.think-thai-class {
    margin: 0 2rem;
    text-align: center;
    align-items: center;
    color: black;
}

.think-thai-class h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.think-thai-class p {
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.think-thai-class span {
    font-weight: 900;
}

.think-thai-class img {
    width: 90%;
    margin-bottom: 1rem;
}

.think-thai-price {
    margin: 4rem 0;
}

.think-thai-price a {
    text-decoration: none;
}


/* ------------------ Books ----------------- */

.books {
    margin: 0 2rem;
    text-align: center;
    align-items: center;
    color: black;
}

.books h1 {
    font-size: 2.5rem;
}

.books img {
    width: 90%;
    margin-bottom: 1rem;
}

.books h3 {
    background: #dcddde;
    border-radius: 5px;
}

.books p {
    margin: 2rem 0;
}

/* ------------------ Teachers----------------- */

.teachers {
    margin: 0 2rem;
    text-align: center;
    align-items: center;
    color: black;
}

.teachers h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.teachers img {
    width: 100%;
    margin: 2rem 0;
}

/* --------------- Testimonial ------------------ */

.testimonial-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
  
  .testimonial-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .testimonial {
    width: 100%;
    flex: 0 0 auto;
    padding: 20px;
    text-align: center;
    scroll-snap-align: center;
  }
  
  .testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
  }
  
  .testimonial-name {
    font-size: 1rem;
    font-weight: bold;
  }
  
  .testimonial-text {
    font-size: 0.7rem;
  }
  
  .slide-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin: 0 3rem;
  }
  
  .prev-button,
  .next-button {
    display: inline-block;
    padding: 10px;
    background-color: #eaeaea;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 1rem;
  }
  
  .prev-button:hover,
  .next-button:hover {
    background-color: #d4d4d4;
  }
  
  

/* ------------------ Contact ----------------- */


.contact h2 {
    font-size: 2.5rem;
    text-align: center;
}

.ipad-form {
    margin: 0 2rem;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 16px;
}

button[type="submit"] {
    display: block;
    margin: 0 auto;
    padding: 15px 25px;
    background-color: #F20505;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #416EF2;
}


/* ------------------ Footer ----------------- */

footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    width: 100%;
    border: #416EF2 solid 4px;
    background-color: #fff;
    color: #416EF2;
}

.footer-icons {
    padding: 2rem;
}

.footer-icons i {
    font-size: 2rem;
    color: #416EF2;
    margin: 1rem;
}


/* ---------------- Copyright ---------------- */

.copyright {
    background-color: #416EF2;
    width: 100%;
    height: 80px;
}

.copyright p {
    font-size: 0.9rem;
}

.copyright p {
    color: #fff;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

/* -----------------Scroll to Top-------------------- */

.top {
    position: fixed;
    bottom: 15rem;
    right: 3rem;
    font-size: 3rem;
    padding: 0.5rem;
    background: transparent;
    border-radius: 5px;
    border: 2px solid #0468BF;
    cursor: pointer;
    outline: none;
    z-index: 111;
    opacity: 0;
    transform: translateY(10rem);
    color: #0468BF;
}

.showBtn {
    opacity: 1;
    transform: translateY(0rem);
}

/* 

///////////------------ IPAD --------------////////

*/

@media only screen and (min-device-width: 768px) {

    .progress {
        height: 6px;
    }

    .top {
        display: block;
    }

    /* ------------------- Header -------------------- */

    .main-img img {
        width: 90%;
    }

    .waviy {
        -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(0, 0, 0, .2));
        font-size: 4rem;
        font-weight: 700;
        padding-top: 5rem;
        margin: 4rem 0;
    }

    .waviy span {
        display: inline-block;
        color: black;
        animation: waviy 1s infinite;
        animation-delay: calc(.1s * var(--i));
    }

    @keyframes waviy {

        0%,
        40%,
        100% {
            transform: translateY(0)
        }

        20% {
            transform: translateY(-20px)
        }
    }

    .home :first-child {
        font-size: 3rem;
        margin: 4rem;
    }

    /* ----------------- About me -------------------- */

    .aboutme h1 {
        font-size: 3rem;
    }

    .aboutme img {
        margin-top: 3rem;
    }

    .aboutme h2 {
        font-size: 2rem;
    }

    .aboutme p {
        font-size: 1.3rem;
    }

    .aboutme img {
        width: 10rem;
    }


    /* ---------------- Our courses ------------- */

    .courses h1 {
        font-size: 3rem;
    }


    /* ------------------ Think Thai courses ----------------- */

    .think-thai-class h1 {
        font-size: 3rem;
    }

    .think-thai-class p {
        font-size: 1.3rem;
    }

    /* ------------------ Books ----------------- */

    .books h1 {
        font-size: 3rem;
    }

    .books p {
        font-size: 1.3rem;
        margin: 2rem 0;
    }

    /* ------------------ Teachers----------------- */

    .teachers h1 {
        font-size: 3rem;
    }

    .teachers p {
        font-size: 2rem;
    }

    /* ------------------ Contact ----------------- */


    .contact h2 {
        font-size: 3rem;
    }
}


/* 

///////////------------ Desktop ---------------


*/
    @media only screen and (min-device-width: 1024px) {

        body {
            margin: 0 4rem;
        }

        .mobile-container {
            display: none;
        }

        .desktop-container {
            margin: 1rem 2rem;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0rem 1rem;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #fff;
            border: #416EF2 solid 4px;
            border-radius: 5px;
        }

        .desktop-container-flex {
            display: flex;
            flex-direction: row;
            align-items: center;
            text-align: center;
        }

        .desktop-nav-list {
            display: flex;
            flex-direction: row;
        }

        .desktop-container-flex li {
            list-style-type: none;
            color: black;
            padding: 0.5rem 2rem;
            font-weight: 900;
        }

        .desktop-container-flex a {
            text-decoration: none;
            color: black;
        }

        .desktop-container img {
            width: 7%;
        }

        .desktop-container i {
            color: #fff;
            background-color: #416EF2;
            padding: 0.5rem;
            border-radius: 50%;
        }

        /* ------------------- Header -------------------- */

        .header-con {
            height: auto;
            margin: 0 5rem;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }

        .main-img img {
            margin-top: 2rem;
            width: 100%;
        }

 
        .waviy {
            font-size: 5rem;
        }


        /* ----------------- About me -------------------- */

     
        .aboutme h1 {
            font-size: 3rem;
        }

        .aboutme h2 {
            font-size: 1.5rem;
        }

        .about-check {
            display: none;
        }

        .aboutme-list {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
        }

        .aboutme-list div {
            margin: 2rem;
        }

        .aboutme p {
            font-size: 1rem;
        }
   

        /* ---------------- Our courses ------------- */


        .courses h1 {
            font-size: 3rem;
        }

        .courses img {
            width: 70%;
        }

        .class-think-thai {
            display: flex;
            justify-content: center;
        }

        .class-think-thai a {
            margin: 3rem 3rem;
        }


        /* ------------------ Think Thai courses ----------------- */

        .group-private {
            display: flex;
        }

        .group-private img{
            width: 70%;
        }

        .malmo-div, .group-private, .group-private {
            display: grid;
            grid-template-columns: 1fr 1fr;
            justify-items: center;
            align-items: center;
        }
        
        .malmo-div :first-child {
            text-align: left;
        }

        .malmo-div p{
            font-size: 1rem;
        }


        /* ------------------ Books ----------------- */

        .books {
            margin: 0 3rem;
        }

        .books h1 {
            font-size: 3rem;
        }

        .books h3 {
            padding: 3rem;
            font-size: 2rem;
        }

        .books img {
            width: 90%;
            padding: 2rem;
        }

        .speaking-pic, .reading-pic {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

    

        /* ------------------ Teachers----------------- */

       
        .teachers > div{
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .teachers img {
            width: 90%;
            margin: 2rem 2rem;
        }


        /* ------------------ Contact ----------------- */


        


        /* ------------------ Footer ----------------- */

        


        /* ---------------- Copyright ---------------- */

      

        /* -----------------Scroll to Top-------------------- */

        .top {
            position: fixed;
            bottom: 15rem;
            right: 3rem;
            font-size: 3rem;
            padding: 0.5rem;
            background: transparent;
            border-radius: 5px;
            border: 2px solid #0468BF;
            cursor: pointer;
            outline: none;
            z-index: 111;
            opacity: 0;
            transform: translateY(10rem);
            color: #0468BF;
        }

        .showBtn {
            opacity: 1;
            transform: translateY(0rem);
        }
    }