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

body{
    background-color: #235347;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

.tabela{
    background-color: #8EB69B;
    width: 400px;
    max-width: 100%;

    padding: 30px;

    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

h1{
    text-align: center;
    color: #235347;
    margin-bottom: 25px;
}

.inputs{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label{
    color: #235347;
    font-weight: bold;
}

input{
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 10px;

    background-color: #DAF1DE;

    font-size: 16px;
    outline: none;
}

input:focus{
    box-shadow: 0 0 5px rgba(35, 83, 71, 0.5);
}

button{
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 10px;

    background-color: #DAF1DE;

    color: #235347;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;
}

button:hover{
    transform: translateY(-2px);
}

button:active{
    transform: translateY(0);
}

.resultadoIMC,
.resultado{
    display: none;

    margin-top: 15px;

    padding: 12px;

    border-radius: 10px;

    background-color: #DAF1DE;

    color: #235347;

    text-align: center;
    font-weight: bold;

    animation: aparecer 0.4s ease;
}

@keyframes aparecer{
    from{
        opacity: 0;
        transform: translateY(10px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */

@media (max-width: 600px){

    .tabela{
        width: 100%;
        padding: 20px;
        border-radius: 15px;
    }

    h1{
        font-size: 1.6rem;
    }

    label{
        font-size: 0.95rem;
    }

    input,
    button{
        font-size: 1rem;
        padding: 10px;
    }

    .resultadoIMC,
    .resultado{
        font-size: 0.95rem;
    }
}