/* change the colors here! 

the page background is set to "light", and the text body background is "lightest". 

the background of the navigation and options tabs is a transparent version of lightest, hence "translightest". 
"black" is the offblack text color. "shadow" is the color of the boxshadow. 

*/

:root {
    --light: #cdb79f;
    --lightest: #d6c2ad;
    --translightest: #d6c2addf;
    --link: #512800;
    --black: #171411;
    --shadow: #917b654e;
}



*,
*::after {
    box-sizing: border-box;
    scrollbar-color: var(--link) var(--lightest);
}

::selection {
    background-color: var(--black);
    color: var(--light)
}

body {
    background-color: var(--light);
    color: var(--black);
    font-family: "Libre Baskerville", serif;
    font-size: 11pt;
}

h1,
h2 {
    line-height: 1;
    margin-top: 10px;
}

a {
    color: var(--link);
    font-weight: bold;
}

a:hover,
a:focus {
    filter: brightness(200%);
}

blockquote {
    border-left: 2px solid var(--link);
    padding-left: 10px;
}

select,
option {
    background-color: inherit;
    border: 1px solid;
    font: inherit;
}

button {
    font-family: inherit;
    background-color: inherit;
    border: 1px solid;
    border-radius: 10px
}

button:hover,
button:focus {
    box-shadow: 2px 2px var(--shadow);
}

button:active {
    box-shadow: 2px 2px var(--shadow) inset;
}

pre,
code {
    background-color: var(--black);
    color: var(--lightest);
}

img {
    max-width: 100%;
}

.book {
    max-width: 800px;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 1px 2px 5px var(--shadow);
    padding: 20px;
    margin: 50px auto;
    background-color: var(--lightest);
}

.tab {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    transition: 1s;
    color: #7d6e5f;
}


nav,
.options {
    position: fixed;
    box-shadow: 3px 3px 10px #917b657a;
    padding: 10px;
    background-color: var(--translightest);
    backdrop-filter: blur(3px);
    transition: 1s;
}


nav {
    top: 30%;
    left: -200px;
    width: 200px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

nav h2 {
    font-size: large;
}

nav:hover,
nav:focus {
    left: 0px;
}

nav .tab {
    right: -20px;
    top: 30%;
    width: 20px;
    height: 50%;
    padding-right: 5px;
    padding-left: 5px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 10pt;
}

nav .tab:hover,
nav:hover .tab,
nav.tab:focus,
nav:focus .tab {
    opacity: 0;
}

.options {
    position: fixed;
    top: -100px;
    right: 5px;
    height: 100px;
    font-size: 10pt;
}

.options:hover,
.options:focus {
    top: 5px;
}

.options .tab {
    bottom: -40px;
    right: 0px;
    font-size: 24pt;
    border: none;
}

.options p {
    margin: 5px
}

.epigraph {
    width: 50%;
    font-style: italic;
    margin: 50px auto;
    max-width: 700px;
}

.credit /*this is just for the quote attribution for the epigraph*/ {
    text-align: right;
    font-style: normal;
    font-size: smaller;
}

/* smaller screen styling */
@media only screen and (max-width: 800px) {

    nav {
        top: unset;
        bottom: -100px;
        left: 0;
        width: 100%;
        height: 100px;
        border-radius: unset;
    }

    nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    nav:hover,
    nav:focus {
        bottom: 0;
    }

    nav .tab {
        right: unset;
        left: 25%;
        width: 50%;
        top: -20px;
        height: 20px;
        padding-right: 5px;
        padding-left: 5px;
        border-top-right-radius: 10px;
        border-top-left-radius: 10px;
        border-bottom-right-radius: 0px;
        background-color: var(--translightest);
        backdrop-filter: blur(3px);
    }

    nav #symbol {
        transform: rotate(270deg)
    }
}

@media only screen and (max-width: 500px) {
    .epigraph {
        width: 90%;
    }

}