* {
    font-family: Arial, Helvetica, sans-serif;
}


body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color:rgba(236, 236, 253, 0.592);
    --cor-tema: rgba(26, 44, 184, 0.802);
}


h2 {
    font-family: 'Lato', 'Courier New', Courier, monospace;
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
    text-decoration: none;
    font-size: 38px;

    color: var(--cor-tema);
    margin-bottom: 50px;
}

/* ======= BOTÕES ===================================== */

.btn-cadastrar {
    background-color: var(--cor-tema);
    border: 0px solid white;
    color: white;
}
.btn-cadastrar:hover {
    background-color: rgba(19, 33, 141, 0.802);
}

.btn-cadastrar:active {
  transform: scale(0.985);
}

#btn-listar-alunos {
    background-color: rgb(247, 247, 253);
    border: 1px solid var(--cor-tema);
    color: var(--cor-tema);
    width: 200px;
}

#btn-listar-alunos:hover {
    background-color: rgba(110, 115, 153, 0.147);
}

#btn-listar-alunos:active {
  transform: scale(0.985);
}


.btn-duplo {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.btn-duplo * {
    align-items: center;
    width: 100%;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 2px;
}

/* ======= FORMULÁRIO ===================================== */

.form-box {
    background-color: rgb(247, 247, 253);
    width: 700px;
    height: auto;
    border-radius: 0px;
    padding: 50px;
    border: 8px solid var(--cor-tema);
}

.form-items {
    display: grid;
    margin: 0 30px

}

.form-items label {
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
    margin-bottom: 4px;
}

.campo {
    background-color: rgb(247, 247, 253);

    padding: 12px 10px;
    border-radius: 0px;
    border: 2.5px solid rgb(192, 192, 192);
    margin-bottom: 20px;
    border-radius: 2px;

}

.campo:focus {
    border-color: rgb(108, 116, 177);
    outline: none;
}

.input-label:focus-within label {
    color: rgb(108, 116, 177);
}

.input-label {
    display: flex;
    flex-direction: column;
}

#mensagem {
    font-size: medium;
    font-weight: 600;
    text-align: center;
    color: green;

    padding: 0;
    margin-top: 20px;
}

/* ======= TABELA ============================================== */

#tabela-alunos {
    display: none;
    margin: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;

}

th, td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px;
}

th {
    background-color: #4c5572;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}