@property --porcentagem {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    transition: 0.5s color;
    transition: 0.5s background;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    width: 100vw;
    background: #F4F9FF;
    color: #1A3A5A;
    font-family: 'Roboto', sans-serif !important;
}

main{
    background: white;
    width: 80vw;
    max-height: 80%;
    min-height: 10%;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
}

#div-LS{
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 80px;
}

#Input-button-LS{
    border-radius: 5px;
    border: 1px solid #D1E3F0;
    padding-left: 10px;
    padding-right: 10px;
    height: 30px;
    background: transparent;
    color: #1A3A5A;
}

#Input-text-LS{
    border-radius: 5px;
    border: 1px solid #D1E3F0;
    height: 30px;
    color: #1A3A5A;
    background: transparent;
}

#Input-text-LS::placeholder{
    color: #1A3A5A;
}

#LS-inputs-div{
    display: flex;
    justify-content: center;
    align-items: center;
}

#barra{
    background: linear-gradient(90deg, #60a5fa var(--porcentagem), #f0f0f0 var(--porcentagem));
    width: 70vw;
    height: 60px;
    border-radius: 50px;
    transition: 2s --porcentagem ease-in-out;
    color: #f0f0f0;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#barra-d-agua{
    margin-top: 50px;
    display: none;
    align-items: center;
    flex-direction: column;
}

#text-barra{
    margin-bottom: 20px;
}

#button-BBA-div{
    margin-bottom: 20px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    margin-bottom: 80px;
}

#button-BBA{
    border-radius: 50%;
    width: 160px;
    height: 160px;
    border: none;
    margin-bottom: 30px;
    background: #60a5fa;
    font-size: 20px;
    color: white;
    display: none;
}

#text-BBA{
    border-radius: 5px;
    border: 1px solid #D1E3F0;
    height: 30px;
    color: #1A3A5A;
    background: transparent;
}

#change-mode{
    background: transparent;
    border: 2px solid black;
    width: 50px;
    height: 50px;
    border-radius: 150px;
    font-size: 30px;
    position: relative;
}

#div-mode{
    position: fixed;
    z-index: 9999;
    top: 5px;
    left: 5px;
}

#baixar{
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    font-size: 10px;
    bottom: 5px;
    right: 5px;
    text-decoration: none;
    color: black;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark {
    background: #242424;
}

body.dark main{
    background: #323232;
}

body.dark input::placeholder,body.dark input{
    color: white !important;
}

body.dark main, 
body.dark p, 
body.dark span, 
body.dark h3 {                
    color: white !important;
}

body.dark #div-LS h3, 
body.dark #div-LS i {
    color: #5875d4 !important;
}

body.dark #barra{
    background: linear-gradient(90deg, #5875d4 var(--porcentagem), #242424 var(--porcentagem));
}

body.dark #barra p{
    color: #242424 !important;
}

body.dark #button-BBA{
    background: #5875d4;
}

body.dark #erro1,
body.dark #erro2{
    color: red !important;
}

body.dark #change-mode{
    border: 2px solid white;
    color: white !important;
}

body.dark #change-mode .bi-sun{
    display: block !important;
}

body.dark #change-mode .bi-moon{
    display: none;
}

body.dark #baixar{
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5);
    background: #242424;
    color: white;
}


@media(max-width:650px){
    h3,.bi-droplet{
        font-size: 20px;
    }
}

@media(min-width:650px){
    h3,.bi-droplet{
        font-size: 35px;
    }
    p{
        font-size: 25px;
    }
    #button-BBA{
        width: 300px;
        height: 300px;
        font-size: 40px;
    }
    #text-BBA,#Input-text-LS{
        height: 60px;
        width: 300px;
        font-size: 25px;
    }
    span{
        font-size: 35px;
    }
    #text-BBA::placeholder,#Input-text-LS::placeholder{
        font-size: 25px;
    }
    #change-mode{
        height: 100px;
        width: 100px;
        font-size: 55px;
    }
    #Input-button-LS{
        height: 60px;
        width: 150px;
        font-size: 30px;
    }
    #baixar{
        font-size: 30px;
    }
}