/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* Settings */
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-thumb{
    border: 3px solid white;
    background-color:rgb(91, 231, 138) ;
    border-radius: 50px;
}
img, a, #calculator h1, form{
    user-select: none;
}


/* Hero */
#hero{
    background-color: #5be78a;
    padding: 150px 0;
}
#hero h1, p{
    color: rgb(37, 37, 37);
}
#hero h1{
    margin-bottom: 15px;
    font: 900 2.7rem 'Montserrat', sans-serif !important;
}
#hero p{
    font: 400 1.3rem 'Outfit', sans-serif !important;
    margin: 0;
    line-height: 1.2 !important;
}
#hero a{
    margin-top: 25px;
    justify-content: center;
    width: 120px;
    text-decoration: none;
    color: rgb(22, 22, 22);
    font-weight: 500;
    padding: 8px 8px !important;
    border: 2px solid rgb(22, 22, 22);
    border-radius: 12px;
    transition: color .3s ease, background-color .3s ease;
}
#hero a:hover{
    background-color: rgb(22, 22, 22);
    color: rgb(91, 231, 138);
}
#hero img{
    width: 90%;
    max-width: 500px;
}

/* Calculator */
#calculator{
    padding: 200px 0 260px;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(./imgs/waves2.svg);
    background-color: rgb(255, 255, 255);
}
#calculator h1{
    font-family: 'Outfit', sans-serif;
}
#calculator img{
    width: 85%;
    max-width: 600px;
}

/* Form */
form{
    width: 90%;
    max-width: 500px;
    text-align: center;
}
form input[type=number]{
    background-color: rgb(245, 245, 245);
    width: 49%;
    padding: 8px 18px;
    font: 300 1rem 'Outfit', sans-serif !important;
    outline: none;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: border .2s, background-color .2s ease;
}
form input.error{
    border: 1px solid rgba(255, 47, 32, 0.425);
}
input[type=number]:focus{
    border: 1px solid rgba(0, 0, 0, 0.137);
}
form input::-webkit-inner-spin-button, form input::-webkit-outer-spin-button{
    appearance: none;
}
form select{
    cursor: pointer;
    appearance: none;
    width: 100%;
    padding: 8px 18px;
    margin-top: 10px;
    color: rgb(128, 128, 128);
    outline: none;
    font: 300 1rem 'Outfit', sans-serif !important;
    border: 1px solid transparent;
    border-radius: 200px;
    background-color: rgb(245, 245, 245);
}
#result{
    position: relative;
    margin: 10px 0 30px;
    width: 100%;
    padding: 15px 20px !important;
    background-color: rgb(245, 245, 245);
    border-radius: 25px;
}
#result p{
    letter-spacing: 1px;
    font: 400 .9rem 'Outfit', sans-serif !important;
    color: rgb(105, 105, 105);  
}

.buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.buttons #clipboard{

    
    border: 2px solid rgb(91, 231, 138);
    color: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    background-color: rgb(91, 231, 138);
    transition: background-color .2s ease, color .2s ease;
}
.buttons #clipboard:hover{
    
    background-color: white;
    color: rgb(91, 231, 138)
}
form input[type=submit]{
    border: 2px solid rgb(91, 231, 138);
    color: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 8px 12px;
    font: 500 1rem 'Outfit', sans-serif !important;
    background-color: rgb(91, 231, 138);
    transition: background-color .2s ease, color .2s ease;
}
form input[type=submit]:hover{
    background-color: white;
    color: rgb(91, 231, 138)
}

/* Waves */
.waves{
    position: absolute;
    bottom: calc(100% - 1px);
    left: 0;
    height: 85px !important;
    background-image: url(./imgs/waves.svg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Footer */
footer{
    position: relative;
    
    background-color: rgb(91, 231, 138);
}
footer h1{
    font: 700 1.5rem 'Montserrat', sans-serif
}
footer p{
    font: 300 1rem 'Outfit', sans-serif
}
footer .branding i{
    font-size: 2rem;
    color: rgb(28, 28, 29);
    transition: color .3s ease;
}
footer .branding i:hover{
    color:rgb(65, 75, 226)
}


/* Media Queries */
@media(max-width: 319px){
    form input[type=number]{
        width: 100%;
    }
    form input[type=number]:nth-of-type(2){
        
        margin-top: 10px;
    }

}
@media(max-width: 991px){
    #hero{
        padding: 90px 0;
    }
    #hero h1{
        font-size: 2.4rem !important;
    }
    #hero p{
        font-size: 1.2rem !important;
    }
    #hero h1, p{
        text-align: center;
    }
    #hero p:last-of-type{
        margin-bottom: 25px;
    }
    #hero a{
        margin: 0 auto 50px;
    }
    #calculator img{
        max-width: 450px !important;
    }
    #calculator .img{
        justify-content: center;
    }
    #calculator{
        padding: 110px 0 145px;
    }
}