body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #121212;
    margin: 0;
    flex-direction: column;
    transition: background-color 1s ease-in-out;
    text-align: center; /* Garante que o texto fique centralizado */
    padding: 20px; /* Adiciona espaço nas laterais */
    font-family: 'Arial', sans-serif; /* Define a fonte global */
}

button {
    font-size: 24px;
    padding: 15px 30px;
    border: none;
    background-color: #B22222;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
    animation: pulse 1.5s infinite alternate ease-in-out;
    margin-top: 20px; /* Adicionando um espaço acima do botão */
}

button:hover {
    background-color: transparent;
    border: 2px solid #B22222;
    color: white;
    transition-delay: 0.15s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.red-bg {
    background-color: #B22222 !important;
    transition: background-color 1.5s ease-in-out;
}

.hidden {
    display: none;
}

#message {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    text-align: center;
}

#fixedText {
    margin-top: 20px;
    font-size: 16px;
    color: white;
    text-align: center;
    max-width: 400px;
}

#countdown {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    text-align: center;
}

#timer {
    font-size: 24px;
    color: #ebebeb;
}

/* Galeria */
#gallery {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.gallery-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.gallery-item {
    text-align: center;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Espaço entre as linhas de imagens */
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.1); /* Efeito de zoom nas imagens ao passar o mouse */
}

.gallery-item p {
    font-family: 'Arial', sans-serif; /* Você pode trocar por qualquer fonte que preferir */
    font-size: 16px;
    color: white;
    text-align: center;
    max-width: 140px;
    margin-top: 15px; /* Espaçamento maior */
}

/* Ajustando o vídeo */
video {
    margin-top: 50px; /* Espaçamento da parte superior */
    margin-left: 20px; /* Espaço nas laterais */
    margin-right: 20px; /* Espaço nas laterais */
    display: block; /* Faz o vídeo ser exibido como um bloco */
    margin-bottom: 50px; /* Espaçamento da parte inferior */
    max-width: 80%; /* Limita a largura do vídeo */
    height: auto; /* Mantém a proporção do vídeo */
}

/* Responsividade: ajusta a galeria para telas pequenas */
@media (max-width: 768px) {
    .gallery-item {
        max-width: 45%; /* Ajusta o tamanho das imagens em telas menores */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        max-width: 90%; /* Ajusta ainda mais as imagens em telas muito pequenas */
    }
    video {
        max-width: 100%; /* Ajusta o vídeo para telas pequenas */
    }
}
