/* TABELA */
table {
    height: 98vh;
    width: 100%;
    margin: auto;

}

td {
    width: 5.5%;
    height: 5vh;
    text-align: center;
    border-radius: 8px;

}

.gaveta {
    text-align: left;
    vertical-align: top;

}

.ex{
    font-size: 12px;
}


/* ELEMENTOS DA TABELA*/

.n_metais {
    background-color: #B3D9FF
}

.m_alcalinos {
    background-color: #c7c7ff
}

.m_alcalinoT {
    background-color: #DCC6E0
}

.m_transicao {
    background-color: #FFC0CB
}

.g_nobres {
    background-color: #FFABAB
}

.lan {
    background-color: #dfc6b6c0
}

.acti {
    background-color: #FFDAB9;
}

.o_metais {
    background-color: #FDFD96
}

.sem_metais {
    background-color: #B5EAD7
}

.halogenios {
    background-color: #D4E157;
}

#titulo {
    font-size: 45px;
    font-family: cursive;
}

#b_titulo {
    width: 5.5%;
    height: 5%;
    text-align: center;
}

.n_atomico {
    text-align: left;
}

/* LEGENDA */

.legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: cursive;
    justify-content: center;
    ;
}

.item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cor {
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 3px;
}

.nao-metais {
    background-color: #B3D9FF;
}

.metais-alcalinos {
    background-color: #c7c7ff;
}

.semimetais {
    background-color: #B5EAD7
}

.outros-metais {
    background-color: #FDFD96
}

.lantanideos {
    background-color: #dfc6b6c0
}

.gases-nobres {
    background-color: #FFABAB
}

.metais-alcalino-terrosos {
    background-color: #DCC6E0
}

.halogenios {
    background-color: #D4E157;
}

.metais-transicao {
    background-color: #FFC0CB
}

.actinidios {
    background-color: #FFDAB9;
}


.container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*HOVER*/
.legenda-elemento{
    display: none;
    position: absolute;
    top: 85%;
    left: 800%;
    background-color: beige;
    border: 1px solid black;
    padding: 10px;
    border-radius: 10px;
}

.elemento:hover .legenda-elemento{
    display: inline;
}

.elemento {
    position: relative;
    text-align: center;
}