body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f4ea;
}

header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 4em 0 4em;
}

header * {
    position: relative;
}

#header-col1 {
    grid-column: 1;
    text-align: start;
    align-content: center;
}

#header-col2 {
    grid-column: 2;
    text-align: center;
    align-content: center;
}

#header-col3 {
    grid-column: 3;
    text-align: end;
    align-content: center;
}


header>h1 {
    margin: 0;
    padding-top:    1vh;
    padding-bottom: 1vh;
    color: white;
    font-size: 2.25em;
    font-weight: 1000;
    text-shadow: 3px 3px 2px rgba(0,0,0,0.7);
}

header>h1>span {
    font-size: 0.25em;
    vertical-align: 75%; /* doesnt look quite right with middle */
}

hr.corner_hr {
  margin: 0;
  color: #B57744 /* Wood Colour 2 --- it doesn't get a reference from wood.css :(*/
}


/* Navigation */


nav {
    color: white;
}

nav ul {
    list-style-type: none;
    padding-left: 0;
}

.wood a, .darkwood a {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    font-weight: bold;
    color: var(--wlc)
}

.wood a:visited, .darkwood a:visited {
    color: var(--wlcv);
}

.wood a:active, .darkwood a:active {
    color: revert;
}


/* the sideways list of links on the top */
nav>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

    margin-top: 0;
}

/* The elements of the navbar, containing the text and the handle */
nav>ul>li {
    display: grid;
    grid-template-rows: 1fr 1fr;

    text-align: center;

    border: 2px solid #b57744;
    border-top: none;

    margin-top: 0px;

    position:relative;
}

/* The header/link above the handle */
nav>ul>li>h2 {
    font-size: 1.2em;
}

li.locked {
    width: 8em;
}

/* The list of items for drop-down navbar elements. (actually a div) */
.hoverlist {
    display: none;

    position: absolute;
    top: 100%;

    width:100%;

    padding: 0;
}

.hoverlist>ul>li {
    position: relative; /* fixes z-fighting nonsense */

    text-align: start;
    margin-top: 0.75em;
    padding: 0.25em;

}

/* the doorhandle should be centered */
.hoverlist img {
    display: block;
    margin: auto;
}

/* undisplay the closed handle when the drawer is open */
nav li.hoverable:hover>img {
    opacity: 0; /* to avoid recomputing shit */
}

nav>ul>li:hover>.hoverlist {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 3;
}

img.doorhandle {
    width: 8em;
}

main {
    position:relative;
}
