@import url("https://fonts.googleapis.com/css2?family=Inter&family=Sen:wght@400;700&display=swap");

:root {
    --background_color: #2b6865;
    --foreground_color: #ffffff;
    --heading_color: #fe7e7b;
    --link_color: #fe7e7b;
    --link_hover_color: #000000;

    --title_font: 'Sen', sans-serif;
    --body_font: 'Inter', sans-serif;

    /* Needs to be updated in the media query at the bottom as well. */
    --max_page_width: 64rem;
}

body {
    font-family: var(--body_font);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background_color);
}

main, header, footer {
    max-width: var(--max_page_width);
    width: 100%;
    padding: 0 1rem;
}

header, footer {
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

footer {
    padding-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: var(--title_font);
    margin-bottom: 1rem;
    color: var(--heading_color);
}

a {
    color: var(--link_color);
}

a:hover {
    color: var(--link_hover_color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.2rem;
    color: var(--foreground_color);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    letter-spacing: -0.15rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

article {
    margin: 2rem 0 0 0;
}

.game_contents > video {
    min-width: calc(var(--max_page_width) / 2);
    width: 100%;
    height: auto;
}

.game_image {
    min-width: calc(var(--max_page_width) / 2);
    width: 100%;
}

.game_contents {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
}

.game_article > h3 {
    text-align: center;
}

img {
    width: 100%;
    height: 100%;
}

/*                            This is the same as var(--max_page_width). */
@media screen and (max-width: 64rem) {
    .game_contents {
        flex-direction: column-reverse;
    }

    .game_contents > video {
        min-width: 0;
        max-width: 560px;
    }

    .game_image {
        min-width: 0;
        max-width: 560px;
    }
}
