:root {
    --codeBG: #ddd;
    --codeText: #153;
    --commentText: #586;
    --headerBG: #acf;
    --headerText: gray;
    --headerLink: cornflowerblue;
    --contentBG: #feffff;
    --mainBG: #efeeee;
    --mainLink: #33d;
    --mainText: #111;
}

body {
    background: var(--mainBG);
    color: var(--mainText);
    font-family: "Verdana", sans-serif;
    margin: 10px;
    line-height: 1.3;
}

body * {
    border-radius: 2px;
}

nav {
    background: var(--headerBG);
    padding: 20px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: center;
    gap: 20px;
    color: var(--headerText);
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    margin: -10px;
}

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

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

li, p {
    margin-top: 20px;
    padding: 2px
}

li:hover, p:hover {
    background: var(--mainBG);
    border-radius: 8px;
}

.home {
    margin-right: auto;
    color: var(--mainBG);
}

.here {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

h1, h2, h3 {
    font-family: monospace;
}

h2 {
    margin-top: 40px;
}

ul {
    list-style-type: square;
}

ol > li::marker, figcaption {
  font-weight: bold;
}

li {
    margin-bottom: 15px;
    font-size: 1rem;
}

.letterList {
    list-style-type: lower-alpha;
}

.content {
    background: var(--contentBG);
    border-radius: 5px;
    max-width: 900px;
    margin: 50px auto !important; /* prioritize centering when .content is paired with .codeblock */
    padding: 30px;
    border: 2px solid var(--headerText);
}

code {
    color: var(--codeText);
    font-size: 1rem;
}

.codeblock {
    background: var(--codeBG);
    color: var(--codeText);
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 15px 0;
    padding: 10px;
}

.replace {
    color: var(--replaceText);
}

.comment {
    color: var(--commentText);
}

.cfu {
    align-self: right;
    background: var(--headerBG);
    border-radius: 20px;
    color: var(--mainText);
    font-size: 0.8rem;
    font-style: italic;
    padding: 12px;
    margin: 10px;
    margin-left: auto;
    max-width: 400px;
    opacity: 0.75;
}

.answer {
    text-decoration: underline;
    cursor: pointer;
}

img.small {
    max-height: 150px;
}

img.medium {
    max-height: 250px;
    max-width: 300px;
}

img.standard {
    margin: 5px;
    max-width: 90%;
    max-height: 300px;
}

img.large {
    height: 500px;
}

/* place image to the right of text in a column */
.flexImg {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

footer {
    background: var(--headerBG);
    color: var(--headerText);
    padding: 20px 50px;
    text-align: center;
    margin: -10px;
}

footer a {
    color: var(--headerLink);
}

@media (max-width: 700px) {
    ol, ul, li {
        padding-left: 8px;
    }
    img {
        padding: 0;
        max-width: 100%;
    }
    .flexImg img {
        width: 100%;
    }
}