:root {
    /* Page background */
    --background: #bde9f2;

    /* Universal text and link colors */
    --color: #2e2311;
    --link: #562607;

    /* Font family (can include fallbacks) */
    --bodyfont: Nunito, sans-serif;

    /* List background colors */
    --color1: #ffd9ed;
    --color2: #f3e9ff;
    --color3: #d9fffe;
    --color4: #edffd9;
    --color5: #FFEBD9;

    /* Borders for each background color */
    --color1border: #ff81c4;
    --color2border: #c795ff;
    --color3border: #8be7e4;
    --color4border: #bbe788;
    --color5border: #e7c19f;

    /* Header background and border */
    --header: #fff3f9;
    --headerborder: #e0b4ca;

    /* Scrollbars */
    /* --scrollbg:#89b48b;
    --scrollcolor:#66432f; */

}

* {
    margin: 0;
    padding: 0;
    scrollbar-color: var(--scrollcolor) var(--scrollbg);
}

body {
    background: var(--background) !important;
    font: 1rem var(--bodyfont);
    /* 1.15rem */
    color: var(--color);
    line-height: 1.5;
}

main {
    columns: 3;
    column-gap: 5px;
    margin: 40px 70px 0 70px;
}

section {
    break-inside: avoid-column;
    height: fit-content;
}

main section:first-child {
    margin-top: 0;
}

img {
    max-width: 100%;
}

/* Body text styles */

main ul {
    list-style-position: outside;
    margin-left: 20px;
    line-height: 1.5;
}

@font-face {
    font-family: Nunito;
    src: url("/assets/fonts/Nunito-VariableFont_wght.ttf");
}

p {
    line-height: 1.5;
    margin: 10px 0 10px 0;
}

a {
    color: var(--link);
}

a:hover,
a:focus {
    text-decoration: none;
}

.mono {
    font-family: monospace;
    background-color: rgb(110, 80, 117);
    color: white;
}

pre {
    background: rgb(110, 80, 117);
    color: white;
    padding: 10px;
    white-space: pre-wrap;
    /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;
    /* Mozilla, since 1999 */
    white-space: -pre-wrap;
    /* Opera 4-6 */
    white-space: -o-pre-wrap;
    /* Opera 7 */
    word-wrap: break-word;
    /* Internet Explorer 5.5+ */
}

/* Main header */

header#top {
    width: 80%;
    max-width: 1000px;
    /* box-shadow: rgba(0, 0, 0, 0.1) -3px 3px 3px;*/
    background: var(--header);
    /* border: 1px solid var(--headerborder); */
    margin: 25px auto;
    /* border-radius: 5px; */
}

header#top h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Header text */

#infocontainer {
    padding: 20px;
    min-height: 5.5em;
}

/* Header icon */

.header-icon {
    margin-right: 20px;
    border-radius: 5px;
    height: 65px;
    width: 65px;
    float: left;
}

/* Menu */

nav {
    margin-top: 10px;
    border-top: 1px solid var(--headerborder);
    font-size: 1rem;
}

nav ul {
    list-style: none;
    display: inline;
}

nav ul li {
    display: inline-block;
    width: 100px;
    text-align: center;
    padding: 6px 0;
    border-left: 1px solid var(--headerborder);
}

nav ul li:first-child {
    border: 0px;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Main content */

/*main {
    margin: 40px 70px 0 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}*/

/* Lists */

/*.row {
    margin: 10px !important;
}*/

section {
    margin: 20px;
    padding: 15px;
    position: relative;
}
 /* 0px 0px 15px 0px */
    /* box-shadow: rgba(0, 0, 0, 0.1) -3px 3px 3px; */
    /* border: 1px solid; */
    /* border-radius: 5px; */

/* List colors */

.color1 {
    background: var(--color1);
    border-color: var(--color1border);

    & .listheader {
        border-color: var(--color1border);
    }

    & .handle {
        color: var(--color1border);
    }
}

.color2 {
    background: var(--color2);
    border-color: var(--color2border);

    & .listheader {
        border-color: var(--color2border);
    }

    & .handle {
        color: var(--color2border);
    }
}

.color3 {
    background: var(--color3);
    border-color: var(--color3border);

    & .listheader {
        border-color: var(--color3border);
    }

    & .handle {
        color: var(--color3border);
    }
}

.color4 {
    background: var(--color4);
    border-color: var(--color4border);

    & .listheader {
        border-color: var(--color4border);
    }

    & .handle {
        color: var(--color4border);
    }
}

.color5 {
    background: var(--color5);
    border-color: var(--color5border);

    & .listheader {
        border-color: var(--color5border);
    }

    & .handle {
        color: var(--color5border);
    }
}

/* List titles */

header.listheader {
    display: flex;
    justify-content: space-between;
    border-bottom: 0.5px solid;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.1em !important;
}

h2 .subtitle {
    font-weight: normal;
}

h2 a {
    text-decoration: none;
    color: var(--color);
}

h2 a:hover {
    text-decoration: underline;
}

/* Drag handle */

.handle {
    font-size: 1rem;
    cursor: grab;
    font-weight: bold;
}

/* List icons */

.listicon {
    float: right;
    margin: 0 0 5px 10px;
    width: 80px;
    height: 80px;
    border-radius: 5px;
}

/* List content */

.listtext {
    overflow: auto;
    max-height: 300px;
    padding: 0px 10px 10px 10px;
}

/* List footers */

.foot {
    font-size: 0.8em;
    padding: 10px;
    text-align: right;
}

.foot p {
    margin: 0;
}

/* Main footer */

footer#bottom {
    background: var(--header);
    /* border: 1px solid var(--headerborder); */
    padding: 5px;
    font-size: 1rem;
    margin: 25px auto;
    max-width: 700px;
    width: 70%;
    text-align: center;
    /* box-shadow: rgba(0, 0, 0, 0.1) -3px 3px 3px;
    border-radius: 5px; */
}

/* Phone stuff */

@media screen and (max-width: 899px) {
    header#top {
        width: calc(100% - 40px);
        margin-top: 20px;
    }

    header#top h1 {
        font-size: 1.4em;
    }

    main {
        display: inline;
        margin: auto;
        width: calc(100% - 40px);
    }

    .listtext {
        height: auto;
        max-height: 250px;
    }

    .handle {
        display: none;
    }

    .foot {
        font-size: 0.85em;
    }

    h2 {
        font-size: 1.2em;
    }

    footer#bottom {
        width: 75%;
    }
}