@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Poppins;
    border: none;
    outline: none;
}

body{
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

section{
    width: 1000px;
    height: auto;
    box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, .2);
    padding: 30px 30px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

tr.active{
    background-color: rgba(0, 128, 128, .3);
}

form{
    width: 350px;
}

input{
    width: 100%;
    height: 35px;
    margin-bottom: 1.5rem;
}

.altura-peso{
    padding: 0 5px;
    border-bottom: 2px solid teal;
    transition: .3s ease-in-out;
    border-radius: 8px 8px 0px 0px;
}

.altura-peso:focus{
    border-bottom: 2px solid rgba(0, 128, 128, .5);
}

form label{
    font-weight: 500;
    margin: 5px 0px 3px 0px;
    letter-spacing: .4px;
}

input[type="submit"]{
    background-color: teal;
    color: white;
    font-size: 13pt;
    letter-spacing: .5px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: .5rem;
    transition: .3s ease-in-out;
}

h3{
    margin: .5rem 0 0 0;
    font-weight: 500;
}

h3 span{
    color: teal;
    font-size: 18pt;
    font-weight: 600;
}

input[type="submit"]:hover{
    background-color: rgba(0, 128, 128, .8);
}

form h2{
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: .3px;
    font-weight: 500;
    font-size: 16pt;
}

form h2 span{
    color: teal;
}

h2{
    text-align: center;
    margin: .5rem 0 .5rem 0;
    letter-spacing: .3px;
    font-weight: 500;
    font-size: 15pt;
}

table{
    margin: 0 auto;
    width: 100%;
    border: 1px solid teal;
    border-collapse: collapse;
}

thead td{
    background-color: teal;
    color: white;
    text-align: center;
}

td{
    border: 2px solid teal;
    padding: 3px;
    
}

.table-obesidade{
    width: 500px;
}

/*Responsividade*/
@media (max-width: 1000px){
    section{
        max-width: 1000px;
        height: auto;
        box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, .2);
        padding: 30px 10px;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .table-obesidade{
        width: 400px;
    }
}

@media (max-width: 500px){
    section{
        padding: 30px 10px;
        height: auto;
    }

    .table-obesidade{
        width: 300px;
    }

    form{
        width: 330px;
    }
}

@media (max-width: 350px){
    form{
        width: 300px;
    }
}

@media (max-width: 280px){
    section{
        padding: 30px 10px;
        height: auto;
    }

    .table-obesidade{
        width: 260px;
    }

    form{
        width: 260px;
    }
}