*,
::after,
::before {
    box-sizing: border-box;
}

html,
body {
    /* Disables pull-to-refresh and overscroll glow effect.
    Still keeps swipe navigations. */
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    padding: 0;
}

a {
    color: #e94e0f;
}

button:hover {
    cursor: pointer;
}

.tippy-box {
    font-family: 'Roboto';
}

nav {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-gap: 1.5rem;
    align-items: center;
    padding: 0 2rem;
    height: 5.9375rem;
    @media (max-width: 35.9994em) {
        grid-gap: 0;
    }
}
.logo {
    display: grid;
    margin-top: -0.625rem;
    margin-right: 1.5rem;
}

img {
    max-width: 100%;
}

.logo img {
    max-height: 3rem;
}

.lang-dropdown {
    display: inline-block;
}

.lang-dropdown-button {
    position: relative;
    display: inline-flex;
    gap: 1.125rem;
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 1.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    cursor: pointer;
    color: #303642;
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    height: 3rem;
}

.lang-dropdown-button:hover,
.lang-dropdown-button:focus,
.lang-dropdown-button.active {
    color: #303642;
    background-color: #7783a00d;
}

.lang-dropdown-button img {
    max-width: 1rem;
    max-height: 1rem;
    transition: transform 0.3s;
    transform: rotate(0deg);
}

.lang-dropdown-button.active img {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 10rem;
    overflow: auto;
    box-shadow: 0 0.375rem 0.75rem #3036422b, 0 0.0625rem 0.5rem #3036421f;
    z-index: 1;
    right: 0;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

.lang-dropdown-content li {
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    color: #555d71;
}

.lang-dropdown-content li:hover {
    cursor: pointer;
    color: #303642;
    background-color: #f9f9f9;
}

.open {
    display: block;
}

.content-container {
    display: flex;
    justify-content: center;
    max-width: 46rem;
    flex-direction: column;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.image-error {
    min-height: 9.25rem;
    text-align: center;
}

.main-text {
    font-family: 'Roboto';
    text-align: center;
}

.main-text-primary {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    margin: 1.5rem 0 0.5rem;
}

.main-text-secondary {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
}

.main-text-secondary .reference-key {
    display: none;
    margin-left: 0.25rem;
    color: #e94e0f;
    text-decoration: underline;
}

.main-text-secondary .reference-key:hover {
    cursor: pointer;
}

.main-text-secondary .reference-key.show {
    display: inline;
}
