@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

#navtoggle {
    display: none;
}

#navtoggle ~ header {
	display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 1em;
    z-index: 10;
}
#navtoggle:not(:checked) ~ header {
    position: fixed;
}

#navtoggle ~ header > label[for="navtoggle"] {
	width: 2em;
    color: white;
    z-index: 10;
}
#navtoggle ~ header > label[for="navtoggle"] g {
    stroke: currentColor;
    stroke-width: 8;
    stroke-linecap: round;
}
#navtoggle:checked ~ header > label[for="navtoggle"] {
    position: relative;
	color: var(--menu-color);
}
#navtoggle:checked ~ header > label[for="navtoggle"] g.hamburger {
	display: none;
}
#navtoggle ~ header > label[for="navtoggle"] g.cross {
	display: none;
}
#navtoggle:checked ~ header > label[for="navtoggle"] g.cross {
	display: initial;
}

#navtoggle ~ header > nav {
	display: none;
}
#navtoggle:checked ~ header > nav {
    position: absolute;
    left: 1.5em;
    top: 3em;
    z-index: 10;
	display: flex;
    flex-direction: column;
    row-gap: 0.5em;
	color: var(--menu-color);
    font-size: 2em;
}

#navtoggle:checked ~ main {
    height: 0;
    overflow: hidden;
}

#navtoggle:checked ~ #overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

#debug {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    padding: 1em;
    background-color: orangered;
}

/*Do not change above*/
:root {
    --accent-color: #006666; /*0,102,102*/
    --paragraph-color: #669999;
    --overlay-color: #006666;
    --menu-color: white;
}

a {
    color: inherit;
}
a:focus {
    outline: none;
}

address, cite {
    font-style: normal;
}

h1, h2, h3, p {
    margin: 0;
    line-height: 1.1em;
}

nav > a {
    text-decoration: none;
}

body {
    margin: 0 auto;
    width: 100%;
    max-width: 1680px;
    font-family: Playfair;
    overflow-y: hidden;
}

img.background {
    position: absolute;
    max-width: inherit;
    width: inherit;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

main {
    position: relative;
    top: 0em;
}

section.herobox {
    color: white;
    background-color: rgba(0, 102, 102, 0.75);
}
section.herobox h2 {
    margin: 0.5em 0;
}
section.herobox p {
    margin: 0.25em 0;
    font-size: 1.25em;
}
section.content p + p {
    margin-top: 0.75em;
}
section.content h2 {
    font-size: 2em;
    margin: 0;
    margin-bottom: 0.5em;
}

section.content em {
    font-size: 0.9em;
    line-height: 0.9em;
}

@media only screen and (max-width: 640px) {

    body {
        overflow-y: auto;
    }

    #navtoggle ~ header > a > img {
        height: 4em;
    }

    section.herobox {
        color: white;
        background-color: rgba(0, 102, 102, 0.75);
        padding: 7em 1em 2em 1.5em;
        font-size: 0.9em;
    }
}

@media only screen and (min-width: 641px) {

    #navtoggle ~ header {
        font-size: 1.75em;
        background-color: rgba(0, 102, 102, 0.5);
        max-width: inherit;
    }
   
    #navtoggle ~ header > label[for="navtoggle"] {
        display: none;
    }

    #navtoggle ~ header > nav {
        display: flex;
        column-gap: 1em;
    }

    #navtoggle ~ header {
        padding: 0.25em 2em 0 3em;
    }

    #navtoggle ~ header > nav a {
        color: white;
    }

    #navtoggle ~ header > a > img {
        height: 5em;
    }

    section.herobox {
        position: absolute;
        padding: 1.5em;
        max-width: 75%;
        top: 10em;
        left: 4em;
        font-size: 1.75em;
    }
    section.herobox p {
        margin: 0.25em 0;
    }

    section.content h2 {
        font-size: 1.25em;
    }
    section.content p {
        font-size: 0.8em;
    }
}

