/* Reset básico de margens e preenchimentos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff; /* Fundo branco */
    color: #000000; /* Texto preto */
    font-family: 'Asap Condensed', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa 100% da altura da tela */
    justify-content: space-between;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.animation-container {
    width: 100%;
    max-width: 250px; /* Limita o tamanho máximo do Tetris */
    margin-bottom: 30px;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 5px solid #10182F; /* Base azul escuro para os blocos caírem */
    background-color: #fafafa;
    border-radius: 4px 4px 0 0;
}

h1 {
    font-weight: 700;
    /* Tamanho de fonte responsivo: se adapta ao tamanho da tela */
    font-size: clamp(1.8rem, 5vw, 3rem); 
}

/* Animação das reticências piscando alternadamente */
.dots .dot {
    display: inline-block;
    animation: bounce-blink 1.5s infinite;
}

.dots .dot:nth-child(1) { animation-delay: 0s; }
.dots .dot:nth-child(2) { animation-delay: 0.3s; }
.dots .dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes bounce-blink {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* Rodapé utilizando as cores extras como objetos da página */
footer {
    font-weight: 400;
    text-align: center;
    padding: 20px;
    width: 100%;
    background-color: #10182F; /* Fundo Azul Escuro */
    color: #ffffff; /* Texto branco no rodapé para dar contraste */
    border-top: 5px solid #F1B42F; /* Linha de destaque Amarela */
    font-size: 1rem;
}