*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-snap-type: mandatory;
}

body{
    font-family: sans-serif;
    background-color: #e4e4e4;
}

/* preloader */

.preloaders{
    height: 100vh;
    background-color: #222429;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}
  .loader::before , .loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite ;
}
.loader::after{
    transform: rotate3d(90, 90, 0, 180deg );
    border-color: gold;
}

@keyframes rotate {
    0%   {transform: rotate(0deg)}
    100%   {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
}

.preloaders.hidden{
    display: none;
    visibility: hidden;
}

.webpage.hidden{
    display: none;
}

.container{
    max-width: 86rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

span.back__to-top{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 30px;
    background-color: yellow;
    width: 50px;
    height: 50px;
    position: fixed;
    right: 2%;
    bottom: 2%;
    border-radius: 50%;
    transition: opacity 1s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back__to-top.show{
    opacity: 1;
    pointer-events: auto;
}

/* header */

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: all 0.6s;
}

.navbar.scrolled {
    position: fixed;
    left: 0;
    right: 0;
    backdrop-filter: blur(5px);
    background: #ffffffed;
    padding: 0 4rem;
    z-index: 999;
}

.nav__list{
    display: flex;
    list-style-type: none;
}

.nav__item{
    margin-left: 1rem;
}

.nav__link{
    text-decoration: none;
    color: #000;
    padding: 0.6rem 1rem;
    position: relative;
    z-index: 1;
}

.nav__link.active{
    background-color: #fcff2cd9;
}

.nav__link::after{
    content: '';
    display: inline-block;
    width: 0%;
    height: 100%;
    background-color: #fcff2cd9;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all .6s;
    transform-origin: 0 0;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

.nav__link:hover::after{
    width: 100%;
}
.menu__icon{
    width: 40px;
    height: 40px;
    display: none;
    justify-content: center;
    align-items: center;
}

.hamburger__menu{
    width: 30px;
    height: 2px;
    background: #000;
    border-radius: 10px;
    position: relative;
    transition: all .6s;
}

.hamburger__menu::after,
.hamburger__menu::before{
    content: '';
    display: block;
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: #000;
    border-radius: 10px;
    transition: all 0.6s;
}

.hamburger__menu::before{
    transform: translateY(-8px);
}

.hamburger__menu::after{
    transform: translateY(8px);
}

.menu__icon.active .hamburger__menu{
    background-color: transparent;
}

.menu__icon.active .hamburger__menu::before{
    width: 30px;
    transform: rotate(45deg);
}

.menu__icon.active .hamburger__menu::after{
    width: 30px;
    transform: rotate(-45deg);
}

/* main */

.mian{
    padding-bottom: 2rem;
}

.main__top-sect{
    background: url(../images/BMI\ -\ bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main__top-title{
    color: #fff;
    text-align: center;
    font-size: 60px;
    border-bottom: solid 4px yellow;
}
@keyframes show {
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}

/* bmi calculator */

.bmi__calculator-sect{
    margin-top: 6rem;
    padding: 6rem 1rem;
    background: url(../images/bg-bmi-sect.jpg);
    background-position: center;
    background-size: cover;
}

.bmi{
    display: flex;
    justify-content: center;
    align-items: center;
}

.bmi__clac{
    background-color: #9f9f9f66;
    backdrop-filter: blur(6px);
    padding: 40px 30px;
    max-width: 720px;
    width: 100%;
    border-radius: 5px;
    font-family: 'Poppins',sans-serif;
    box-shadow: 25px 25px 30px rgba(0,0,0,0.15);
}
.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.row span{
    font-weight: 500;
    color: #fff;
}

input[type="range"]{
    width: 70%;
    height: 3.5px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #dcdcdc;
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    background-color: #1c1c1c;
    border-radius: 50%;
    cursor: pointer;
}
#result{
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    color: #0be881;
    margin-bottom: 1rem;
}
#category{
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px;
    color: #fff;
}   


/* footer */

.footer{
    background: url(../images/newsletter-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.contact__ways{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.5);
    padding-bottom: 2rem;
}

.contact__way-body{
    display: flex;
    align-items: start;
    gap: 10px;
}

.contact__way .contact__title{
    font-size: 22px;
    margin-bottom: 1.5rem;
}

.contact__way p {
    font-size: 18px;
    line-height: 1.5;
    color: #b5babc;
}

.contact__way i {
    font-size: 20px;
    margin: 0 0.4rem;
}

.contact__way i:hover{
    color: #b5babc;
}

.copy__right{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
}

.website__developer a {
    color: #fff;    
    transition: all .5s;
}

.website__developer a:hover{
    color: yellow;
}

/* responsive */

@media screen and (max-width:1400px) {
    .container{
        max-width: 1140px;
    }
}

@media screen and (max-width:1200px) {
    .container{
        max-width: 960px;
    }
}

@media screen and (max-width:992px) {
    .container{
        max-width: 720px;
    }

    
    .menu__icon{
        display: flex;
    }
    
    .nav__list{
        position: fixed;
        left: 0;
        top: -100px;
        right: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #f7f7f7;
        padding: 1rem 0;
        border-radius: 0 0 2rem 2rem;
        transition: all .6s;
        transform: scaleY(0);
    }

    
    .nav__item {
        margin: 1rem;
        width: 100%;
        text-align: center;
        padding-bottom: 0.6rem;
    }

    .nav__list.active{
        top: 96px;
        transform: scaleY(1);
    }

    .navbar.scrolled .nav__list{
        top: -130px;
    }

    .navbar.scrolled .nav__list.active{
        top: 64px;
    }
    
    .contact__ways{
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .contact__way{
        width: calc(50% - 15px);
    }
}

@media screen and (max-width:768px) {
    .container{
        max-width: 540px;
    }

    .footer{
        background: url(../images/newsletter-bg-short.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .copy__right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (max-width:568px) {
    .container{
        width: 100%;
    }

    .main__top-title{
        font-size: 36px;
    }

    .bmi__clac{
        padding: 1rem;
    }

    .contact__way{
        width: 100%;
    }
}

