body {
    height: 100%;
    margin: 0;
    color: #F5F7FA;
    background: linear-gradient(135deg, #f0f4f8, #dbe9f4);
}

body.fade-out {
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.4s ease;
}

@keyframes entradaTitulo {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


#cabecalho {
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}


#title {
    font-size: 500%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: #F76D6D;
    max-width: max-content;
    max-height: max-content;
    padding: 3%;
    border-radius: 30% 50%;

    animation-name: entradaTitulo;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    /* mantém o estado final */
}

#criarbaralho {
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    border: none;
    padding: 1%;
    border-radius: 10px;
    background-color: #1e4620;
    color: #ffffff;
    font-size: 220%;
    max-height: max-content;
    max-width: max-content;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#criarbaralho:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

#lista-baralhos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.card {
    background-color: #79797941;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 250px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
}

.card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.card p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 120%;
    color: #555;
}

.card button {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background-color: #f76d6d;
    color: rgb(31, 30, 30);
    border-radius: 6px;
    cursor: pointer;

    transition: background-color 0.4s ease, transform 0.4s ease;
}

.card button:hover {
    background-color: #55e0cd;
    transform: scale(1.1);
}

#criarcard {
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    border: none;
    padding: 1%;
    border-radius: 10px;
    background-color: #1e4620;
    color: #ffffff;
    font-size: 160%;
    
    max-height: max-content;
    max-width: max-content;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#criarcard:hover {
    background-color: #55e0cd;
    transform: scale(1.1);
}


@keyframes removerCard {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.card.removendo {
  animation: removerCard 0.4s forwards;
}