/* Estilos globais */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Oswald', sans-serif;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Fundo dinâmico */
body {
    background-color: black; /* Fallback caso a imagem não carregue */
    background-size: cover;
    background-position: center;
}

/* Container principal */
.container {
    padding: 2vh; /* Espaçamento relativo à altura da tela */
    border-radius: 20px;
    width: 90vw; /* 90% da largura da tela */
    max-width: 90vw; /* Garante que não ultrapasse 90% da largura */
    background-color: transparent; /* Fundo totalmente transparente */
    box-sizing: border-box; /* Inclui padding na largura total */
}

/* Container alinhado no topo */
.container.top-align {
    align-self: flex-start; /* Alinha no topo */
    margin-top: 5vh; /* Espaçamento do topo relativo à altura da tela */
}

/* Título */
h1 {
    font-size: 4vh; /* Tamanho relativo à altura da tela */
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Estilo dos <hr> */
.c_container {
    border: 0;
    height: 0.4vh;
    background-color: #E1BD70; /* Nova cor */
    margin: 2vh 0; /* Espaçamento vertical relativo à altura da tela */
}

/* Tempo médio */
.tempo {
    font-size: 10vh; /* Tamanho relativo à altura da tela */
    font-weight: bold;
    margin: 2vh 0; /* Espaçamento vertical relativo à altura da tela */
    color: #E1BD70; /* Nova cor */
    animation: pulse 1.5s infinite alternate;
    white-space: nowrap; /* Impede que o texto quebre em várias linhas */
    overflow: hidden; /* Garante que o texto não ultrapasse o container */
    text-overflow: ellipsis; /* Adiciona "..." se o texto não couber */
}

/* Animação de pulsação */
@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

#proximaAtualizacao {
    font-size: 4vh;
    color: white;
    margin-top: 2vh;
}

#contador {
    font-weight: bold;
    color: #E1BD70;
}

.layout3-only {
    display: none;
}

/* Exibe os elementos no layout 3 */
body.layout3 .layout3-only {
    display: block;
}

/* Fundo preto para o layout 3 */
body.layout3 {
    background-color: black;
    background-image: none; /* Remove a imagem de fundo */
}

/* Footer */
.container-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Fundo transparente */
    padding: 2vh 0; /* Espaçamento relativo à altura da tela */
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-footer img {
    max-width: 50vw; /* Largura relativa à largura da tela */
    height: auto;
}

/* Estilos para orientação horizontal (landscape) */
@media (orientation: landscape) {
	h1 {
    font-size: 8vh; /* Tamanho relativo à altura da tela */
	}
	
	.tempo {
    font-size: 25vh; /* Tamanho relativo à altura da tela */
	}
	
	.landscape-only {
        display: block;
    }
	
    .container-footer {
        max-height: 5vw; /* Altura máxima de 5% da largura da tela */
        padding: 5vh 0; /* Reduz o padding para melhor ajuste */
    }

    .container-footer img {
        max-width: 20vw; /* Reduz a largura da imagem no modo horizontal */
    }
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 4vh; /* Ajuste para telas menores */
    }
    .tempo {
        font-size: 6vh; /* Ajuste para telas menores */
    }sb
    .container {
        padding: 3vh; /* Ajuste para telas menores */
    }
}