body{
    margin: 0;
}
h2, h3{
    color: black;
    font-family: 'tuesdayNight';
    text-align: center;
}
h1{
    font-family: 'Lato', sans-serif;
    margin-top: 2.5rem;
    text-align: center;
}
h2{
    font-size: 3rem;
}
h3{
    font-size: 2.6rem;
    margin-top: 15px;
}
p{
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}
/* ==========================ID=========================== */
@font-face{
    font-family: 'tuesdayNight';
    src: url('TuesdayNight-Regular.otf');
}
/* ==========================CLASSES=========================== */
.scroll{
    overflow: hidden;
}
.before-after-zone p{
    text-align: center;
    margin-top: 40px;
    padding: 0 100px;
}
/* ==========================FEEDBACKS SLIDER=========================== */
.top{
    width: 100%;
    position: absolute;
    top: 0%;
    z-index: -3;
}

.container{
    margin-top: 80px;
    position: relative;
    perspective: 1000px;
    width: 50%;
    margin-left: 30px;
}
.container .slide-container .slide{
    border-radius: 5px;
    box-shadow: 0 5px 10px #3337;
    background: #fff5e2;
    min-width: 350px;
    padding: 20px;
    transform-style: preserve-3d;
    animation: slide .4s linear;
}
@keyframes slide{
    0%{
        transform: rotateX(180deg);
    }
}
@keyframes slideContent{
    0%{
        opacity: 0;
        transform: scale(0.5);
    }
}
.container .slide-container .slide .icon{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 90px;
    color: black;
}
.container .slide-container .slide .user{
    display: flex;
    align-items: center;
}
.container .slide-container p{
    width: 300px;
}
.container .slide-container .slide img{
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}
.container .slide-container .slide .user .user-info .stars i{
    font-size: 15px;
}
.container .slide-container .slide .text{
    font-size: 14px;
    padding-top: 15px;
}
.container .slide-container{
    display: none;
}
.fas{
    color: #ffa300;
}
.slide-container.active{
    display: flex;
    justify-content: center;
}
.container #prev,
.container #next{
    margin-top: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    background-color: #fff5e2;
    color: #000000;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 10px #3337;
}
.container #next{
    right: 20px;
}
#more-results{
    margin: 70px 0;
}
.flex-container-results{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.flex-container-results img{
    width: 33%;
}
.container #prev{
    left: 20px;
}
.container #prev:hover,
.container #next:hover{
    color: white;
    background: #000000;
}
.container .slide-container .slide > *{
    animation: slideContent .2s linear .4s backwards;
}
/* ==========================FEEDBACKS SLIDER RESPONSIVE CLASSES=========================== */
@media screen and (max-width: 650px){
    h2{
        font-size: 2rem;
    }
    h3{
        font-size: 2.5rem;
    }
}
@media screen and (max-width: 991px){
    h1{
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
    }
.before-after-zone{
    position: absolute;
    top: 1000px;
}
@media screen and (max-width: 1400px){
    .before-after-zone{
        position: absolute;
        top: 950px;
    }
}
@media screen and (max-width: 1300px){
    .before-after-zone{
        position: absolute;
        top: 900px;
    }
}
@media screen and (max-width: 1200px){
    .before-after-zone{
        position: absolute;
        top: 850px;
    }
}
@media screen and (max-width: 1100px){
    .before-after-zone{
        position: absolute;
        top: 750px;
    }
    
}
@media screen and (max-width: 950px){
    .before-after-zone{
        position: absolute;
        top: 690px;
    }
}
@media screen and (max-width: 1050px){
    .container{
        margin-left: 60px;
    }
    .container #next{
        right: -20px;
    }
    .container #prev{
        left: -20px;
    }
}
@media screen and (max-width: 850px){
    .container #prev,
    .container #next{
    display: none;
    }
    .before-after-zone{
        position: relative;
        top: 10vh;
    }
    .container .slide-container .slide .text{
        width: 280px;
        font-size: 1.1rem;
        padding-right: 20px;
    }
        .container .slide-container .slide{
        min-width: 300px;
    }
    .container .slide-container .slide .user{
        align-items: flex-end;
    }
    .stars{
        position: absolute;
        right: 15px;
    }
    .container{
        margin-left: auto;
        margin-top: 230px;
        margin-right: auto;
    }
    .h2-top{
        display: none;
    }
    .before-after-zone p{
        padding: 0 20px;
    }
}

/* ==================RESULTS SLIDER=========================== */
@keyframes slider{
    0%{
        transform:translateX(-50px);
        opacity: 0;
    }
}
.results-container{
    display: flex;
    margin-top: 750px;
    height: fit-content;
    justify-content: center;
    align-items: center;
    position: relative;
}
.results-container img{
    width: 600px;
}
.results-slide-container{
    display: none;
    transform-style: preserve-3d;
    animation: slider .4s;
}
.results-slide-container.activey{
    display: block;
}
.results-container #prevres,
.results-container #nextres{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    background-color: #fff5e2;
    color: #000000;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 10px #3337;
}
#nextres{
    right: 200px;
}
#prevres{
    left: 200px;
}
#prevres:hover,
#nextres:hover{
    color: white;
    background: #000000;
}
@media screen and (max-width: 1175px){
    .results-container img,
    .results-slide-container p{
        width: 500px;
    }
}
@media screen and (max-width: 1035px){
    .results-container img,
    .results-slide-container p{
        width: 400px;
    }
}
@media screen and (max-width: 935px){
    #nextres{
        right: 100px;
    }
    #prevres{
        left: 100px;
    }
}
@media screen and (max-width: 735px){
    #nextres{
        right: 50px;
    }
    #prevres{
        left: 50px;
    }
}
@media screen and (max-width: 635px){
    #nextres{
        right: 40px;
    }
    #prevres{
        left: 40px;
    }
    .results-container img,
    .results-slide-container p{
        width: 350px;
    }
}
@media screen and (max-width: 530px){
    #nextres{
        right: 20px;
    }
    #prevres{
        left: 20px;
    }
    .results-container img,
    .results-slide-container p{
        width: 300px;
    }
}
@media screen and (max-width: 450px){
    #nextres{
        right: 10px;
    }
    #prevres{
        left: 10px;
    }
}
@media screen and (max-width: 420px){
    #nextres.fas.fa-chevron-right{
        right: 5px;
        opacity: 0.7;
        height: 30px;
        width: 30px;
        line-height: 30px;
        font-size: 15px;
    }
    #prevres.fas.fa-chevron-left{
        left: 5px;
        opacity: 0.7;
        height: 30px;
        width: 30px;
        line-height: 30px;
        font-size: 15px;
    }
}
@media screen and (max-width: 1400px){
    .results-container{
        margin-top: 720px;
        top: auto;
    }
}
@media screen and (max-width: 1300px){
    .results-container{
        margin-top: 670px;
    }
}
@media screen and (max-width: 1200px){
    .results-container{
        margin-top: 600px;
    }
}
@media screen and (max-width: 1100px){
    .results-container{
        margin-top: 530px;
    }
    
}
@media screen and (max-width: 950px){
    .results-container{
        margin-top: 450px;
    }
}
@media screen and (max-width: 850px){
    .results-container{
        margin-top: 120px;
    }
}
/*==============FOOTER================== */
footer{
    margin-top: 100px;
    background-color: #ddcdbc;
    position: relative;
    width: 100%;
    min-height: 200px;
}
.container-foot {
   margin: 0 auto;
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
    padding: 2rem 2rem;

}
.row{
   display: flex;
   justify-content: space-between;
}

.col{
   min-width: 250px;
   color: white;
   font-family: poppins;
}
.col .logo{
   width: 100px;
   margin-bottom:25px;
}
.col a{
    all:unset;
}
.col h3{
    font-family: 'Lato', sans-serif;
   color: black;
   margin-bottom: 20px;
   position: relative;
   cursor: pointer;
   margin-top: unset;
   font-size: unset;
   text-align: unset;
}
.col h3::after{
   content: '';
   height:3px;
   width:0px;
   background-color: black;
   position: absolute;
   bottom: 0;
   left:0;
   transition: 0.3s ease;

}
.col h3:hover::after{
   width:30px
}
.col .social a i{
   color: black;
   margin-right: 5px;
   transition: 0.3s ease;
}
.col .social a i:hover{
   transform: scale(1.5);
   filter:grayscale(25);
}
.col .links a{
    font-family: 'Lato', sans-serif;
   display: block;
   text-decoration: none;
   color:white;
   margin-bottom: 5px;
   position: relative;
   transition: 0.3s ease;
}
.col .links a::before{
   content:'';
   height: 16px;
   width:3px;
   position: absolute;
   top:5px;
   left:-10px;
   background-color: black;
   transition: 0.5s ease;
   opacity: 0;
}
.col .links a:hover::before{
   opacity: 1;
}
.col .links a:hover{
   transform: translateX(-8px);
   color: black;
}
.col .contact-details{
   display: inline-flex;
   justify-content: space-between;
}
.col .contact-details i{
   margin-right:15px;
}
#company{
    margin-right: 20px;
}

/********** Responsive Design ********/
@media(max-width:1050px)
{
 .row{
    width: 100%;
    margin-left: 10px;
   flex-direction: column;
 }
 .col{
   width: 100%;
   text-align: left;
   margin-bottom: 25px;
 }
}
@media(max-width:768px)
{
 .row{
   flex-direction: column;
 }
 .col{
   width: 100%;
   text-align: left;
   margin-bottom: 20px;
 }
}
.fadein img {
    position:absolute;
    right: 20%;
    -webkit-animation-name: fade;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 15s; /* Adjust the duration based on the number of images */
    animation-name: fade;
    animation-iteration-count: infinite;
    animation-duration: 15s; /* Adjust the duration based on the number of images */
    max-height: 500px;
    height: 80%;
}

.fadein img {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    max-height: 500px;
    height: 80%;
}

.fadein img.active {
    opacity: 1;
}

.fadein img {
    z-index: 1;
}

.fadein img.active {
    z-index: 2;
}

.fadein img.last-active {
    z-index: 0;
}

.acne-treatment {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: flex-start;
    min-height: 600px;
    max-height: 700px;
    padding-left: 20%;
    padding-right: 10%;
    padding-top: 4rem;
    padding-bottom: 5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    background-color: #ddcdbc;
}
.acne-treatment p{
    max-width: 90%;
    padding-top: 1.5rem;
}
.acne-treatment .text{
    max-width: 50%;
    padding-top: 4rem;
}
.acne-treatment h3{
    position: relative;
    left: -8rem;
}
@media(max-width:1000px)
{
    .acne-treatment {
    
        padding-left: 10%;

    }
    .acne-treatment h3{
        left: -3rem;
    }
    .fadein img {
        right: 10%;
    }
}
@media(max-width:700px)
{

    .fadein img {
        right: 25%;
        top: 20rem;
    }
    .acne-treatment .text{
        max-width: 100%;
        padding-top: 0;
    }
    .acne-treatment{
        padding-bottom: 50rem;
    }
    .acne-treatment p{
        max-width: 100%;
        text-align: center;
    }
    .acne-treatment h3{
        position: static;
    }
}
@media(max-width:500px)
{
    .acne-treatment{
        padding-bottom: 45rem;
    }
    .fadein img {
        right: 25%;
        max-height: 400px;
    }
    
}
.smile{
    display: flex;
    justify-content: space-between;
    max-height: 600px;
    min-height: 500px;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.smile p{
    padding-top: 10rem;
    text-align: center;
    font-family: 'tuesdayNight';
    font-size: 1.5rem;
}
#photo1{
    max-width: 40%;
    width: 40%;
    background-image: url(results_images/smileb.jpg);
    background-position-x: right;
    background-size: cover;
    background-repeat: no-repeat;

}
#photo2{
    max-width: 40%;
    width: 40%;
    background-image: url(results_images/smilea.jpg);
    background-position-x: left;
    background-size: cover;
    background-repeat: no-repeat;
    
}
#displayed{
    display: none;
}
@media(max-width:1100px)
{
    .smile{
        margin-left: 0%;
        margin-right: 0%;
        margin-top: 5rem;
    }
}
@media(max-width:880px)
{
    .smile{
        max-height: 500px;
        height: 400px;
    }
    .smile p{
        width: 30%;
    }
}@media(max-width:770px)
{
    .smile{
        max-height: 400px;
        height: 350px;
    }
    #photo1{
        background-position-x: left;
        
    }
    #photo2{
        background-position-x: right;
    }
    .smile p{
width: 25%;
    }
}
@media(max-width:730px)
{
    .smile{
        max-height: 400px;
        height: 350px;
        justify-content: space-around;
        position: relative;
        padding-top: 5rem;
    }
    #photo1{
        max-width: unset;
        width: 50%;

    }
    #photo2{
        max-width: unset;
        width: 50%;
    }
    .smile p{
display:none;

    }
    #displayed{
        display:block;
        position: absolute;
        width: 100%;
        top: 0;
        padding-top: 0;

    }
}
@media(max-width:730px)
{
    .smile{
        max-height: 300px;
        height: 200px;
        justify-content: space-around;
        margin-left: 10%;
        margin-right: 10%;
        min-height: 350px;
    }
   #photo1{
    background-size: contain;
    height: 300px;
   }
   #photo2{
    background-size: contain;
    height: 300px;
   }
}
@media(max-width:400px)
{   p{
    font-size: 0.9rem;
}
    .smile{

        min-height: 300px;
    }
    .text p{
        padding-bottom: 0;
    }
   
}
.result{
    background-color: #ddcdbc;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 5rem;
    padding-right: 2rem;
    padding-left: 2rem;
}
.result img{
    max-height: 400px;
}
.result p{
    max-width: 40%;
    text-align: center;
    padding-left: 2rem;
}
@media(max-width:1100px)
{
    .result{
        margin-left: 0;
        margin-right: 0;
    }
    .result img{
        max-height: 350px;
    }
    .result p{
        font-size: 0.9rem;
    }
}
@media(max-width:900px)
{
    .result img{
        max-height: 300px;
    }
}
@media(max-width:700px)
{
    .result{
        flex-direction: column-reverse;
        padding-left: 10%;
        padding-right: 10%;
    }
    .result p{
        width: 100%;
        max-width: unset;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
    }
}