*,
::before,
::after {
    box-sizing: border-box;
}

:root {
    --main-max-width: 1280px;
    --main-padding-x: 32px;
    --main-padding-y: 24px;

    --color-primary: var(--color-orange-500);
    --color-primary-hover: var(--color-orange-600); /*TODO*/

    --border-color: var(--color-neutral-300);

    --input-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px 0px;
    --container-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

@media (max-width: 768px) {
    :root {
        --main-padding-x: 24px;
        --main-padding-y: 16px;
    }
}

html {
    /*font-family: "Inter", sans-serif;*/
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    /*scroll-behavior: smooth;*/
    line-height: 1.2; /* 1. Correct the line height in all browsers. */
    -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
    tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

h1 {
    font-family: "Crimson Text", serif;
    font-size: 64px;
    font-weight: 500;
    margin-top: 24px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 56px;
    }
}

h2 {
    font-family: "Crimson Text", serif;
    font-size: 32px;
    font-weight: 600;
    margin: 16px 0 8px 0;
}

h3 {
    font-family: "Crimson Text", serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

h4 {
    font-family: "Crimson Text", serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

p {
    margin: 8px 0 16px 0;
}

ul {
    margin: 8px 0 12px 0;
}

li {
    margin-bottom: 4px;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    margin: 8px 0 16px 0;
}

th, td {
    padding: 8px;
}

button {
    border: none;
}

.main {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--main-max-width);
    padding: calc(var(--main-padding-y) + 60px) var(--main-padding-x);
    flex: 1 0 auto;
}


/* Safe display of e-mail addresses to avoid scraping */
.e-mail:before {
    content: attr(data-website) "\0040" attr(data-user);
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* ========================== */
/* Loading animation          */
/* ========================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
    gap: 12px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: var(--color-neutral-600);
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================== */
/* Index styles               */
/* ========================== */

.text-center {
    text-align: center;
}

.premiere-header {
    margin-bottom: 120px;
    margin-top: 64px;
}

.premiere-title {
    margin-bottom: -24px;
    margin-top: 0;
    font-size: 150px;
    font-weight: 400;
    letter-spacing: -8px;
}

.premiere-title-version {
    font-size: 50px;
    font-family: 'DM Mono', monospace;
    letter-spacing: -10px;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
}

.premiere-subtitle {
    font-size: 18px;
    color: var(--color-neutral-600);
}

.premiere-subtitle-acel {
    color: var(--color-primary);
}

.premiere-subtitle-acel:hover {
    color: var(--color-primary-hover);
}

@media (max-width: 768px) {
    .premiere-header {
        margin-bottom: 72px;
        margin-top: 48px;
        text-align: center;
    }

    .premiere-title {
        font-size: 64px;
        letter-spacing: -2px;
        margin-bottom: -12px;
        margin-top: -2px;
    }

    .premiere-title-version {
        font-size: 32px;
        letter-spacing: -5px;
        margin-right: 8px;
    }

    .premiere-subtitle {
        font-size: 14px;
    }

    .premiere-subtitle-acel {
        margin-top: 1px;
        display: block;
    }
}

/* ========================== */
/* Alerts                     */
/* ========================== */

.alert {
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid;
    width: 100%;
    text-align: left;
}

.alert-success {
    background-color: var(--color-emerald-100);
    border-color: var(--color-emerald-200);
    color: var(--color-emerald-800);
}

.alert-warning {
    background-color: var(--color-orange-100);
    border-color: var(--color-orange-200);
    color: var(--color-orange-800);
}

.alert-error {
    background-color: var(--color-rose-100);
    border-color: var(--color-rose-200);
    color: var(--color-rose-800);
}

/* ========================== */
/* Banners                    */
/* ========================== */

.banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 128px;
    align-items: center;
}

.banner {
    display: inline-flex;
    flex-direction: row;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
    box-shadow: var(--input-shadow);
    align-items: center;
}

.banner-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px;
}

.banner-title {
    font-weight: 500;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.banner-content {
    font-weight: 400;
    margin: 0 12px 0 8px;
    color: var(--color-neutral-800);
}

.banner-close {
    display: flex;
    padding: 4px;
    color: var(--color-neutral-500);
    border-radius: 16px;
    cursor: pointer;
    margin-right: 4px;
}

.banner-close:hover {
    background-color: var(--color-neutral-100);
    color: var(--color-neutral-700);
}

@media (max-width: 768px) {
    .banners {
        margin: 0;
        width: 100%;
    }

    .banner-left {
        flex-direction: column;
        align-items: start;
        padding: 6px;
        box-shadow: none;
    }

    .banner-title {
        padding: 3px 8px;
    }

    .banner-content {
        margin: 8px 4px 0px 4px;
        color: var(--color-neutral-700);
    }
}

/* ========================== */
/* Form styles                */
/* ========================== */

.form-container {
    margin: 64px auto 0px auto;
    max-width: 560px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--container-shadow);
    display: flex;
    flex-direction: column;
    background-color: white;

    .alert {
        margin-top: 8px;
    }

    .altcha {
        background-color: var(--color-neutral-100);
    }

    .altcha-label {
        margin-bottom: 1px;
    }
}

.form-container-narrow {
    max-width: 420px;
    text-align: center;

    .form-submit-btn {
        width: 100%;
    }
}

.form-title {
    font-size: 32px;
    margin-bottom: 6px;
}

.form-subtitle {
    color: var(--color-neutral-500);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-top: 24px;

    label {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
        color: var(--color-neutral-900);
        text-align: left;
    }

    select, input {
        padding: 12px 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: var(--input-shadow);
    }

    .form-checkbox-widget {
        display: inline-flex;
        flex-direction: row;
        gap: 6px;

        label {
            margin: 0;
        }

        input[type=checkbox] {
            width: 16px;
            height: 16px;
            box-shadow: none;
        }
    }
}

.form-errors {
    color: var(--color-red-700);
    font-weight: 400;
    margin-bottom: 4px;
    margin-top: 0;
    padding-left: 24px;
    text-align: left;
}

input[type=file] {
    padding: 0 16px 0 0;
    width: 100%;
}

input[type=file]::file-selector-button {
    background-color: var(--color-neutral-800);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin-right: 16px;
    border: none;
}

.form-row-actions {
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin-top: 32px;
}

.form-submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.form-submit-btn:hover {
    background-color: var(--color-primary-hover);
}

/* ========================== */
/* Suggestion Form styles     */
/* ========================== */

/* TODO use this for the other submit buttons*/
.form-submit-btn.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
}
.exam-suggestion-info-box {
    background-color: var(--color-neutral-50);
    border: 1px solid var(--color-neutral-200);
    border-radius: 8px;
    padding: 16px 24px;
    margin-top: 12px;
    color: var(--color-neutral-800);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .info-row {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 8px;

        .info-label {
            font-weight: 500;
            color: var(--color-neutral-950);
        }

        .info-value {
            font-weight: 300;
            font-family: 'DM Mono', monospace;
        }
    }
}

/* ========================== */
/* Sections styles            */
/* ========================== */

.sections-container {
    display: flex;
    flex: 1 1 0px;
}

.sections-system-title {
    font-size: 32px;
    margin: 0;
}

.sections-system-subtitle {
    color: var(--color-neutral-600);
}

.sections-esc {
    border-right: 1px solid var(--border-color);
    width: 100%;
    text-align: left;
    padding-right:32px;
}

.sections-esg {
    width: 100%;
    text-align: right;
    padding-left: 32px;
}

.section-list {
    margin-top: 24px;
    border-collapse: collapse;
}

.section-item {
    border-top: 1px solid var(--border-color);
    border-collapse: collapse;
    padding: 10px 0;
    cursor: pointer;
    display: inline-flex;
    width: 100%;
    text-decoration: none;
}

.section-item:last-of-type {
    border-bottom: 1px solid var(--border-color);
}

.section-item-mirrored {
    flex-direction: row-reverse;
}

.section-item-shortcode-esc {
    display: inline-block;
    color: black;
    font-weight: 500;
    width: calc(2ch + 2px);
    min-width: calc(2ch + 2px);
    text-align: left;
    margin: 0 16px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 1px;
}

.section-item-shortcode-esg {
    color: black;
    display: inline-block;
    font-weight: 500;
    width: calc(4ch + 4px);
    min-width: calc(4ch + 4px);
    text-align: right;
    margin: 0 16px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 1px;
}

.section-item-name {
    color: var(--color-neutral-600);
    font-weight: 300;
}

.section-item:hover {
    background-color: var(--color-neutral-50);

    .section-item-name {
        color: var(--color-primary-hover);
    }

    .section-item-shortcode-esc {
        color: var(--color-primary-hover);
    }

    .section-item-shortcode-esg {
        color: var(--color-primary-hover);
    }
}

@media (max-width: 768px) {
    .sections-container {
        flex-direction: column;
    }

    .section-item-mirrored {
        flex-direction: row;
    }

    .sections-esc {
        border-right: none;
        padding-right: 0;
        margin-bottom: 32px;
    }

    .sections-esg {
        text-align: left;
        padding-left: 0;
    }

    .section-item-shortcode-esg {
        text-align: left;
    }

    .section-item {
        padding: 12px 0;
    }
}

/* ========================== */
/* Subject styles             */
/* ========================== */

.subjects-container {
    margin: 32px 128px 0px 128px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--container-shadow);
}

.subjects-container-header {
    margin-left: 16px;
}

.subjects-container-title {
    font-size: 36px;
    margin: 0;
}

.subjects-container-subtitle {
    color: var(--color-neutral-600);
}

.subjects-list {
    margin-top: 24px;
    border-collapse: collapse;
}

.subject-not-found {
    padding: 8px 16px 8px 16px;
}

.subject-item {
    border-top: 1px solid var(--border-color);
    border-collapse: collapse;
    padding: 10px 16px 10px 16px;
    cursor: pointer;
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
}

.subject-item:last-of-type {
    border-bottom: 1px solid var(--border-color);
}

.subject-item:hover {
    background-color: var(--color-neutral-50);
    /*background-color: color-mix(in oklab,var(--color-orange-500)2.5%,transparent);*/

    .subject-item-name {
        color: var(--color-primary-hover);
    }

    .subject-item-short-name {
        color: var(--color-primary-hover);
    }
}

.subject-item-name {
    color: black;
    font-weight: 300;
}

.subject-item-short-name {
    color: var(--color-neutral-600);
    display: inline-block;
    font-weight: 300;
    font-family: 'DM Mono', monospace;
}

@media (max-width: 768px) {
    .subjects-container {
        margin: 16px 0px 0px 0px;
        padding: 16px;
    }

    .subject-item {
        padding: 12px 16px 12px 16px;
    }
}

/* ========================== */
/* Exam styles                */
/* ========================== */

.exams-page {
    margin: 32px 128px 0px 128px;
}

.exams-container {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--container-shadow);
}

.exams-container-header {
    margin-left: 16px;
}

.exams-container-title {
    font-size: 32px;
    margin: 0;
}

.exams-container-subtitle {
    color: var(--color-neutral-600);
}

.exams-list {
    margin-top: 24px;
    border-collapse: collapse;
}

.exam-not-found {
    padding: 8px 16px 8px 16px;
}

.exam-item {
    border-top: 1px solid var(--border-color);
    border-collapse: collapse;
    cursor: pointer;
    display: block;
    width: 100%;
}

.exam-item:last-of-type {
    border-bottom: 1px solid var(--border-color);
}

.exam-item-header {
    padding: 8px 16px 8px 16px;
    display: flex;
    height: 40px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.exam-item-header:hover {
    background-color: var(--color-neutral-50);

    .exam-item-name {
        color: var(--color-primary-hover);
    }
}

.exam-item-name {
    color: black;
    font-weight: 300;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.exam-item-name-year {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
}

.exam-item-label {
    border-radius: 80px;
    display: inline-block;
    background-color: var(--color-neutral-200);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    text-decoration: none;
}

.exam-item-label-lg {
    font-size: 14px;
    padding: 6px 12px;
}

.exam-item-label-green {
    background-color: var(--color-green-100);
    color: var(--color-green-700);
}

.exam-item-label-blue {
    background-color: var(--color-sky-100);
    color: var(--color-sky-700);
}

.exam-item-label-red {
    background-color: var(--color-red-100);
    color:  var(--color-red-700);
}

.exam-item-label-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-neutral-700);
    font-weight: 500;
}

.exam-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    cursor: default;
}

.exam-item.expanded .exam-item-content {
    max-height: 200px;
    padding-bottom: 8px;
}

.exam-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.exam-item-detail {
    display: flex;
    justify-content: start;
    align-items: center;
    font-size: 15px;
    gap: 8px;
    padding: 4px 12px;
    text-decoration: none;
    color: var(--color-neutral-800);
    font-weight: 300;

    .size-5 {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.exam-item-detail:hover {
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-950);

    .exam-item-detail-text {
        text-decoration: underline;
    }
}

.exams-copyright-info {
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-neutral-400);
    text-align: center;
}

@media (max-width: 768px) {
    .exams-page {
        margin: 16px 0px 0px 0px;
    }

    .exams-container {
        padding: 16px;
    }

    .exam-item-header {
        padding: 12px 16px 12px 16px;
    }

    .exam-item-detail {
        font-size: 14px;
    }

    .exam-item-label {
        font-size: 12px;
        font-weight: 600;
        padding: 4px 8px;
    }

    .exam-item-label-lg {
        font-size: 12px;
        padding: 4px 8px;
    }

    .exam-item-detail {
        padding: 8px 8px;
    }
}

/* ========================== */
/* Navbar styles              */
/* ========================== */

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    padding: 0 var(--main-padding-x);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar-scrolled {
    box-shadow: rgba(0, 0, 0, 0.02) 0px 6px 10px -2px, rgba(0, 0, 0, 0.02) 0px 4px 6px -4px;
    border-bottom: 1px solid var(--color-neutral-200);
    transition: border-bottom-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--main-max-width);
    margin: 0 auto 0 auto;
    gap: 32px;
    padding: 8px var(--main-padding-x);
}

.navbar-brand {
    font-family: "Crimson Text", serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: opacity 0.2s ease;
    color: black;
}

/*.navbar-brand-hidden {
    opacity: 0;
    pointer-events: none;
}*/

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 16px;
    /*backdrop-filter: blur(7px);
    background-color: rgba(255, 255, 255, 0.6);*/
    padding: 12px 0px;
    margin: 0;
    justify-content: space-between;

    li {
        margin: 0;
    }

    li:has(> .acel-btn) {
        display: none;
    }
}

.nav-link {
    color: var(--color-neutral-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 3px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--color-neutral-800);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-filler {
    flex-grow: 1;
}

.navbar-socials {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-right: 36px;

    a {
        color: var(--color-neutral-700);
        text-decoration: none;
        transition: color 0.2s;
        display: flex;
    }

    a:hover {
        color: var(--color-primary)
    }
}

.acel-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.acel-btn:hover {
    background-color: var(--color-primary-hover);
}

.acel-btn.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* Mobile responsiveness */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-neutral-600);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .acel-btn {
        display: none;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 24px;
        /*box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.2);*/
        box-shadow: rgba(0, 0, 0, 0.07) 0px 10px 15px -3px, rgba(0, 0, 0, 0.07) 0px 4px 6px -4px;
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
        /*margin: 0 var(--main-padding-x);*/
        background-color: white;

        .acel-btn {
            margin-top: 4px;
            display: inline-flex;
            padding: 8px 16px;
        }

        li:has(> .acel-btn) {
            display: inline-flex;
        }
    }

    .nav-link {
        color: var(--color-neutral-800);
        font-size: 16px;
    }

    .nav-link:hover {
        color: var(--color-neutral-950);
    }

    .navbar-nav.active {
        display: flex;
    }

    .learn-more-btn {
        display: none;
    }
}

/* ========================== */
/* Footer styles              */
/* ========================== */

.footer {
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    max-width: var(--main-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 var(--main-padding-x);
}

.footer-top {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
    border-bottom: 1px solid var(--border-color);
}

.footer-bottom {
    width: 100%;
    padding: 20px 0 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-left {
    flex-grow: 1;
    display: flex;
    flex-direction: column;

    .footer-acel-logo {
        height: 60px;
        width: auto;
        margin-bottom: 12px;
        opacity: 90%;
    }

    span {
        font-size: 16px;
        font-weight: 500;
        color: var(--color-neutral-950);
    }

    /*.footer-social-icons a {
        color: black;
        margin-right: 15px;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.2s;
    }

    .footer-social-icons a:hover {
        color: var(--color-primary);
    }*/
}

.footer-right {
    flex-grow: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;

    span {
        margin-bottom: 4px;
        color: var(--color-neutral-700);
    }
}

.footer-copyright {
    color: var(--color-neutral-700);
    font-weight: 450;
}

.footer-nav {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 12px 32px;
    padding: 0;
    align-items: center;
    margin: 0;

    li {
        margin: 0;
    }
}

.footer-nav-link {
    color: var(--color-neutral-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 3px 0;
    position: relative;
}

.footer-nav-link:hover {
    color: var(--color-neutral-800);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.footer-nav-link:hover::after {
    background-color: var(--color-primary);
}

.footer-sponsor-logo {
    /*--logo-black-url: "";
    background-image: var(--logo-black-url);
    background-size: cover;*/
    height: 42px;
    width: auto;
    opacity: 90%;
}

.footer-sponsor-logo:hover {
    /*--logo-color-url: "";
    background-image: var(--logo-color-url);*/
    opacity: 75%;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        padding: 32px var(--main-padding-x);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px var(--main-padding-x);
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-nav {
        gap: 8px 16px;
    }

    .footer-nav-link {
        text-decoration: underline;
    }

}

/* ========================== */
/* Information Page           */
/* ========================== */

.info-container {
    display: flex;
    flex-direction: row;
    gap: 24px;

    a {
        color: var(--color-slate-600);
    }

    a:hover {
        color: var(--color-slate-800);
    }
}

@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
    }
}

.info-item {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    flex-basis: 0;
    gap: 8px;
    padding: 24px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--input-shadow);

    h2 {
        margin-top: 0;
    }
}

.statistics-item-label {
    font-size: 16px;
    color: var(--color-neutral-500);
}

.statistics-item-value {
    font-size: 30px;
    font-weight: 600;
    color: var(--color-neutral-950);
}

.statistics-item-description {
    font-size: 14px;
    color: var(--color-neutral-600);
    margin-top: 16px;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: row;
    gap: 8px;

    aside {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    main {
        padding-bottom: 16px;
    }

    .timeline-item-dot {
        --size: .5rem;
        width: var(--size);
        height: var(--size);
        margin: calc((1.2rem - var(--size))/2) 4px;
        border-radius: 50%;
        background-color: var(--color-neutral-800);
        flex-grow: 0;
    }

    .timeline-item-line {
        flex-grow: 1;
        margin: 2px 0;
        width: 1.5px;
        background-color: var(--color-neutral-300);
    }

    .timeline-item-year {
        font-weight: 500;
        font-size: 18px;
        color: var(--color-neutral-800);
        min-width: 40px;
        text-align: right;
    }

    .timeline-item-title {
        font-weight: 600;
        font-size: 18px;
        color: var(--color-neutral-800);
    }

    .timeline-item-content {
        color: var(--color-neutral-500);
        margin-right: 8px;
    }
}


/* ========================== */
/* Error Pages                */
/* ========================== */

.error-page {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

    .error-aceli {
        width: 128px;
        height: auto;
        color: var(--color-primary);
        margin-top: 64px;
    }

    .error-code {
        font-family: 'DM Mono', monospace;
        font-size: 200px;
        font-weight: 500;
        margin-top: 64px;
        margin-bottom: 0;
    }

    .error-message {
        font-size: 22px;
        font-weight: 500;
        color: var(--color-neutral-700);
    }

    .error-info {
        font-size: 18px;
        color: var(--color-neutral-600);
        margin-top: 16px;
    }
}

/* ========================== */
/* modern-normalize.css       */
/* ========================== */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/*
Tabular data
============
*/

/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
    border-color: currentcolor;
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
    padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
    vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}
