/* Estilização geral */
body {
    text-align: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(120deg, #001F3F, #007BFF);
    background-size: 400% 400%;
    animation: moveBackground 10s infinite alternate ease-in-out;
    color: white;
}

/* Animação do fundo */
@keyframes moveBackground {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Área do jogo */
#gameArea {
    position: relative;
    width: 100%;
    height: 400px;
    border: 2px solid white;
    overflow: hidden;
}

/* Bolhas 3D */
.bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, rgba(0, 150, 255, 0.8) 80%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 60px;
    font-size: 26px;
    font-weight: bold;
    color: black;
    transition: transform 0.3s ease-in-out;
}

/* Efeito quando bolha é perdida */
.bubble.lost {
    background-color: green;
    opacity: 0.7;
    transform: scale(1.3);
}

/* Estilização do botão de modo clique */
#clickMode {
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    background: white;
    color: black;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: 0.3s;
}

#clickMode:hover {
    background: red;
    color: white;
    transform: scale(1.1);
}

/* Fundo animado com bolhas flutuantes */
.floating-bubbles {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.bubble-floating {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatUp 6s infinite ease-in-out;
}

.bubble-floating:nth-child(1) { left: 20%; animation-duration: 4s; }
.bubble-floating:nth-child(2) { left: 50%; animation-duration: 6s; }
.bubble-floating:nth-child(3) { left: 80%; animation-duration: 5s; }
.bubble-floating:nth-child(4) { left: 30%; animation-duration: 7s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(1); opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

