/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'VT323', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1; /* Fica atrás dos modais */
}

.card {
    background-color: #1e1e1e;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-image {
    font-size: 80px;
    margin-bottom: 20px;
}

#question-text {
    font-size: 1.6rem;
    line-height: 1.4;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    background-color: #2e2e2e;
    color: #00ff88;
    border: 2px solid #00ff88;
    padding: 15px;
    font-size: 1.3rem;
    font-family: 'VT323', monospace;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn:active {
    transform: scale(0.95);
}

/* --- TELA DE VITÓRIA --- */
.final-screen {
    animation: fadeIn 1s;
}

.heart {
    color: #ff3366;
    font-size: 100px;
    animation: pulse 1s infinite;
    margin: 20px 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- MODAIS (Game Over e Start Screen) --- */
.modal-overlay {
    display: none; /* Começa invisível (exceto o start-screen que tem style inline) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #000;
    border: 4px solid red;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
}

/* Animação de tremer no Game Over */
#modal-gameover .modal-content {
     animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* --- ESTILO DO JUMPSCARE --- */
.jumpscare-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2000; /* Fica em cima do game over */
    justify-content: center;
    align-items: center;
    animation: flashbg 0.2s infinite;
}

.scary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: shakeScary 0.1s infinite;
    opacity: 0.8;
}

@keyframes flashbg {
    0% { background-color: black; }
    50% { background-color: white; }
    100% { background-color: black; }
}

@keyframes shakeScary {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5px, -5px) scale(1.1); }
    100% { transform: translate(-5px, 5px) scale(1); }
}