/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: auto;
    background-color: #112;
    color: #fff;
    font-family: 'Press Start 2P', cursive, sans-serif;
    line-height: 1.6;
    text-align: center;
    animation: piscar-fundo 5s infinite alternate; /* Animação de fundo piscando */
}

@keyframes piscar-fundo {
    0% { background-color: #111; }
    100% { background-color: #112; } /* Um tom ligeiramente mais claro de preto */
}

/* Cabeçalho */
header {
    margin: 20px 0 40px;
    width: 100%;
    padding: 20px 0;
}

/* Container principal */
.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilo do botão */
button {
    background-color: #ff0000;
    color: #fff;
    border: 2px solid #ffdf00;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

button:hover {
    background-color: #ffdf00;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 223, 0, 0.7);
    animation: none;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7),
                 0 0 10px rgba(255, 223, 0, 0.8);
}

button:active {
    transform: translateY(-2px); /* Um pequeno ajuste ao clicar */
    box-shadow: 0 2px 5px rgba(255, 223, 0, 0.9); /* Sombra mais sutil ao clicar */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(255, 223, 0, 1); /* Brilho mais intenso ao clicar */
}

/* Contêiner do jogo */
.game-container {
    position: relative;
    margin-top: 40px;
    padding: 20px;
    border: 4px solid #ffdf00;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff6347, #ffb6c1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 1s ease;
}

/* Iframe do jogo */
#game-iframe {
    border: none;
    display: block;
    margin: 0 auto;
}

/* Animação de balanço contínuo */
@keyframes balanço-continuo {
    0%, 100% { transform: rotate(0deg); }
    25%, 75% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.intro {
    text-align: center;
}

/* Seções */
section {
    margin-bottom: 40px;
}

section h1, section h2 {
    font-size: 2rem;
    color: #ffdf00;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
    cursor: pointer;
}

section h1:hover, section h2:hover {
    transform: translateY(-3px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(255, 223, 0, 0.6);
    animation: piscar-texto 0.2s infinite alternate; /* Nova animação ao passar o mouse */
}

@keyframes piscar-texto {
    from { opacity: 1; }
    to { opacity: 0.2; }
}

section h1:active, section h2:active {
    transform: translateY(-1px); /* Um pequeno ajuste ao clicar */
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(255, 223, 0, 0.8); /* Brilho mais intenso ao clicar */
}

/* Rodapé */
footer {
    margin-top: 40px;
    font-size: 1rem;
    color: #00ff00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: mudar-cor-footer 3s infinite alternate; /* Nova animação para o footer */
}

@keyframes mudar-cor-footer {
    0% { color: #00ff00; }       /* Verde inicial */
    33% { color: #ff00ff; }      /* Magenta */
    66% { color: #00ffff; }      /* Ciano */
    100% { color: #ffff00; }     /* Amarelo */
}