/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: 'Segoe UI', sans-serif;
    color: white;

    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}


/* Título */
h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-family: title1;
}

/* Container do card */
.card-container {
    width: 320px;
    height: 220px;
    perspective: 1200px;
}

/* Card */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;

    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(.4,2,.3,1);

    cursor: pointer;
}

/* Giro */
.card-inner.flip {
    transform: rotateY(180deg);
}

/* Faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;

    border-radius: 20px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 25px rgba(0,0,0,0.4);

    backface-visibility: hidden;
}

/* Frente (glass claro) */
.front {
    background: linear-gradient(135deg, #3CB371);
}

/* Verso (neon) */
.back {
    background: linear-gradient(135deg, #0ea5e9);
    transform: rotateY(180deg);
}

/* Labels */
.card-face span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Pergunta */
#pergunta {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Resposta */
#resposta {
    font-size: 1.6rem;
    font-weight: bold;
}

/* Dica */
.dica {
    margin-top: 15px;
    font-size: 11px;
    opacity: 0.6;
}

/* Botão */
button {
    margin-top: 35px;
    padding: 12px 30px;

    border-radius: 999px;
    border: none;

    font-size: 14px;
    font-weight: bold;

    color: white;
    background: linear-gradient(135deg, #8A2BE2, #A020F0);

    cursor: pointer;

    transition: all 0.25s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Hover bonito */
button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Clique */
button:active {
    transform: scale(0.95);
}