/* Variables */
:root {
    --border-radius: 5px;
}

/* Light mode colours */

@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #0c546c;
        --color-text: #E0E0E0;
    }
}

/* Dark mode colours */

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0c546c;
        --color-text: #E0E0E0;
    }
}

/* Fix annoying scrollbar jump https://aykevl.nl/2014/09/fix-jumping-scrollbar */
html {
    margin-left: calc(100vw - 100%);
    margin-right: 0;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

/*
section>* {
    width: 100%;
    max-width: calc(1500px + 1rem);
}
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bitter', serif;
}

h1 {
    text-align: center;
}

h3 {
    margin: 0;
}

/* Responsive */
@media (max-width: 1400px) {
    body {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1.1rem;
    }

    a.details-button {
        font-size: 0.75rem;
    }
}