:root {
    --bg-color: rgb(255, 176, 86);
    --header-bg-color: rgb(255, 124, 30);
    --section-bg-color: rgb(255, 227, 143);
    --anchor-color: rgb(197, 0, 219);
    --anchor-hover-color: black;
    --bg-image: url("images/background.png");
    --header-bg-image: none;
}

@font-face { font-family: "No Bullies Allowed"; src: url("fonts/NoBulliesAllowed.ttf"); }
@font-face { font-family: "MS PGothic"; src: url("fonts/MsPGothic.ttf"); }
* { box-sizing: border-box; }
*::-webkit-scrollbar { background-color: transparent; width: 10px; }
*::-webkit-scrollbar-thumb {
    background-color: var(--header-bg-color);
}
body {
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    font-family: "MS PGothic";
    margin: 0;
}
a { color: var(--anchor-color); text-decoration: none; }
a:hover { color: var(--anchor-hover-color); text-decoration: underline currentColor;}
button { font-family: "MS PGothic"; }
button:hover { text-decoration: underline currentColor; }
h1, h2, h4, h5, h6, p, ul, ol { margin: 0; }
h3 { margin: 3px; text-decoration: underline currentColor; }
p { padding: 1em; }
ul, ol { padding: 0 1em; list-style-type: "‣ "; }
ul ul, ul ol, ol ol, ol ul { padding-right: 0; }
footer { padding: 5px; }
.container {
    margin: 10px 0 0 0;
    max-width: 600px;
}
header {
    display: flex;
    flex-flow: row wrap;
    gap: 5em;
    justify-content: space-between;
    align-items: end;
    border: 2px solid black;
    border-left: none;
    border-radius: 0 5px 0 0;
    background: var(--header-bg-color) var(--header-bg-image);
    padding: 15px 15px 0 15px;
}
header h1 {
    position: relative;
    font-family: "No Bullies Allowed";
    text-shadow: 0 2px 0 var(--header-bg-color), -2px 2px 0 var(--header-bg-color), 2px 2px 0 var(--header-bg-color);
    bottom: -0.15em;
}
.header-nav-buttons {
    padding: 1px 15px;
    border: 2px solid black;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background: var(--header-bg-color);
}
header .active-button {
    border-bottom: 2px solid var(--bg-color);
    background-color: var(--bg-color);
    margin-bottom: -2px;
}
main {
    padding: 5px;
    background-color: var(--bg-color);
    border: 2px solid black;
    border-left: none;
    border-radius: 0 0 5px 0;
    border-top: none;
    display: flex;
    flex-flow: column wrap;
}
main section {
    padding-bottom: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    border: 2px solid black;
    border-radius: 2px;
}
form div { overflow-x: hidden; }
form { max-height: 100%; }
main section:nth-child(odd) { background-color: var(--section-bg-color); }
main section:nth-child(even) { background-color: var(--bg-color); }
section h2 { margin-bottom: 5px; }
section.section-heading-left h2 {
    border: 2px solid black;
    border-left: none;
    border-top: none;
    background-color: var(--header-bg-color);
    border-radius: 0 0 5px 0;
    width: max-content;
    padding: 0 5px;
    justify-self: start;
    text-align: left;
}
section.section-heading-right h2 {
    border: 2px solid black;
    border-right: none;
    border-top: none;
    background-color: var(--header-bg-color);
    border-radius: 0 0 0 5px;
    padding: 0 5px;
    width: max-content;
    justify-self: end;
    text-align: right;
}
section.section-heading-center h2 {
    border-bottom: 2px solid black;
    background-color: var(--header-bg-color);
    width: max-content;
    width: 100%;
    text-align: center;
}
.section-two-right, .section-two-center {
    background-image: url("images/bigButtonBg.png");
    background-position: bottom;
    background-size: 100px;
    background-repeat: repeat-x;
}
section.section-two-right { padding: 5px; text-align: right; }
section.section-two-center { padding: 5px; text-align: center; }
ul.sectioned-list, ol.sectioned-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.grayscale {
    filter: grayscale(100%);
}


/* index.html */
main#index-main {
    display: grid;
    grid-template:
        "doll site-updates site-updates to-do" 150px
        "blog blog blog links" 150px
        "poll about-me about-me links" 150px
        / 1fr 1fr 1fr 1fr;
    grid-gap: 5px;
}
img#index-doll-image {
    filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px -1px 0 black) drop-shadow(-1px 1px 0 black) drop-shadow(1px -1px 0 black);
}


/* about.html */
main#about-main {
    display: grid;
    grid-template:
        "general general doll" 1fr
        "interests favorite-things doll" 200px
        "interests favorite-things go-back" 100px
        / 1fr 1fr 200px;
    grid-gap: 5px;
}
img#about-doll-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px -1px 0 black) drop-shadow(-1px 1px 0 black) drop-shadow(1px -1px 0 black);
}


/* characters.html */
main#characters-main {
    display: grid;
    grid-template:
        "character-selector general general " 1fr
        "character-selector background doll " 2fr
        "character-selector background moodboard " 2fr
        "character-selector design-notes design-notes" 1fr
        / 1fr 200px 2fr;
    grid-gap: 5px;
}
img#characters-doll-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#moodboard {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    padding-bottom: 0;
}
#moodboard h2 { margin-bottom: 0; }
#moodboard img { height: 100%; object-fit: cover; }
#moodboard-controls {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
}
#character-backstory p { padding: 5px; }
#character-design-notes { max-height: 85px; }
#character-backstory { max-height: 500px;  }


@media screen and (max-width: 650px) {
    .container { margin: 10px; }
    header {
        gap: 5px;
        justify-content: center;
        border: 2px solid black;
        border-radius: 5px 5px 0 0;
        padding: 5px;
    }
    header nav {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-evenly;
        gap: 5px;
    }
    header .active-button, .header-nav-buttons {
        border: 2px solid black;
        border-radius: 5px;
    }
    main { border: 2px solid black; border-top: none; }
    main#index-main {
        grid-template: "doll" 1fr "site-updates" "to-do" "about-me" 1fr "blog" 1fr "poll" "links";
    }
    img#index-doll-image { margin: 5px auto; }
    main#about-main {
        grid-template: "general" "doll" 2fr "interests" "favorite-things" "go-back" 1fr;
    }
    main#characters-main {
        grid-template: "character-selector" "doll" "general" "background" "moodboard" "design-notes";
    }
    #character-design-notes { max-height: 100%; }
    #character-backstory { max-height: 100%; }
    .sectioned-list { display: block; }
    footer { text-align: center; }
}