/* =========================================
   fundo.css - Design Oficial Nuvito
========================================= */

body {
    margin: 0;
    padding: 0;
    /* Degradê que simula um céu infantil realista */
    background: linear-gradient(180deg, #51B1F5 0%, #CDEBFC 100%);
    overflow: hidden; 
    font-family: Arial, sans-serif;
}

/* Sol animado posicionado no canto ESQUERDO */
.sol-cenario {
    position: absolute;
    top: 8%;
    left: 8%; /* Posicionado perfeitamente à esquerda */
    width: 100px;
    height: 100px;
    background: #FFD700;
    border-radius: 50%;
    /* O box-shadow cria a ilusão do brilho do sol se espalhando */
    box-shadow: 0 0 40px #FFD700, 0 0 80px #FFA500;
    z-index: -2; /* Fica atrás de tudo, inclusive das nuvens */
    animation: pulsarSol 4s infinite alternate ease-in-out;
}

@keyframes pulsarSol {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); box-shadow: 0 0 60px #FFD700, 0 0 100px #FFA500; }
}

/* =========================================
   Sistema de Nuvens
========================================= */

.nuvem {
    background: #ffffff;
    position: absolute;
    z-index: -1;
    pointer-events: none; /* Garante que as nuvens não atrapalhem o jogo */
}

.nuvem::after, .nuvem::before {
    content: '';
    background: #ffffff;
    position: absolute;
    border-radius: 50%;
}

/* --- Formas aprovadas --- */
.forma-1 { width: 160px; height: 50px; border-radius: 50px; }
.forma-1::before { width: 70px; height: 70px; top: -30px; left: 25px; }
.forma-1::after { width: 90px; height: 90px; top: -45px; right: 20px; }

.forma-2 { width: 200px; height: 40px; border-radius: 50px; }
.forma-2::before { width: 60px; height: 60px; top: -25px; left: 40px; }
.forma-2::after { width: 70px; height: 70px; top: -35px; right: 45px; }

.forma-3 { width: 140px; height: 60px; border-radius: 50px; }
.forma-3::before { width: 80px; height: 80px; top: -40px; left: 15px; }
.forma-3::after { width: 60px; height: 60px; top: -20px; right: 15px; }

/* Animações básicas de deslizamento */
@keyframes irParaDireita {
    from { left: -300px; }
    to { left: 110vw; }
}

@keyframes irParaEsquerda {
    from { right: -300px; }
    to { right: 110vw; }
}

/* =========================================
   Estrutura do Jogo e Mascote
========================================= */

.area-do-jogo {
    position: relative;
    z-index: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
}

.nuvito-mascote {
    position: absolute;
    z-index: 2; 
    width: 150px; 
    opacity: 0.7; /* Mantém o mascote harmônico com o céu */
    pointer-events: none; 
    transition: opacity 0.5s; 
}