html,
body {
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    padding: 1em;
}

body {
    margin: 0 auto;
    max-width: 960px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15pt;
    padding-bottom: 4em;
}

img {
    max-width: 100%;
}

a {
    color: darkred;
}

.ct {
    text-align: center;
}

#toc {
    padding-bottom: 1em;
}

nav,
nav div {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
}

nav a {
    font-size: 90%;
    padding: 0.5em 1em;
    background-color: lightgrey;
    border-radius: 3px;
}

h2 {
    font-size: 130%;
    margin-top: 1em;
    padding: 1em 0.5em 0 1em;
    margin-bottom: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    background-color: white;
    background-image: url(./images/palmtree.gif);
    background-repeat: no-repeat;
    background-position: 0 0.9em;
}

h2:before {
    content: "";
    display: block;
    position: absolute;
    width: 960px;
    height: 2px;
    top: 1.6em;
    background-color: black;
    z-index: -1;
}

h3 {
    padding-top: 1em;
}

p {
    margin-top: 0;
}

p.important {
    border: 2px solid red;
    padding: 1em;
    font-weight: bold;
}

ul li {
    margin: 2em 0;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1em;
}

.steps>div {
    display: flex;
    gap: 2em;
    align-items: center;
}

.steps img {
    vertical-align: middle;
    max-width: 50%;
}

.steps hr {
    width: 90%;
}

#backtotoc {
    position: fixed;
    bottom: 0;
    right: 0.5em;
    color: white;
    font-weight: bold;
    background-color: black;
    display: block;
    padding: 1em;
    text-decoration: none;
    border-radius: 5px 5px 0 0;
}

/* map */

#map {
    position: relative;
    aspect-ratio: 1.452;
}

#map img {
    position: absolute;
    z-index: -1;
    opacity: 0.3;
}

#areas {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 100%;
    padding: 1%;
    gap: 1%;
}

#areas>div {
    box-shadow: 0 0 0 3px inset rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#areas>div:nth-child(1) {
    width: 16%;
    height: 34%;
}

#areas>div:nth-child(2) {
    width: 14%;
    height: 42%;
}

#areas>div:nth-child(3) {
    width: 18%;
    height: 21%;
}

#areas>div:nth-child(4) {
    width: 57%;
    height: 83%;
}

#areas>div:nth-child(5) {
    width: 57%;
    height: 15%;
}

#areas>div:nth-child(6) {
    width: 23%;
    height: 99%;
}

#map table {
    width: 100%;
    height: 66%;
}

@media (min-width: 769px) {
    .title img {
        max-width: 70%;
    }

    .mobile {
        display: none;
    }
}

@media (max-width: 768px) {

    ul {
        padding-left: 1em;
    }

    .steps>div {
        flex-direction: column;
        gap: 0;
    }

    .steps img {
        display: block;
        margin: 0 auto;
        max-width: fit-content;
        width: 100%;
    }

    #map {
        font-size: 70%;
    }

    .desktop {
        display: none;
    }
}