:root {
    --title-font: "Playfair Display", serif;
    --body-font: "Comme", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #eeeeee;
    color: #212125;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 700;
    letter-spacing: -0.07em;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    padding: 0 4rem;
}

h2 {
    font-size: 40px;
    padding: 2rem 4rem 0;
}

section {
    max-width: 100vw;
    padding: 1rem 4rem 2rem;
}

.games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.games--live {
    grid-template-columns: repeat(1, 1fr);
}

.games--upcoming {
    grid-template-columns: repeat(3, 1fr);
}

.game img {
    max-width: 100%;
    min-width: 50px;
    border: 1px solid #dadada;
}

.game {
    font-size: clamp(14px, 24px, 70px);
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border: 1px solid #dadada;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    background: white;
}

.teams {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.team {
    display: flex;
}

.team img {
    width: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}


th,
td {
    padding: 12px 15px;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

td.position {
    text-align: center;
}

td.player {
    text-align: center;
}

.titlebar {
    background: black;
    color: white;
    position: fixed;
    width: 100%;
    height: 72px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

nav {
    margin-right: 5vw;
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    gap: 1rem;
}

nav ul li a {
    color: white;
}

main {
    margin-top: 72px;
}
