@charset "UTF-8";

:root{
    --cor1: #56E39F;
    --cor2: #51c09d;
    --cor3: #ED6A5A;
    --cor4: #1C5253;
    --cor5: #001603;
    --cor6: #d8f0f1;
}

body{
    background-color: #1C5253;
    color: #ED6A5A;
    font-size: 1.3em;
}
h1{ text-align: center;}
h2,h3,h4,h5{
   margin: 5px 0px 3px 0px; 
}
label{
    font-size: 0.9em;
}
main{
    width: 80%;
    background-color: var(--cor6);
    max-width: 800px;
    margin: auto;
    border-radius: 5px;
    padding: 5px;
}
section{
    padding: 10px;
    display: flex;
    justify-content: space-around;
    margin: auto;
}
section > div {
    width: 90%;
    min-width: 100px;
    max-width: 350px;
    color: var(--cor2);
    background-color: var(--cor4);
    margin: 10px;
    padding: 5px;
    border-radius: 5px;
}
input{
    background-color: transparent;
    border: none;
    color: var(--cor6);
    border-bottom: 1px solid var(--cor5);
}
.porcentagem{
    margin-top: 16px;
}
.resultado > div{
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
.resultado > div > h5{
    font-size: 1.3rem;
    width: auto;
    min-width: 40px;
}
span {
    margin-left: 5px;
    font-size: 2em;
    font-weight: 600;
    color: var(--cor1);
}
button{
    width: 45%;
    height: 30px;
    color: var(--cor2);
    background-color: var(--cor5);
    border: none;
    border-radius: 5px;
    margin: 5px 3px;
}
button:active{
    background-color:rgb(48, 48, 48);
}




footer{
    color: var(--cor5);
    border-top: 1px solid white;
    bottom: 5px;
    left: 0px;
    position: absolute;
	width: 100%;
    margin: 0px;
    font-weight: lighter;
	display: flex;
	justify-content: center;
}
footer > a {
    text-decoration: none;
    color: rgb(0, 20, 90);
    font-weight: bolder;
	margin-left: 5px;
}
a:hover{
	text-decoration: underline;
	transform: translatey(0px);
	animation: flutua 0.5s ease-in-out 3;
}
@keyframes flutua {
	0%{
		transform: translatey(0px);
	}
	50%{
		transform: translatey(-10px);
	}
	100%{
		transform: translatey(0px);
	}

}

@media (max-width: 760px){
    section{
        display: block;
        margin: auto;
    }
    section > div {
        margin: auto;
        margin-bottom: 10px;
    }
}