:root {
    --base-font-size: 16px;
}

.match-title {
    font-size: calc(1em + 1vw);
}
.team-name {
    font-size: calc(1.2em + 0.5vw);
}
.team-affiliation {
    font-size: calc(0.9em + 0.3vw);
}
.score {
    font-size: calc(1.1em + 0.7vw);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.match-title {
    background-color: var(--bg-heavy-light);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.scoreboard {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    table-layout: fixed;
    aspect-ratio: 6 / 1;
}

.scoreboard td {
    padding: 15px 20px;
    text-align: center;
}

.team-info {
    width: 30%;
    text-align: left;
}

.team-name, .team-affiliation {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name {
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.team-affiliation {
    color: white;
    margin-top: 5px;
}

.team1 {
    background-color: #0066cc;
}

.team2 {
    background-color: #cc0000;
}

.score {
    width: 14%;
}

@media (max-width: 768px) {
    .team-info {
        width: 40%;
    }
    .score {
        width: 12%;
    }
}
@media (max-width: 480px) {
    .team-info {
        width: 50%;
    }
    .score {
        width: 10%;
    }
}
