body::after{
    display:block;
    opacity: 0;
    width: 0;
    height: 0;
    overflow:hidden;
    content: 
    url("https://ocdsingapore.com/assets/images/s1.webp")
    url("https://ocdsingapore.com/assets/images/s2.webp")
    url("https://ocdsingapore.com/assets/images/s3.webp")
    url("https://ocdsingapore.com/assets/images/s4.webp")
    url("https://ocdsingapore.com/assets/images/s5.webp")
}

html{
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    overflow-x:hidden;
}

body{
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Anton', sans-serif;
}

.f2{
    font-family: 'Raleway', sans-serif;
}

.whatsapp{
    position: fixed;
    bottom:0;
    right:0;
    margin:2%;
    padding:5px;
    color: #25D366;
}

.whatsapp:hover{
    color:#075e54;
}

header{
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 2;
}

header div{
    background-color: transparent;
    display:flex;
    flex-direction: row;
    align-items: center;
}

#logo-td{
    margin: 0;
    padding: 0;    
    width: 10%;
}

#logo-td a{
    padding:0;
}

#logo{
    width: 100%;
}

#name-td{
    display: none;
}

div h1{
    font-size: 120%;
}

div nav{
    font-size: 120%;
    width: 100%;
}

nav a{
    text-transform: uppercase;
    height: 100%;
    text-decoration: none;
    color: #FFF;
    font-size:100%;
    padding: 2% 3%;
    width:33%;
    font-size: 100%;
}

nav a:active{
    text-transform: uppercase;
    font-size: 110%;
    color: #351042;
    background-color: #ffbf47;
}

nav a:hover{
    text-transform: uppercase;
    font-size: 110%;
    color: #351042;
    background-color: #ffbf47;
}

#menu-td{
    width:90%;
    padding-left: 11%;
}

#mobile-menu{
    display: none
}

#mobile-menu-button{
    display: none
}

section{
    text-align: center
}

.home{
    background-image: url("../images/s1.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
    width:100%;
    height: 100%;
}

.home h1{
    opacity: 90%;
    position: absolute;
    top: 0;
    bottom: 40%;
    left: 63%;
    right: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    font-size:250%;
    padding: 1%;
    font-weight: 400;
    color: white;
}

.home h2{
    opacity: 90%;
    position: absolute;
    top: 0;
    bottom: 30%;
    left: 60%;
    right: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    font-size:200%;
    color: white;
    font-weight: 200;
}

#home-p-mobile{
    display: none
}

.about{
    background-color: #351042;
    padding: 20% 10%;
}

.about>h2{
    width: 80%;
    font-size: 200%;
    font-weight: 300;
    display: block;
    margin: 2% auto;
    text-align: justify;
    color: #fff
}

.about>h3{
    width: 80%;
    font-size: 120%;
    display: block;
    margin: 2% auto;
    text-align: justify;
    color: #fff
}

.about a{
    color: #351042;
    background-color: white;
    border:3px solid black;
    padding:1%;
    text-decoration: none;
}

.about a:active{
    color: #351042;
    background-color: white;
    border:3px solid black;
    padding:1%;
    text-decoration: none;
}

.about a:hover{
    background-color: black;
    color: #ffbf47;
}

.services{
    background-color: #fff;
    padding: 14% 5% 7% 5%;
}

.services>h2{
    width: 100%;
    display: block;
    margin: 0 auto 5%;
    text-align: center;
    color: black;
    font-size: 200%;
    font-weight: 300;
}

.services a{
    color: white;
    padding:1%;
    background-color: #ffbf47;
    font-weight: lighter;
    width:50%;
    display: block;
    margin: auto;
}

.services a:active{
    color: white;
    padding:1%;
    background-color: #ffbf47;
    font-weight: lighter;
    width:50%;
    display: block;
    margin: auto;
}

.services a:hover{
    background-color: #351042;
    color: white;
}

.cards{
    display: inline-block;
    width: 20%;
    margin: 0 1%;
    text-align: justify;
    vertical-align: top
}

.cards-img{
    width: 100%;
    height: 20%
}

.cards-title{
    text-transform: uppercase;
    text-align: center;
    color: black;
    background-color: #ffbf47;
    width: 100%;
}

.cards h3{
    width: 100%;
    font-size: 120%;
    font-weight: 300;
    display: block;
    margin: 0 auto 5%;
    text-align: center;
    color: black;
    padding:0;
}

.cards h4{
    padding:0;
    margin:0;
    font-weight: 100;
}

.insta{
    padding: 7%;
}

.insta h2{
    font-size: 200%;
    font-weight: 300;
}

.insta h3{
    font-size: 120%;
}

.insta-posts{
    width:90%;
    margin:auto;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: space-evenly;
}

.insta-posts a{
    width:30%;
    margin:1%;
}

.insta-posts a img{
    width:100%;
}

.contact{
    background-color: #351042;
    color:white;
    display: block;
    padding: 15% 5%;
}

.contact h2{
    font-size: 200%;
    font-weight: 300;
}

.contact .contact-icon{
    width: 30%;
    padding:1%;
    font-weight: 100;
}

.contact-icons{
    border:solid 5px white;
    border-radius: 100%;
    padding: 12px;
}

.contact .contact-details{
    display: flex;
    flex-direction: row;
    
    margin: auto;
    width:80%;
    padding: 2%;
}

.contact .contact-detail{
    width: 33%;
    padding:1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    
}

.contact .contact-info{
    align-items: center;
    width: 70%;
    font-size: 120%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.contact .social-details{
    display: flex;
    flex-direction: row;
    margin: auto;
    width:80%;
    padding: 2%;
}

.contact .social-detail{
    width: 20%;
    padding:1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;   
}

.contact .social-detail a{
    color:white;
    height:100%;
    width:100%;
}

.contact .social-icon{
    width: 20%;
    padding:1%;
}

.contact .social-info{
    align-items: center;
    width: 80%;
    font-size: large;
}

.social-detail i:hover{
    border: #ffbf47 solid 5px;
}

.social-detail img:hover{
    border: #ffbf47 solid 5px;
}

#contact-p-mobile{
    display: none
}

.middle{
    border-left: white 2px solid;
    border-right: white 2px solid;
}

.booking{
    background-color: black;
    color: #fff;
    padding: 10% 10% 4%;
}

.booking h2{
    font-size: 200%;
    font-weight: 300;
}

form{
    width: 90%;
    margin: 1% auto;
    padding: 2% 0;
}

input{
    padding: 1% 0;
    margin-bottom: 1%;
    border: 0;
    color:grey;
    font-size: 120%;
    font-family: 'Raleway', sans-serif;
    width: 75%;
    height: 90%;
    text-align: center;
    display: inline-block;
}

.booking-form{
    width:100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
    align-items: center;
}

.booking-form-question{
    width: 50%;
    display: flex;
    align-content: space-around;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
}

.booking-form-question legend{
    width: 25%;
    font-size: 120%;
    text-align: right;
    padding: 0 1%;
    display: inline-block;
}

.booking-form-question select{
    width: 75%;
    height: 90%;
    text-align: center;
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    padding: 1% 2%;
    font-size: 120%;
    color: grey;
}

.last-item{
    margin: auto 0;
    width:100%;
}

.last-item legend{
    width: 12.3%;
    padding: 0 0.5% 0.5% 0.5%;
    margin: 0 0 0.5% 0;
}

.last-item input[type="text"]{
    width: 87.7%;
    padding: 0.5% 0 0.5% 0;
    margin: 0 0 0.5% 0;
}

.booking-form-button{
    margin: auto 0;
    width: 100%;
}

.booking-form-button input[type=submit]{
    width: 100%;
    background-color: #ffbf47;
    color: black;
    font-size: 150%;
}

.booking-form-button input[type=submit]:hover{
    background-color: #351042;
    color: white;
}

footer{
    padding: 1%;
    background-color: black;
    color: #fff;
    text-align: center;
}

footer h2{
    font-size: 100%;
    font-weight: 100;
    padding:0;
    margin: 0;
}

footer span{
    color:#ffbf47;
}

footer a{
    color:#ffbf47;
    text-decoration: none;
}

footer a:hover{
    color:black;
    background-color: #ffbf47;
    text-transform: uppercase;
}

#popup{
    z-index: 3;
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: black;
    color: white;
    width: 90%;
    height: 90%;
    margin: auto;
}

#popup h2{
    text-align: center;
    font-size: 4vw;
}

#popup p{
    margin: 0 1%
}

#popup button{
    border:0;
    background-color:#ffbf47;
    box-sizing: unset;
    font-size: 4vw;
    display: block;
    margin:1%;
    position: absolute;
    top:0;
    right: 0;
}

#popup button:hover{
    color:#351042;
    background-color: white;
}

#popup-imgs{
    width:90%;
    display:flex;
    margin: 0 auto;
    justify-content: space-evenly;
}

#popup-imgs video{
    width:17%;
}

#popup-imgs picture{
    width:30%;
}
#popup-imgs picture img{
    width:100%;
}

@media screen and (min-width:1007px) and (max-width:1250px) and (orientation:landscape) {
    #menu-td{
        padding-left:10%;
    }

    #slideshow-header{
        font-size: 180%;
    }

    #slideshow-subheader{
        font-size: 150%;
        font-weight: 100;
    }

    .about h2{
        font-size: 130%;
    }

    .about h3{
        font-size: 90%;
    }

    .services h2 {
        font-size: 140%;    
    }
    
    .cards{
        width:40%;
        padding: 0 1%;
        margin: 2% auto;
    }

    .insta h2 {
        font-size: 140%;
    }

    .insta h3 {
        font-size: 90%;
    }

    .insta-posts a {
        width: 40%;
        margin: 1%;
    }

    .contact h2 {
        font-size: 140%;
    }
    
    .contact .contact-details {
        flex-direction: row;
        align-items: center;
    }

    .contact .contact-detail{
        width: 31%;
        padding:2%;
    }
    
    .contact .social-details {
        flex-direction: row;
        align-items: center;
    }

    .contact .social-detail{
        width: 10%;
        padding:5%;
    }

    .booking h2 {
        font-size: 140%;
    }

    .booking h3 {
        font-size: 90%;
    }

    .booking-form {
        flex-direction: column;
    }

    .booking-form-question {
        width: 90%;
        flex-wrap: wrap;
    }

    .booking-form-question legend {
        font-size: 90%;
        width: 100%;
        text-align: center;
    }
    
    .booking-form-question input {
        font-size: 90%;
        width: 100%;
    }
    
    .booking-form-question select {
        font-size: 90%;
        width: 100%;
    }

    .last-item input[type="text"] {
        width: 100%;
        font-size: 90%;
        padding: 1% 0;
    }
    
    .booking-form-button input[type=submit] {
        font-size: 90%;
        width: 90%;
        margin: 5%;
    }

    footer h2 {
        font-size: 90%;
    }
}