html{
    scroll-behavior:smooth;
}

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

}
.nav h1{
    font-family: 'Fira Sans', sans-serif;

}
#main #logo{
    position: absolute;
    margin-right: 85%;
    color: #464f5b;
    z-index: 1;
   font-size: 80px;
}

body{
    background: #DEE3EF;
    font-family: "GOGOIA";
    height: 2200px;
}
#main{
    display: flex;
    height: 100vh;
    width: 100%;
    justify-content: center;
}
#cal    {
    display:inline;
    color:#000000;
    font-size: 160px;
    font-weight:200;
    margin-top: 320px;
    letter-spacing:-2.5px;
    z-index: 1;
    line-height: 10px;
}
#main h2{
    display: inline;
    position: absolute;
    color:#000000;
    font-size: 40px;
    font-weight:150;
    margin-top: 430px;
    z-index: 1;
}
h2::selection{
    color: white;
    background-color: #000000;
}
#cal::selection{
    color: white;
    background-color: #000000;
}
#main img{
    position: absolute;
}

#details{
    display:flex; 
    
}
#details #img2{
    margin-top: 100px;
    margin-left: 20px;
}
#details h1{
    position: absolute; 
    font-size: 50px;
    margin-left: 40%;
    margin-top: 150px;  
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 900;
}
#details p{
    font-size: 35px;
    margin-left: 8%;
    margin-top: 18%;  
    font-family: 'Josefin Sans', sans-serif;
    text-align: center;
}
p::selection{
    color: white;
    background-color: #000000;
}
#container{
    display: flex;
    height: 30%;
    width: 100%;
    background-color: #DEE3EF;
   margin-top: 200px;
    justify-content: center;
    align-items: center;
}
.calculator{
    background-color: rgb(54, 76, 76); 
    padding: 20px;
    border-radius: 10px;
}
.calculator form input{
    border: 0;
    outline: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    box-shadow: -8px -8px 15px rgba(255,255,255,0.1) , 5px 5px 15px rgba(0,0,0,0.2);
    background: transparent;
    font-size:20px ;
    color: #fff;
    cursor: pointer;
    margin: 10px;
}
form .display{
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}
form .display input{
    text-align: right;
    flex: 1;
    font-size: 45px;
    box-shadow: none;
}
form input.equal{
    width: 145px;
}
form input.operator{
color: rgb(144, 193, 242);
}
form input.equal{
    color: rgb(51, 193, 236);
}
#main .scrl {
    position: absolute;
    border: 2px #000000 solid;
    height: 50px;
    width: 140px;
    border-radius: 50px;
    z-index: 1;
    bottom: 180px; /* Adjust this value to control the distance from the bottom */
    right: 700px;
    cursor: pointer;
   
}

.scrl::before,
.scrl::after{
    position: absolute;
    content: '';
    height: 10px;
    width: 10px;
    top: 10%;
    left: 50%;
    border: 2px black solid;
    transform: translate(-50%, -100% ) rotate(45deg);
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 1s ease-out infinite;

}
.scrl::after{
    top: 20%;
    animation-delay: .3s;
}
@keyframes scroll-down{
    0%{
        opacity: 0;

    }
    30%{
        opacity: 1;

    }
    60%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        top: 90%;
    }
}