@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* Base */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg,#3a0000,#7a0000,#200000);
    background-size: 400% 400%;
    animation: gradient 60s ease infinite;
    color: white;
    flex-direction: column; /* garante que topbar fica acima do container */
    gap: 20px; /* separação entre topbar e container */
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Topbar */
.topbar {
    width: 100%;
    text-align: center;
    font-size: 40px;
}

/* Container (Card + Dots) */
.container {
    display: flex;
    flex-direction: column; /* empilha card e dots verticalmente */
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px; /* separa card das bolinhas */
}

/* Card */
.card {
    background: rgba(0,0,0,0.65);
    width: 1000px;
    max-width: 90vw;
    padding: 60px;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Conteúdo do Card */
.cardContent {
    width: 100%;
    display: flex;
    flex-direction: column; /* garante layout vertical */
    align-items: center;
    gap: 20px; /* espaçamento entre teams, info e hora */
}

/* Teams */
.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.teamName {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Black */
    font-size: 50px;
}

.vs {
    font-size: 30px;
    opacity: 0.7;
}

.teams img {
    height: 90px;
}

/* Info e Hora */
.info {
    font-size: 28px;
    text-align: center;
}

.hora {
    font-size: 36px;
    text-align: center;
}

/* Bolinhas de navegação */
.dots {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.3;
}

.dots .active {
    opacity: 1;
}

/* Animações do card */
.cardContent.slide-out-left { transform: translateX(-100%); opacity: 0; }
.cardContent.slide-out-right { transform: translateX(100%); opacity: 0; }
.cardContent.slide-in-left { transform: translateX(-100%); opacity: 0; animation: slideInLeft 0.6s forwards; }
.cardContent.slide-in-right { transform: translateX(100%); opacity: 0; animation: slideInRight 0.6s forwards; }

@keyframes slideInLeft { to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { to { transform: translateX(0); opacity: 1; } }