body {
    display: grid;
    grid-template-rows: 75px calc(100vh - 150px) 75px;
    grid-template-rows: 75px calc(100dvh - 150px) 75px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

@media (max-width: 600px) {
    body {
        grid-template-rows: auto 1fr 75px;
    }
}

.header {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid white;
    gap: 1rem;
}

/* ------------------ */

/* Skip link styles */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 10px;
    padding: 10px;
    background-color: yellow;
    color: black;
    z-index: 1000;
}

/* ------------------ */

/* Title */

.header__site-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
    text-align: left;
}
@media (max-width: 600px) {
    .header__site-title {
        font-size: 18px;
    }
}

.header__site-title-part-2 {
    font-weight: 300;
}

/* ------------------ */

/* Nav toggle button */

#menu-toggle-button {
    width: 60px;
    height: 45px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    background: transparent;
    border: none;
    z-index: 2;
    flex-shrink: 0;
}

#menu-toggle-button span {
    display: block;
    position: absolute;
    height: 9px;
    width: 100%;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}
#menu-toggle-button span:nth-child(1) {
    top: 0px;
}

#menu-toggle-button span:nth-child(2),
#menu-toggle-button span:nth-child(3) {
    top: 18px;
}

#menu-toggle-button span:nth-child(4) {
    top: 36px;
}

#menu-toggle-button.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

#menu-toggle-button.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#menu-toggle-button.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#menu-toggle-button.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50;
}

/* ------------------ */

/* Navigation menu */

.header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    padding: 20px;
    padding-top: 75px;
    background-color: var(--primary-color);
    border-left: 5px solid white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.header__nav.open {
    transform: translateX(0);
}

.header__nav-list {
    list-style: none;
    display: flex;
    flex: 1;
    overflow: auto;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 260px;
}
.header__nav-list li {
    display: block;
    margin: 10px 0;
    text-align: left;
}

.header__nav-link {
    color: white;
    text-decoration: none;
    background-color: transparent;
    border-radius: 5px;
    display: block;
}
.header__nav-link:hover,
.header__nav-link:focus {
    text-decoration: underline;
}

.header__nav-link.active {
    font-weight: bold;
}
.header__nav-language-toggle {
    border-top: 1px solid white;
    padding-top: 1rem;
    margin-top: 1rem;
    border-radius: 0;
}

/* ------------------ */

/* Main content frame */

.main {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow: auto;
    perspective: 1px;
    transform-style: preserve-3d;
}

.content-wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

/* ------------------ */

/* Footer */

.footer {
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 5px solid white;
    flex-wrap: wrap;
    padding: 10px;
    gap: 1rem;
    height: 75px;
}

.footer--space-between {
    justify-content: space-between;
}
.footer--flex-end {
    justify-content: flex-end;
}
.footer__nav-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 5px 15px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
}
.footer__arrow-container {
    height: 40px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer__arrow-container svg {
    height: 100%;
    fill: var(--primary-color);
}

@media (max-width: 600px) {
    .footer__page-name {
        display: none;
    }
}

/* ------------------ */
