:root {
    --main-color: rgb(255, 249, 242);
    --darker-color: rgb(240, 238, 227);
    --text-color: rgb(32, 27, 27);
    --navbar-font-size: 133%;
    --navbar-padding: 20px;
}

@media (min-resolution: 1dppx) {
    html {
        font-size: 20px;
    }
}

@media (min-resolution: 1.25dppx) {
    html {
        font-size: 16px;
    }
}

@media (min-resolution: 1.5dppx) {
    html {
        font-size: 13.3333px;
    }
}

@media (min-resolution: 2dppx) {
    html {
        font-size: 10px;
    }
}


body {
    background-color: var(--main-color);
    background-size: repeat;
    margin: auto;
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    color: var(--text-color);
}

.navbar {
    position: fixed;
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: var(--navbar-padding);
    background-color: rgb(from var(--darker-color) r g b / 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 3;
}

.navbar>a {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--navbar-font-size);
}

/* Rules to make the hamburger-menu if the navbar */

.hamburger {
    display: none;
    width: 60px;
    height: 60px;
    position: fixed;
    background-color: var(--background-color);
    z-index: 300;
}

/* make the first section have a padding of 20px */
.navbar ~ section:first-of-type {
    --padding-top-var: calc(var(--navbar-padding) * 2 + 26px + 10px);
    padding-top: var(--padding-top-var);
    height: calc(100vh - var(--padding-top-var));
}


/* Media query to make the hamburger-menu appear when the screen is smaller than 800px */

@media (max-width: 800px) {
    .navbar ~ section:first-of-type {
        padding-top: 0;
        height: 100vh;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        display: none;
        padding-top: 69px;
        max-width: 10em;
    }

    .navbar>a {
        margin: 10px;
    }

    .navbar.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
        align-content: center;
        margin: 3px;
        padding: 3px;
        border: 1px solid var(--text-color);
    }

    .hamburger>span {
        width: 60px;
        height: 10px;
        background-color: var(--text-color);
        display: block;
        border-radius: 5px;
    }
}

section {
    margin: auto;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover {
    max-width: initial;
}

.cover>div {
    max-width: 900px;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2 {
    font-size: 266%;
    margin: 0;
}

p {
    font-size: var(--navbar-font-size);
    margin: 0;
}

.title>h1 {
    justify-content: center;
    font-size: calc(4.5vw + 186%);
    font-weight: 600;
    text-align: center;
    top: 40%;
    z-index: 2;
    margin: 0;
}

.title>h2 {
    align-self: flex-start;
    margin-left: 1em;
    text-align: center;
    font-size: calc(1vw + var(--navbar-font-size));
    font-weight: 500;
}

.title>h3 {
    font-size: calc(.3vw + 66.5%);
    text-transform: uppercase;
    font-weight: 500;
    text-wrap: auto;
    text-align: center;
    max-width: 60vw;
}

.logo {
    background-image: url("images/logo3.webp");
    background-size: 85vmin;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    mix-blend-mode: darken;
    margin: auto;
    display: flex;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 700px;
    top: 0;
    z-index: 1;
}

div.info {
    display: contents;
}

.navbar + div.info > section:first-of-type {
    padding-top: calc(var(--navbar-padding) * 2 + 26px + 10px);
}

div.info > section {
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
}






.shorttext h2 {
    font-style: italic;
    margin-bottom: 1ex;
}

.shorttext {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    justify-content: center;
    padding-top: calc(26.7px + 40px);
    padding-left: 10px;
    padding-right: 10px;
    min-height: calc(100vh - 40px - 26.7px);
    mix-blend-mode: darken;
}

.shorttext > .content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.shorttext > .content p {
    text-align: center;
}

footer {
    height: 0px;
    width: 100%;
    position: relative;
}

footer > div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    mix-blend-mode: darken;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

footer p {
    font-size: 100%;
}
