html {
    min-height: 100%;
    background-color: var(--backgroud);
    color: var(--font_colour);
    font-family: Tahoma, sans-serif;
}
body {
    margin: 0;
    background-color: var(--backgroud);
    color: var(--font_colour);
    font-family: Tahoma, sans-serif;
    width: 100%;
/*    min-height: 100vh;*/
    min-height: 100%;
    display: grid;
    grid-template-columns: 250px auto;
    grid-template-rows: auto;
    grid-template-areas:
        "nav main"
        ". footer"
}

header {
    display: none;
    flex-wrap: wrap;
    height: 100px;
    justify-content: space-between;
    border-bottom: 1px solid var(--font_colour);
    background-color: var(--backgroud);
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 2px;
    grid-area: header;
}

nav {
    grid-area: nav;
    position: fixed;
    border-right: 1px solid var(--font_colour);
    height: 100%;
    width: 250px;
}

main {
    padding: 25px;
    grid-area: main;
    max-width: 1000px;
    min-height: 85vh;
}

footer {
    display: block;
    padding: 25px 25px 0 25px;
    border-top: 1px solid var(--font_colour);
    font-size: 0.8em;
    /*float: right;*/
    grid-area: footer;
/*    margin-top: calc-size(auto, size + 25px);*/
/*    margin-top: auto;*/
}

header div {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

menu {
    margin: 0;
    padding: 0;
}

nav li {
    width: calc(100% - 10px);
    margin: 5px;
}

nav li a {
    padding: 3px;
    line-height: initial;
    height: initial;
    margin: 3px;
/*    border: 2mm double rgba(211, 220, 50, .6);
    border-radius: 20px;*/
}

li {
    display: inline-block;
}

li a {
    display: block;
    padding: 0 10px 0 10px;
    height: 96px;
    text-align: center;
    line-height: 96px;
    color: var(--font_colour);
    text-decoration: none;
}

img {
    display: block;
    max-width: min(100%, 1000px);
/*    object-fit: cover;
    object-position: 50% 50%;*/
    margin-bottom: 5px;
}

pre {
    font-family: Tahoma, sans-serif;
    max-width: min(100%, 1000px);
    white-space: pre-wrap;
    word-wrap: break-word;
}

summary:hover {
    text-decoration: underline;
    cursor: pointer;
    color: var(--font_colour);
}

label img {
    height: 96px;
    width: 96px;
}

details summary {
    font-size: 1.5rem;
}

.smol-screen { 
    display: none;
}

.top-nav {
    display: none !important;
}

.content {
    margin: 0 64px 0 64px;
}

.center {
    text-align: center;
    padding: 0 32px 0 32px;
}

.link {
    display: flex;
    text-align: center;
    margin: 5px 0 5px 0;
    text-decoration: none;
    color: var(--font_colour);
}

.link:hover {
    text-decoration: underline;
    cursor: pointer;
}

.logo_container {
    height: 96px;
}

.logo_img {
    width: auto;
    height: 96px;
}

.img_container {
    position: relative;
    text-align: center;
}

.flex_container {
    display: flex;
    flex-wrap: wrap;
}

.img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 50% 50%;
}

.img_centered {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #444;
    line-height: 40px;
}

.show_menu {
    text-align: center;
    display: none;
}

.label_img {
    width: 90px;
    height: 90px;
}

.footer_container {
    display: flex;
    flex-flow: row wrap;
}

.footer_item {
    overflow:hidden;
    width: 280px;
    height: 380px;
    margin: 5px;
}

.footer_item img {
    margin: 0;
    width: auto;
    max-width: 280px;
    max-height: 480px;
}

.underline:hover {
    text-decoration: underline;
    cursor: pointer;
    color: var(--font_colour);
}

.hypen {
   -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

input[type=checkbox] {
    display: none;
}

input[type=checkbox]:checked ~ #menu {
    display: block;
}


@media screen and (max-width: 640px) {
    .smol-screen {
        display: initial;
    }
    header {
        display: flex;
        height: auto;
    }
    footer {
      display: block;
    }
    menu {
        display: none;
        width: 100%;
    }

    li {
        margin-bottom: 1px;
        vertical-align: top;
    }

    menu li, menu a {
        text-align: center;
        width: 100%;
        height: 32px;
        line-height: 32px;
    }

    menu a {
        width: 256px;
        margin: 0 auto 0 auto;
    }

    .link {
        display: flex;
        text-align: center;
        margin: 5px 0 5px 0;
        text-decoration: none;
        color: var(--font_colour);
    }

    .center {
        text-align: initial;
        padding: 0;
    }

    .show_menu {
        display: inline-block;
    }

    menu span {
        display: none;
    }

    nav {
      display: none;
    }

    .top-nav {
      display: initial !important; 
      width: 64px;
      height: 64px;
    }

    main {
      right: 0;
    }

    body {
      margin: 0;
      background-color: var(--backgroud);
      color: var(--font_colour);
      font-family: Tahoma, sans-serif;
      width: 100%;
      display: grid;
      grid-template-columns: 20% 80%;
      grid-template-rows: auto;
      grid-template-areas:
        "header header"
        "main main"
	"footer footer"
    }
    .content {
        margin: 0 16px 0 16px;
    }
    td:nth-child(1) {
        width: 64px;
    }

    tr td:nth-child(1) {
        width: 64px;
    }
}

@media screen and (max-width: 530px) {
    .label_img {
        height: 64px;
        width: 64px;
    }
    .logo_container {
        height: 64px;
    }

    .logo_img {
        width: auto;
        height: 64px;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --backgroud: #fbe1d0;
        --backgroud-two: lightgray;
        --font_colour: #444;
        --accent: #0C7B7C;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --backgroud: #170b02;
        --backgroud-two: #181818;
        --font_colour: #ddd;
        --accent: #0C7B7C;
        --root_colour: #492201;
    }
}
