@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Montserrat&family=Oooh+Baby&family=Open+Sans:wght@300;400;700&family=Outfit:wght@300;700&display=swap');

html{
    /*scroll-behavior: smooth;*/
    width: 100%;    
    height: 100%;
}

body {
    width: 100%;    
    height: 100%;
}

.frame {
/*    display: flex;
    flex-direction: column;
    align-items: center;
*/    
    width: 100%;
    height: 100%;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
}

.frame svg{
    width: 100%;
}

.frame svg rect{
    filter: drop-shadow(0px 4px 3px rgb(0 0 0 / 0.3));
}

.frame .star{
    position: absolute;
}

.page {
    width: 100%;
    /*min-height: 100vh;*/
    display: flex;
    justify-content: center;

    position: relative;
}

.page__snappable{
    scroll-snap-align:  start;
}

.page-header{
    display: flex;
    justify-content: center;
    
    position: sticky;
    background-color: rgba(255,255,255,1);
    top: 0;
    
    width: 100%;
    z-index: 3;

    border-bottom: 1px solid #102D4D;
}

.page-header > .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    width: 1440px;
    height: 70px;
}

.page-header-logo{
    display: flex;
    align-items: flex-end;
}

.page-header-logo .icon{
    width: 60px;
    height: 60px;
    background-image: url("../img/logo.png");

    margin-left: 30px;
}

.page-header-logo .subtitle{
    padding-left:  5px;
    font-family: 'Open Sans', sans-serif; 
    font-weight: 700;
    font-size: 12px;
    color:  #A388D3;
}

.nav {
    display: flex;
    gap: 30px;

    margin-right: 30px;
}

.nav-item {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}

.nav-item a {
    display: block;
    color: inherit;
    text-decoration: none;
}



.page-content {
    width: 1280px;
        font-family: 'Fredoka One', cursive;
    padding-top: 100px;

}

.page-content h1{
    margin: 0;
    font-size: 60px;
    line-height: 75px;
    padding-left: 25px;
    padding-right: 25px;
}

/* home */

.page_home {
    background-color: #102D4D;
    color: #FFFFFF;
    height: 100vh;
}

.page_home .page-content{
    padding-top: 0;

    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.page_home .page-content .container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    /*margin-top: -100px;*/

}

.page_home .image-group{
    height: 450px;
    width: 100%;
    margin-bottom: 30px;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap:30px;
}

.page_home .hero-image{
    width: 420px;
    height:420px;

    background: no-repeat center center /contain;
    background-image: url('../img/home.png');
    z-index: 2;
}
.page_home .bishan-image{
    width: 300px;
    height: 300px;

    background: no-repeat center center /cover;
    background-size: auto 320px;
    background-color: white;
    background-image: url('../img/bishan.jpg');
    z-index: 2;

    border-radius: 40px;
}
.page_home .bishan-image p,
.page_home .yishun-image p{
    margin-top: 250px;
    width: 100%;
    text-align: center;
    font-size: 36px;
}
.page_home .yishun-image{
    width: 300px;
    height: 300px;

    background: no-repeat center center /cover;
    background-image: url('../img/yishun.jpeg');
    z-index: 2;

    border-radius: 40px;
}

.page_home .text {
    display: flex;
    justify-content: center;

    color: #FFFFFF;
    font-size: 64px;
    text-align: center;

    width: 100%;
    z-index: 2;
}

.page_home .text::before {
    color: #A388D3;
    content: "t";
}

.page_home .container{
    width: auto;
}

/* about us */

.page_about {
    background-color: #FFFFFF;
/*    background-image:  url('../img/star.svg'), url('../img/bottomheight.svg'), url('../img/topdark.svg');
    background-position:  bottom right, bottom, top;
    background-repeat: no-repeat, repeat-x, repeat-x;
*/
    background-image: url('../img/topdark.svg'), url('../img/bottomheight.svg');
    background-position:  center -120px, bottom;
    background-repeat:  repeat-x, repeat-x;
    background-size:  1000px, 1000px;

}

/*.page_about .page-content{
    margin-top: 50px;
}
*/

.page_about .container {
    display: flex;
    flex-direction: column;
    padding-bottom: 200px;
}

.page_about .detail{
    font-family: 'Outfit', sans-serif;
}

.page_about h3 {
    font-size: 32px;
    margin: 0;
}

.page_about p {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1.6em;
    color: #4C4C4C;
}

/* service */

.page_service {
    background-color: #E1E3F5;
    padding-bottom: 150px;
}

.page_service p {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #4C4C4C;
}

.page_service .container {
/*    display: grid;
    grid-template-columns: auto auto auto auto;
*/    
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.page_service .card-list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:  20px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.page_service .card{
    flex:  280px 0 0;
    color:  #4c4c4c;
    margin-top:  50px;
}

/*.page_service .card__tuition{
    flex:  50% 0 0;
    justify-content: flex-start;
}

.page_service .card__tuition .content-group{
    display: flex;
    gap:  20px;
}
*/

.page_service .card-cover{
    background-image: url(../img/house.svg);
    background-position: center center;
    background-size: 240px 240px;
    background-repeat: no-repeat;


    flex:  280px 0 0;
    /*width: 280px;*/
    width: 100%;
    height: 280px;
}

.page_service .card-cover-text{
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 24px;

    padding-top: 120px;
    height: 60px;
    text-align: center;
}

.page_service .card-cover-button{
    background-color: #8DC8FF;
    padding: 8px;
    padding-left: 26px;
    padding-right: 26px;
    margin-left: auto;
    margin-right: auto;

    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border-radius: 25px;
    text-align: center;
    width: fit-content;

    cursor: pointer;
  -webkit-touch-callout: none; 
    -webkit-user-select: none; 
     -khtml-user-select: none; 
       -moz-user-select: none; 
        -ms-user-select: none; 
            user-select: none; 

    transition: box-shadow 0.3s;

}

.page_service .card-cover-button:hover{
    background-color: #FFB236;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}


.page_service .card .content{
    width: 240px;
}

.page_service .card .content .text b{
    font-weight: 700;
}



.page_service .right .column {
    display: flex;
    flex-direction: column;
}

.page_service .right .column .button{
    width: 220px;
    height: 60px;
    line-height: 60px;
    margin-top: 15px;
    cursor: pointer;
}

.page_service .right .row {
    display: flex;
    justify-content: center;
}

.page_service .right .row img{
    padding-left: 10px;
    padding-right: 10px;
}

.page_service .right img{
    margin-top: 20px;
}

.page_service .boldtext {
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    /*margin-top: 80px;*/
}

.page_service .text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 20px;
    text-align: center;
    grid-column: 1 / 3;
    margin-top: 30px;
    margin-left: 50px;
    margin-right: 50px;
}

.page_service .list {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 22px;
    grid-column: 3 / 5;
    margin-top: 100px;
    margin-left: 10px;
    text-align: left;
}

.page_service .list .row {
    display: flex;
}

.page_service .list .column {
    flex-direction: column;
    margin-left: 50px;
}

.page_service .list .column ul {
    margin-top: 30px;
    padding: 0px;
}

.page_service .list .text{
    margin-left: 0px;
    text-align: center;
    padding-right: 300px;
}

.page_service .list .column .boldtext {
    font-weight: 400;
    font-size: 22px;
    text-align: center;
    margin-top: 80px;
    margin-left: 65px;
}

.page_service .container .button {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #FFFFFF;
    background: #8DC8FF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    width: 200px;
    height: 60px;
    line-height: 60px;
    margin-top: 15px;
    cursor: pointer;
}

/*.page_service .container svg {
    width: 240px;
    height: 240px;
    margin-top: 50px;
}
*/
.page_service .container .content {
    font-family: 'Oooh Baby', cursive;
    font-size: 20px;
    margin-top: 0px;
    margin-left: 18px;
    margin-right: 18px;
}

.page_service .container .content .text{
    font-family: 'Outfit', sans-serif;
    letter-spacing: .5px;
    font-size: 16px;
    font-weight: 300;
    margin-top: 20px;
    margin-left: 0px;
    margin-right: 0px;
}

.page_service p{
    text-align: center;
}

.page_service ul {
    padding-left:  0;
}

.page_service ul li {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    list-style-type: none;
    background: url(../img/listbullet.svg) no-repeat left top;
    background-position: left 6px; 
    background-size: 32px;
    padding: 12px 0 8px 50px;
    text-align: left;
}


.page_service .container .content .brouchure {
    margin-bottom: 20px;
}

.page_service .container .content .brouchure:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}


/* testimonials */

.page_testimonials {
    background-color: #FFFFFF;

    background-image: url('../img/top.svg'), url('../img/bottom.svg'), url('../img/like.svg');
    background-position:  center -120px, bottom, right;
    background-repeat:  repeat-x, repeat-x, repeat;
    background-size:  1000px, 1000px, 300px;


/*    background-image: url('../img/star.svg'), url('../img/bottom.svg'), url('../img/top.svg'), url('../img/like.svg');
    background-position: bottom right, bottom, top, right;
    background-repeat: no-repeat, repeat-x, repeat-x, repeat-y;
*/


}

.page_testimonials p,
.page_testimonials h1{
    background-color: #fff;
}

.page_testimonials p {
    padding-left: 25px;
    padding-right: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #4C4C4C;
}

.page_testimonials .container{
    width: auto;
    margin-top: 40px;
    padding-top: 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;

    background-color: rgba(255,255,255,0.8);
}

.page_testimonials .container .image {
    position: relative;
    flex: 236px 0 0;
    height:  300px;

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    cursor: pointer;
}
.page_testimonials .container .image:hover {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.page_testimonials .container .image:hover:after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255, 0.8);
}

.page_testimonials .row{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 400px;

    background-color: rgba(255,255,255,0.9);
}

.page_testimonials .row img{
    width: 360px;
    padding: 20px;
}

.page_testimonials .column {
    display: flex;
    flex-direction: column;
}

/* contact us */

.page_contact {
    background-color: #E1E3F5;
    margin-top: -1px;
}



.page_contact p {
    color: #4C4C4C;
}


.page_contact a {
    text-decoration: none;
    color: #000;
}

.page_contact a:hover{
    text-decoration: underline;
}

.page_contact .text {
    color: #000000;
    margin-top: 50px;
    line-height: 26px;
}

.page_contact .detail{
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 50px;
    margin-top: 45px;
    margin-left: 10px;
}

.page_contact .detail .info{
    color: #4C4C4C;
}

.page_contact .detail img{
    padding-right: 15px;
}

.page_contact .enquiry {
    color: #4C4C4C;
    margin-left: 10px;
}

.page_contact .enquiry .grid-container {
    display: grid;
    grid-template-columns: 25% 75%;
    row-gap: 20px;
    column-gap: 10px;
    margin-top: 45px;
    /* margin-right: 100px; */
}

.page_contact .enquiry .grid-container > div {
    display: flex;
    align-items: center;
}

.page_contact .enquiry .input-box{
    display: flex;
    border-radius: 25px;
    border: 1px solid #fff;
    width: calc(100% - 52px);
    padding-left: 20px;
    padding-right: 20px;

    background-color:  #fff;
}

.page_contact .enquiry .input-box.invalid{
    border-color: crimson;
}

.page_contact .enquiry .input-box input{
    flex: 1;
    height: 35px;
    outline: none;
    border-style: hidden;
    min-width: 0;
}

.page_contact .enquiry .input-box select{
    flex: 1;
    height: 35px;
    outline: none;
    border-style: hidden;
    min-width: 0;
    background-color: #fff;
}

.page_contact .enquiry .input-box textarea{
    flex: 1;
    height: 150px;
    outline: none;
    border: 0;  
    padding-top:  15px;
}

.page_contact .enquiry .message {
    height: 208px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page_contact .enquiry .action {
    display: flex;
    justify-content: flex-start;
}

.page_contact .enquiry .error-message {

    padding-left: 25px;
    width: 350px;
    color:  crimson;

}

.page_contact .enquiry .button {
    display: flex;
    align-items: center;
    justify-content: center;


    background-color: #ccc;
    color: #4c4c4c;

    border: 2px solid #4c4c4c;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    line-height: 65px;
    width: 80px;
    height: 35px;
    border-radius: 25px;

    transition: background-color 0.4s;
}

.page_contact .enquiry .button:hover{
    background: #4C4C4C;
    color: #FFFFFF;
    font-weight: 900;
}

.page_contact .container {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.4px;
    color: #000000;
}
    



#div-star * {

    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
           -box-sizing: border-box;

}

#div-star{
    position: absolute;

    height: 100%;
    width: 100%;
}

.star {
    display: block;
    position: absolute;
    top: 25%;
    left: 25%;
    width: 24px;
    height: 24px;
    background: #f6f6f6;
    overflow: hidden;
    z-index: 2;
    animation: glitter 4.5s linear 0s infinite normal;
    -webkit-animation: glitter 4.5s linear 0s infinite normal;
    -moz-animation: glitter 4.5s linear 0s infinite normal;
    -ms-animation: glitter 4.5s linear 0s infinite normal;
    -o-animation: glitter 4.5s linear 0s infinite normal;
}
.star-top,.star-bottom{
    position: relative;
    display: block;
}
.star-top:before , 
.star-top:after ,
.star-bottom:before ,
.star-bottom:after{
    content: "";
    width: 24px;
    height: 24px;
    background: #102D4D;
    border-radius: 25%;
    position: absolute;
}
/*CSS3 pseudo class for positioning curves*/
.star-top:before {
    top: -12px;
    left: -12px;
}
.star-top:after {
    bottom: -12px;
    left: 12px;
}
.star-bottom:before {
    top: 12px;
    left: -12px;
}
.star-bottom:after {
    top: 12px;
    left: 12px;
}
/*css3 keyframes for glittering effect*/
@-webkit-keyframes glitter {
    0%   { -webkit-transform: scale(1.0); opacity: 1; }
    25%  { -webkit-transform: scale(0.5); opacity: 0; }
    50%  { -webkit-transform: scale(1.0); opacity: 1; }
    75%  { -webkit-transform: scale(0.5); opacity: 0; }
    100% { -webkit-transform: scale(1.0); opacity: 1; }
}
@-moz-keyframes glitter {
    0%   { -moz-transform: scale(1.0); opacity: 1; }
    25%  { -moz-transform: scale(0.5); opacity: 0; }
    50%  { -moz-transform: scale(1.0); opacity: 1; }
    75%  { -moz-transform: scale(0.5); opacity: 0; }
    100% { -moz-transform: scale(1.0); opacity: 1; }
}

.popup{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255, 0.9);

    z-index: 100;
}

.popup .button__close{
    position: absolute;
    top: 20px;
    right: 20px;
}

.popup .button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #4c4c4c;
    color:  #4c4c4c;
    font-size: 28px;

    cursor: pointer;
    user-select: none;
}

.popup .button:hover{
    background-color: #4c4c4c;
    color: #fff;
}

.popup .content{
    margin: 15px;
    margin-top:  90px;
    position:  relative;
    width: calc(100% - 30px);
    height: calc(100% - 105px);
}

.popup .image{
    position: relative;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
}


.cloud-holder{
    position:absolute;top:0;left:0;height:300px;width:100%; 
    /* background-color: yellow;     */
    z-index: 3;
}

.cloud-container{
    height:300px;width:700px; 
    /* background-color: yellow;     */


    background-image: url(../img/cloud.png);
    background-repeat: no-repeat;
    background-position: center center;

    /* filter: drop-shadow(2px 2px 5px #E1E3F5); */
    filter: drop-shadow(2px 2px 5px #A388D3);

    margin-left: auto;
    margin-right: auto;
}

.cloud-text{
    position:absolute;top:106px;left:120px; color:black;
    width: 420px;
    font-size:20px;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    color: #4c4c4c;
    letter-spacing: 1px;
    line-height: 1.8rem;
  }
  
  


@media only screen and (min-width: 1024px) {



    .page_about .container{
        padding-top:  120px;
    }

    .page_about .detail{
        width: 500px;
        max-width: 40%;
        padding-left: 90px;
        padding-right: 0;
    }

    .page_about .detail:nth-child(even) {
        margin-left: auto;
        margin-top: -100px;
        margin-bottom: -100px;

        padding-right: 90px;
        padding-left: 0;
    }


    .page_service .card__tuition .content{
        width: 480px;
    }

    .page_service .container .content .text,
    .page_service .container .content .boldtext{
        /*width: 240px;*/
        width: auto;
    }

    .page_service .card__tuition .content ul{
        height: 170px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .page_service .card__tuition .content ul.small{
        height: 128px;
    }

    .page_service .container .content .text.text__long{
        width: 1024px;
        text-align: left;
    }


    .page_service .card__brouchure{
        flex:  1;
        justify-content: flex-start;
    }


    .page_service .container .content .brouchure-group {
        display: flex;
        gap:  20px;
    }


    .page_testimonials p,
    .page_testimonials h1{
        width: fit-content;
    }


    .page_contact .container {
        display: grid;
        grid-template-columns: auto auto;
        margin-bottom: 300px;
        margin-top:  50px;
    }

    .page_contact .container .border {
        border-right: 1px solid black;
        margin-right: 100px;
    }    
}


@media only screen and (min-width: 601px) and (max-width: 1025px) {


    .page-content{
        max-width: 100%;
    }

    .page_service .card{
        flex: 225px 0 1;
    }

    .page_service .card .content{
        width: auto;
    }

    .page_service .card__tuition .content{
        width: 400px;
    }

    .page_testimonials .row img{
        width: 300px;
    }


    .page_contact .container{
        padding-left: 25px;
        padding-right: 25px;
    }

    .page_contact .container .border{
        min-width: 385px;
    }


    .page_contact .container .border,
    .page_contact .container .border > div{
        margin-right: 25px;
    }

}


@media only screen and (max-width: 600px) {

    .cloud-container{
        width: 100%;
        background-size: 600px;
    }
    
    .cloud-text{
        left:0;
        width: 100%;
        font-size: 16px;
        line-height: 1.4rem;
        padding-left: 50px;
        padding-right: 50px;
        box-sizing: border-box;
    }


    .page-content h1{
        text-align: center;
        font-size: 40px;
    }

    .page{
        overflow: hidden;
    }

    .page-content{
        width: 100%;
        overflow: hidden;
    }

    .page-header .content{
        flex-direction: column;
        height: 150px;
    }

    .page-header-logo{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .page-header-logo .icon{
        margin:  0;
        margin-bottom: 16px;
        margin-top: 16px;
    }

    .page-header .nav{
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-header .nav-item{
        font-size: 12px;

        display: flex;
        height: 45px;
        align-items: center;
        justify-content: center;
    }




    .page_home .text{
        font-size: 28px;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .page_home .page-content{
        align-items: flex-start;
        height: 700px;
    }

    .page_home{
        height: 800px;
    }

    .page_home .image-group{
        flex-direction: column;
        row-gap: 30px;

        /* margin-top: 50px; */
        margin-bottom: 0;
        /* height: 650px; */

        justify-content: flex-start;

        order: 2;
    }

    .page_home .hero-image{
        display: none;
    }




    .page_about .container{
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 70px;
    }



    .page_service p{
        font-size: 18px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page_service .card{
        margin-top: 0;
        flex: 100% 0 0;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page_service .card .content{
        width: 90%;
    }



    .page_testimonials p{
        text-align: center;
    }

    .page_testimonials .container{
        gap: 10px;
    }

    .page_testimonials .container .image{
        flex: calc(50% - 20px) 0 0;
        height: 120px;
    }

    .page_testimonials .row{
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
    }

    .page_testimonials .row img{
        width: 250px;
    }



    .page_contact .enquiry{
        margin-top: 50px;
    }

    .page_contact .detail .icon__instagram{
        height: 40px;
    }

    .page_contact .detail .icon__facebook{
        height: 30px;
    }

    .page_contact .container{
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% - 40px);
        margin-bottom: 100px;
        font-size: 14px;
    }

    .page_contact p{
        text-align: center;
    }

    .page_contact .text{
        margin-top: 25px;
    }

    .page_contact .detail{
        margin-top: 25px;
        grid-row-gap: 15px;
    }
}
