body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #fff;
    text-align: center;
    overflow: hidden; /* Mantém para evitar rolagem do body */
    box-sizing: border-box;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5vh 3vw; /* **NOVO: Padding vertical ainda mais reduzido** */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 98vh; /* Permite ao container usar quase toda a altura da viewport */
    width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mantém para empurrar rodapé para baixo */
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

header, main, footer {
    width: 100%;
    box-sizing: border-box;
    min-height: fit-content;
}

.logo {
    max-width: 480px;
    width: 70%;
    height: auto;
    margin-top: 100px; /* **NOVO: 100px de margem no topo** */
    margin-bottom: 100px; /* **NOVO: 100px de margem abaixo** */
    transition: all 0.3s ease-in-out;
}

h1 {
    font-size: 2.2em; /* **NOVO: Título um pouco menor** */
    margin-top: 0; /* **NOVO: Remove margem superior para aproximar do logo** */
    margin-bottom: 0.8vh; /* Espaço responsivo */
    color: #fdbb2d;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

p {
    font-size: 1em; /* Parágrafo */
    line-height: 1.4;
    margin-bottom: 0.8vh; /* Espaço responsivo */
    transition: all 0.3s ease-in-out;
}

.countdown {
    font-size: 2em; /* **NOVO: Contador um pouco menor** */
    font-weight: bold;
    margin-top: 1.5vh; /* Espaço responsivo */
    margin-bottom: 1.5vh; /* Espaço responsivo */
    color: #fdbb2d;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    transition: all 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

footer {
    margin-top: 1.5vh; /* **NOVO: Espaço reduzido antes do rodapé** */
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
    min-height: fit-content;
}

footer p {
    margin-bottom: 0.2vh; /* Espaço responsivo mínimo */
    font-size: 0.85em;
}

.atmr-info {
    margin-top: 0.5vh; /* Espaço responsivo mínimo */
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

.atmr-info a {
    color: #fdbb2d;
    text-decoration: none;
    font-weight: bold;
}

.atmr-info a:hover {
    text-decoration: underline;
}

.atmr-logo {
    max-width: 100px;
    height: auto;
    margin-top: 0.5vh; /* Espaço responsivo mínimo */
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: all 0.3s ease-in-out;
}

/* --- Media Queries Reajustadas --- */

/* Para telas de desktops e laptops grandes (Full HD e acima) */
@media (min-width: 1600px) {
    .container {
        max-width: 1100px;
        padding: 2.5vh 4vw;
    }
    .logo {
        max-width: 550px;
        margin-top: 100px;
        margin-bottom: 100px;
    }
    h1 {
        font-size: 2.5em;
    }
    p {
        font-size: 1.1em;
    }
    .countdown {
        font-size: 2.5em;
    }
    .atmr-logo {
        max-width: 110px;
    }
}

/* Para telas de desktops e laptops médios (como Full HD) */
@media (max-width: 1599px) and (min-width: 1200px) {
    .container {
        max-width: 900px;
        padding: 2vh 3.5vw;
    }
    .logo {
        max-width: 450px;
        margin-top: 90px; /* Reduzido para caber melhor */
        margin-bottom: 90px;
    }
    h1 {
        font-size: 2.2em;
    }
    p {
        font-size: 1em;
    }
    .countdown {
        font-size: 2.2em;
    }
    .atmr-logo {
        max-width: 90px;
    }
}

/* Para telas de tablets e laptops menores */
@media (max-width: 1199px) {
    .container {
        max-width: 85%;
        padding: 1.8vh 3vw;
    }
    .logo {
        max-width: 380px;
        margin-top: 80px; /* Reduzido */
        margin-bottom: 80px;
    }
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 0.9em;
    }
    .countdown {
        font-size: 1.8em;
    }
    .atmr-logo {
        max-width: 80px;
    }
}

@media (max-width: 991px) { /* Tablets grandes (landscape) */
    .container {
        padding: 1.5vh 2.5vw;
    }
    h1 {
        font-size: 1.5em;
    }
    p {
        font-size: 0.8em;
    }
    .logo {
        max-width: 300px;
        margin-top: 70px; /* Reduzido */
        margin-bottom: 70px;
    }
    .countdown {
        font-size: 1.5em;
    }
    .atmr-logo {
        max-width: 70px;
    }
    footer {
        margin-top: 1.2vh;
    }
}

@media (max-width: 767px) { /* Tablets pequenos e celulares grandes */
    .container {
        padding: 1.2vh 2vw;
    }
    h1 {
        font-size: 1.2em;
        margin-bottom: 0.6vh;
    }
    p {
        font-size: 0.7em;
        margin-bottom: 0.6vh;
        line-height: 1.3;
    }
    .countdown {
        font-size: 1.2em;
        margin-top: 0.8vh;
        margin-bottom: 1vh;
    }
    .logo {
        max-width: 250px;
        margin-top: 60px; /* Reduzido */
        margin-bottom: 60px;
    }
    .atmr-logo {
        max-width: 60px;
    }
    footer {
        margin-top: 1vh;
    }
}

@media (max-width: 479px) { /* Celulares pequenos */
    .container {
        padding: 1vh 1.5vw;
    }
    h1 {
        font-size: 1em;
        margin-bottom: 0.4vh;
    }
    p {
        font-size: 0.6em;
        margin-bottom: 0.4vh;
    }
    .countdown {
        font-size: 1em;
        margin-top: 0.6vh;
        margin-bottom: 0.8vh;
    }
    .logo {
        max-width: 200px;
        margin-top: 50px; /* Reduzido */
        margin-bottom: 50px;
    }
    .atmr-logo {
        max-width: 50px;
    }
    footer {
        margin-top: 0.8vh;
    }
}