* {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    font-family: Arial;
    font-size: 16px;
}

body {
    overflow-x: hidden;
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
    transition: 0.3s ease, color 0.3s ease;
}

body:has(input:checked) .elementos, .bright{
    filter: brightness(110%);
    text-shadow: 0 0 5px #fff, 0 0 10px rgb(171, 178, 176), 0 0 20px rgb(177, 199, 191);
    
}

body:has(input:checked){
    background: rgb(16, 16, 16);
}

body:has(#toogle:checked) .indice{
    color: white;
}

body:has(#toogle:checked) .num {
    border-bottom: solid white 0.4px;
}

body:has(#toogle:checked) .lado {
    border-right: solid white 0.4px;
}

.tabela {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    width: 80%;
    height: 80vh;
    border: none;
    margin-top: 20px;
}

td {
    width: 5%;
    height: 8%;
    text-align: center;
    padding: px;
}
div {
    text-align: left;
    margin: 5px 0 0 5px;
}

.verde {
    background-color: rgba(42, 179, 42, 0.62);
}

.laranja {
    background-color: rgba(255, 166, 0, 0.633);
}

.amarelo {
    background-color: rgba(255, 255, 0, 0.71);
}

.rosa {
    background-color: rgba(255, 192, 203, 0.678);
}

.cinza {
    background-color: rgba(95, 158, 160, 0.697);
}

.verdeAzul {
    background-color: rgba(16, 134, 114, 0.681);
}

.azulClaro {
    background-color: rgba(173, 216, 230, 0.658);
}

.azulEscuro {
    background-color: rgba(18, 172, 172, 0.638);
}

.ciano {
    background-color: rgba(2, 211, 211, 0.642);
}

.roxo {
    background-color: rgba(221, 160, 221, 0.726);
}

.border {
    border: none;
    text-align: center;
    justify-content: center;
}

.num {
    border-bottom: solid black 0.4px;
}

.lado {
    border-right: solid black 0.4px;
}

.indice {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 10px;
}

.branco {
    background: rgba(255, 255, 255, 0.615);
}

.legenda {
    height: 3rem;
}

.espaco {
    height: 3rem;
}

.elementos {
    position: relative;
    transition: all 0.3s ease;
}

.elementos:hover {
    position: relative;
    overflow: hidden;
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border: solid rgba(0, 0, 0, 0.6) 2px;
}

.elementos:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 4px;
    z-index: 0;
}

.elementos > * {
    position: relative;
    z-index: 1;
}

button {
    cursor: pointer;
    width: 72px;
    height: 60px;
    background: none;
    border: none;
}

.dim {
    opacity: 0.5;
    filter: grayscale(40%);
    transition: 0.3s ease;
}

.highlight {
    outline: 1px solid black;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    z-index: 10;
    opacity: 1 !important;
    filter: none !important;
}

body:has(input:checked) .highlight{
    outline: 1px solid white;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    z-index: 10;
    opacity: 1 !important;
    filter: none !important;
}

h4 {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: -15px;
}

input {
    width: 50px;
    height: 20px;
    border: none;
    outline: none;
    text-decoration: none;
}

.numTabela {
    height: 10px;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
    animation: fadeInSlide ease-out 0.3s forwards;
}

/*blur no fundo*/
.overlay-blur {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.2);
    z-index: 9998;
    animation: fadeOverlay 0.3s ease;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}


.elementos.ativo {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.2) !important;
    z-index: 9999;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    border: solid 2px rgba(0,0,0,0.8);
}

.elementos.ativo:hover {
    transform: translate(-50%, -50%) scale(2.2) !important;
}

body:has(#toogle:checked) .elementos.ativo {
    border: solid 2px white;
    box-shadow: 0 30px 80px rgba(255,255,255,0.4);
}

/* RESPONSIVIDADE */

/* tablets */
@media (max-width: 1200px) {

    table{
        width: 1200px;
        height: auto;
    }

    .tabela{
        overflow-x: auto;
        padding: 20px;
    }

}

/* celulares */
@media (max-width: 768px){

    table{
        width: 1000px;
    }

    .tabela{
        overflow-x: auto;
        align-items: flex-start;
    }

}

/* celulares pequenos */
@media (max-width: 480px){

    table{
        width: 900px;
        transform: scale(0.85);
        transform-origin: top left;
    }

}
