*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:Verdana, sans-serif;
}

body{
    background-color: #090e22;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #FFF;
}

.hide{
    display: none !important;
}

.container{
    min-width: 400px;
    min-height: 400px;
    background-color: #1d1e33;
    padding: 2rem;
}

/* IMC Form */

#calc-container{
    text-align: center;
    margin-bottom: 2rem;
}

h1{
    font-size: 1.5rem;
}

.form-inputs{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-control{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 1rem;
}

.form-control label{
    font-weight: bold;
    margin-bottom: 0.6rem;
    color: #ccc;
}

.form-control input{
    padding: 1rem .5rem;
}

.action-control{
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem; /* espaço entre os botões */
}

button{
    text-transform: uppercase; /* Texto em caixa alta */
    padding: 1rem 1.5rem;    /* espaçamento interno e aspecto de botão */
    background-color: #F44236;
    border: none;
    color: #FFF;
    cursor: pointer;
    opacity: 0.9;
    flex: 1;
}

button:hover{
    opacity: 1;
}

#clear-btn{
    background-color: #444;
}

/* TABLE */

#result-container{
    text-align: center;
    display: flex;
    flex-direction: column;
}

#imc-number{
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

#imc-info{
    font-size: 1.4rem;
    color: #ccc;
}

#result-container h3{
    margin-top: 1rem;
    color: #dfdfdf;
}

#imc-table{
    margin: 1.5rem 0;
    font-size: 0.8rem;
}

.table-header{
    font-weight: bold;
    color: #ccc;
}

.table-header, 
.table-data{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}


.table-header h4,
.table-data p{
    flex: 1;  /* iguala tamanhos entre nomes e numeros */
}

.table-header h4:nth-child(3),
.table-data p:nth-child(3){
    max-width: 80px;        /* limita o tamanho do item 'obesidade' e seu numero através de nth-child */
}

#back-btn{
    align-self: center; /* limita a largura do fundo do iten 'voltar' */
}                       

.good{
    color: #12bd34;
}

.low{
    color: #dbce12;
}

.medium{
    color: #db6212;
}

.high{
    color: #db1912;
} 
