:root {
    font-family: monospace;
    font-size: medium;
    
    /* historic rosemary */
    --background_color: rgb(117, 95, 80);
    --text_color: white;
    --border_color: black;
    --main_color: rgb(170, 159, 123);
    --secondary_color: rgb(138, 128, 95);
    --anchor_color: orange;

    color: var(--text_color);
}

body {
    margin: 1rem;
    display: flex;
    justify-content: center;

    background-color: var(--background_color);
    /* background-image: url('img/texture2.png'); */
    /* background-size: 16px; */
}

#main {
    width: max(60%, 320px);
    height: fit-content;
    
    background: var(--main_color);
    background: linear-gradient(180deg, var(--main_color) 0%, var(--secondary_color) 100%);
    border: 1px solid var(--border_color);
}

#titlebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* padding-bottom: 1rem; */

    border-bottom: 1px dashed var(--border_color);
    background-color: rgba(0, 0, 0, 0.1);
}

#title {
    flex-grow: 0.5;
    text-align: center;
}

#title h1 {
    margin: 0px;
}

#title_spacer {
    flex-grow: 3;
}

#titlebuttons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-grow: 10;
}

#mainpage {
    display: flex;
}

#sidebar {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: baseline;
    padding: 1rem;
    gap: 0.5rem;

    border-right: 1px dashed var(--border_color);
    background-color: rgba(0, 0, 0, 0.2);
    /* corner-top-right-shape: bevel;
    corner-bottom-right-shape: bevel;
    border-radius: 0rem 1rem 1rem 0rem; */
}

#content {
    flex-grow: 2;
    padding: 1rem;
}

#themeselectform select {
    border: 1px dashed var(--border_color);
    color: var(--text_color);
    font-family: monospace;
    background-color: var(--background_color);
}

a {
    color: var(--anchor_color);
}

article:nth-child(n + 1) {
    border-bottom: 1px dashed var(--border_color);
}

article:last-child {
    border-bottom: none;
}

article {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

article h1 {
    margin: 0px;
    font-size: 1.5rem;
}

article img {
    width: min(30rem, 100%);
}

article ul {
    margin: 0px;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* padding-bottom: 1rem; */
    padding-left: 1rem;
    padding-right: 1rem;

    border-top: 1px dashed var(--border_color);
    background-color: rgba(0, 0, 0, 0.1);
}

footer h2 {
    margin: 0px;    
}

footer form {
    margin: 0px;
}