/* Universal Selector */
* {
    box-sizing: border-box;
}



/* Fonts */
@font-face {
    font-family: "quicksand";
    src: url(../fonts/Quicksand/Quicksand-VariableFont_wght.ttf);
}

/* Formerly Zen-Maru-Gothic */
@font-face {
    font-family: "nunito";
    src: url(../fonts/Nunito/Nunito-VariableFont_wght.ttf);
    font-weight: 300;
}

@font-face {
    font-family: "naunohhloh";
    src: url(../fonts/Naunohhloh.ttf);
}

/* Gives smooth scrolling for top button */
html {
    scroll-behavior: smooth;
}



/* COLORS */
/*        */
/* https://dequeuniversity.com/color-contrast */
/* data-* is standard naming convention */
:root, [data-theme="default"] {
    --brightYellow: #f3db5c;
    --paleYellow: rgb(251, 247, 217);
    --wrapperBlue: rgb(191, 223, 223);
    --darkBlue: rgb(20, 60, 100);
    --offWhite: rgb(249, 247, 234);
    --wrapperRed: #eabc86;
    --redBrown: #924b14;
    --darkRedBrown: #461d06;
    --redSecTable: rgb(249, 247, 234);
    /* default same as off white */

    --linkColor: blue;
    --grey: #ccc;
    --borderBlue: #7c9daa;
    --darkBlueT: 20, 60, 100;
    --headerBlueT: 158, 191, 199;
}

[data-theme="dark-mode"] {
    --brightYellow: rgb(35, 35, 119);
    --paleYellow: rgb(37, 37, 37);
    --wrapperBlue: rgb(0, 0, 0);
    --darkBlue: #ffffff;
    --darkBlueT: 180, 180, 180;
    --wrapperRed: rgb(35, 35, 119);
    --redBrown: #ffffff;
    --darkRedBrown: #ffffff;
    --redSecTable: rgb(37, 37, 37);

    --linkColor: rgb(255, 152, 61);
    --grey: #767676;
    --offWhite: rgb(35, 33, 64);
    --borderBlue: #ffffff;
    --headerBlueT: 37, 37, 37;
}

.dark-mode-filter {

    /* effects image border as well </3 */
    img {
        filter: sepia(50%) brightness(80%);
        border: 2px solid #fff !important;
    }
}

[data-theme="cream"] {
    --brightYellow: rgb(251, 247, 217);
    --paleYellow: rgb(251, 247, 217);
    --wrapperBlue: rgb(240, 234, 183);
    --darkBlue: rgb(107, 59, 14);
    --darkBlueT: 107, 59, 14;
    --wrapperRed: rgb(209, 157, 214);
    --redBrown: rgb(41, 23, 88);
    --darkRedBrown: rgb(41, 23, 88);
    --redSecTable: rgb(249, 247, 234);

    --linkColor: blue;
    --grey: #ccc;
    --offWhite: rgb(249, 247, 234);
    --borderBlue: rgb(107, 51, 14);
    --headerBlueT: 195, 160, 90;
}

[data-theme="plain"] {
    --brightYellow: rgb(230, 213, 86);
    --paleYellow: rgb(255, 255, 255);
    --wrapperBlue: rgb(210, 210, 200);
    --darkBlue: rgb(44, 44, 44);
    --darkBlueT: 44, 44, 44;
    --wrapperRed: rgb(210, 210, 200);
    --redBrown: rgb(44, 44, 44);
    --darkRedBrown: rgb(44, 44, 44);
    --redSecTable: rgb(249, 247, 234);

    --linkColor: rgb(45, 82, 229);
    --grey: #ccc;
    --offWhite: rgb(249, 247, 234);
    --borderBlue: rgb(44, 44, 44);
    --headerBlueT: 210, 210, 200;
}

[data-theme="colorless"] {
    --brightYellow: rgb(235, 235, 235);
    --paleYellow: rgb(235, 235, 235);
    --wrapperBlue: #fff;
    --darkBlue: rgb(30, 30, 30);
    --darkBlueT: 30, 30, 30;
    --wrapperRed: rgb(235, 235, 235);
    --redBrown: rgb(30, 30, 30);
    --darkRedBrown: rgb(30, 30, 30);
    --redSecTable: #fff;

    --linkColor: rgb(255, 0, 0);
    --grey: #ccc;
    --offWhite: #fff;
    --borderBlue: rgb(210, 210, 210);
    --headerBlueT: 235, 235, 235;
}

.grayscale-filter {
    filter: grayscale(65%) !important;
    /* filter: sepia(100%) hue-rotate(180deg) saturate(50%); */
}

[data-theme="party"] {
    --brightYellow: #f672ff;
    --paleYellow: rgb(200, 255, 80);
    --wrapperBlue: #05f4fe;
    --darkBlue: rgb(47, 49, 198);
    --darkBlueT: 47, 49, 198;
    --wrapperRed: #f672ff;
    --redBrown: rgb(47, 49, 198);
    --darkRedBrown: rgb(47, 49, 198);
    --redSecTable: #fae17d;

    --linkColor: rgb(239, 255, 222);
    --grey: rgb(255, 255, 255);
    --offWhite: #fae17d;
    --borderBlue: #05cdf9;
    --headerBlueT: 112, 255, 219;
}

[data-theme="kitty"] {
    --brightYellow: rgb(44, 80, 189);
    --paleYellow: rgb(44, 80, 189);
    --wrapperBlue: rgba(32, 39, 76, 0.75);
    --darkBlue: rgb(255, 245, 207);
    --darkBlueT: 255, 245, 207;
    --wrapperRed: rgba(101, 53, 30, 0.75);
    --redBrown: rgb(255, 245, 207);
    --darkRedBrown: rgb(255, 245, 207);
    --redSecTable: rgb(101, 53, 30);

    --linkColor: rgb(166, 207, 255);
    --grey: rgb(32, 39, 76);
    --offWhite: rgb(61, 49, 22);
    --borderBlue: rgb(32, 39, 76);
    --headerBlueT: 32, 39, 76;
}

/* Notebook tab colors - Light */
[data-theme="default"], [data-theme="cream"], [data-theme="plain"], [data-theme="colorless"], [data-theme="party"] {
    --tab1: rgb(243, 210, 91);
    --tab2: rgb(221, 147, 221);
    --tab3: rgb(103, 208, 127);
    --tab4: rgb(99, 189, 246);
    --tab5: rgb(234, 142, 158);
}

/* Notebook tab colors - Dark */
[data-theme="dark-mode"], [data-theme="kitty"] {
    --tab1: rgb(56, 139, 234);
    --tab2: rgb(3, 115, 14);
    --tab3: rgb(51, 45, 135);
    --tab4: rgb(190, 95, 139);
    --tab5: rgb(139, 50, 50);
}

/* EXTRA */
/*
    --brightYellow: #facc72;
    --paleYellow: #fdf983;
    --wrapperBlue: rgb(212, 233, 135);
    --darkBlue: rgb(29, 56, 85);
    --darkBlueT: 29, 56, 85;
    --wrapperRed: rgb(246, 204, 90);
    --redBrown: rgb(255, 238, 167);
    --darkRedBrown: #bd5c49;
    --redSecTable: #7d5038;

    --offWhite: #fdf983;
    --borderBlue: rgb(29, 56, 85);
    --headerBlueT: 29, 56, 85;
    */




/* GENERAL STYLING */
/*                 */
.wrapper {
    padding: 5em 1.85em 1.85em 1.85em;
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--wrapperBlue);
}

body {
    background: linear-gradient(var(--paleYellow), #fff);
    /* background has higher importance than background-image */
    margin: 0;
}

/* Only used on home page title */
h1 {
    font-size: 2.75em;
}

p {
    font-family: nunito;
    color: var(--darkBlue);
    font-size: 1em;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 20px;
    background-color: var(--paleYellow);
    border-left: 1px solid rgba(0, 0, 0, .2);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-left: 1px solid rgba(0, 0, 0, .2);

}

/* Handle on hover, footer send button as well */
::-webkit-scrollbar-thumb:hover, #send:hover {
    /* darkens color (lightness) by 15% */
    background-color: hsl(from var(--grey) h s calc(l - 15));

}

#page-header {
    width: 90%;
    margin: 0 auto 0.3em auto;
    margin-top: 70px;
    /* Top added to avoid okshlihd icon */
    padding: 0.075em 0em;

    border-radius: 0.85em 0.85em 0em 0em;
    background-color: var(--paleYellow);
    color: var(--darkBlue);
    box-shadow: 0px 0px 4px -2px rgba(var(--darkBlueT), 1);
    /* Slight contrast */

    font-family: quicksand;
    font-size: 2em;
    font-weight: normal;
    text-align: center;
}

.sub-header {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 3em;
    padding: 0.075em 0em;

    border-radius: 0em 0em 0.85em 0.85em;
    background-color: var(--darkBlue);
    color: var(--paleYellow);

    font-family: quicksand;
    text-align: center;
}

.downwards-sub-header {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    padding: 3px 0px;

    border-radius: 20px 20px 0px 0px;
    background-color: var(--darkBlue);
    color: var(--paleYellow);

    font-family: quicksand;
    text-align: center;
}

/* round sub header */
.section-header {
    width: 75%;
    margin: 5em auto 0.3em auto;
    padding: 7px;

    border-radius: 25px;
    background-color: var(--darkBlue);
    color: var(--paleYellow);

    font-family: quicksand;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.section-sub-header {
    width: 50%;
    margin: 0 auto 3em auto;
    padding: 0.075em 0em;

    border-radius: 0.85em 0.85em 0em 0em;
    background-color: var(--darkBlue);
    color: var(--paleYellow);

    font-family: quicksand;
    text-align: center;
}

.flex-style {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 40px;

    img {
        width: 100%;
    }
}

/* 1 part split */
.one-section {
    flex: 1;
}

/* 2 parts split */
.two-sections {
    flex: 2;
}

/* 4 parts split */
.four-sections {
    flex: 4;
}

#jump-to-top-button {
    padding: 0.3em 0.9em;
    border-radius: 1em;
    background-color: var(--brightYellow);
    color: var(--darkBlue);
    box-shadow: 0px 0px 7px rgba(0, 0, 0, .4);

    font-size: 0.9em;
    font-family: quicksand;
    font-weight: bold;
    text-decoration: none;

    display: inline;
    position: fixed;
    bottom: 1em;
    right: 1em;
    z-index: 3;
    transition: 0.5s;
}

#jump-to-top-button:hover {
    transform: translateY(-0.25em);
    box-shadow: 0px 0px 10px #fff;
    background-color: #f3d43a;
    /* Not the same yellow for better contrast */
    color: #fff;
}





/* TOP NAVIGATION BAR */
/*                    */

/* OKSHLIHD ICON */
/* id goes on the li of the current page in the nav */
#current_okshlid {
    background-image: url(../images/okshlid_icon.png);
    height: 109.5px;
    /* Counters background-size */
    padding: 0px 41px;
    margin: 0px -41px;
    /* Background overflow trick, just enough width */
    background-size: 175px;
    /* Width. height auto calculated to keep aspect ratio. */
    background-position: bottom;
    /* border: 1px solid black; */
    background-repeat: no-repeat;
}

/* Top Bar/Wrapper */
#dropdown {
    position: fixed;
    width: 100%;
    height: 55px;

    background-color: var(--brightYellow);
    color: var(--darkBlue);
    box-shadow: 0px 0px 7px rgba(0, 0, 0, .4);
    z-index: 4;
}

/* Remove Bullet Points */
nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    font-size: 0.85em;
    /* Cause nunito is so big */

    justify-content: center;
    padding: 0;
}

/* Big Nav Text */
nav ul li a {
    padding: 20px 1.5em 18px;
    color: var(--darkBlue);

    text-decoration: none;
    font-family: nunito;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 0.025em;
}

/* Subpages */
nav ul li ul {
    margin-top: -20px;
    padding-top: 45px;
    /* hides the okshlid icon */
    padding-bottom: 5px;
    display: none;
    font-size: 1em;
}

/* Subpage Text */
nav ul li ul li a {
    font-weight: lighter;
    background-color: transparent;
    padding: 0.25em 1em;
    margin: 0;
    display: block;
    /* Lets you click anywhere on its line */
}

/* Display Subpages */
nav ul li:hover ul {
    display: block;

    border-radius: 0em 0em 0.5em 0.5em;
    background-color: var(--brightYellow);
    box-shadow: 0px 10px 10px -3px rgba(0, 0, 0, .2);
}

nav a:hover {
    background-color: var(--paleYellow);
    transition: 0.25s;
}

#settings {
    background-image: url(../images/settings.png);
    height: 35px;
    aspect-ratio: 1;
    background-size: contain;
    position: fixed;
    top: 0px;
    right: 0px;
    margin: 10px;
    z-index: 5;
}

#settings:hover {
    animation: settings-spin 1s 1 ease-in-out;
    cursor: pointer;
}

@keyframes settings-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#settings-window {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;

    background: rgba(0, 0, 0, 0.25);
    z-index: 5;
    /* nothing underneath will be clickable */
}

#settings-content {
    background-color: #fff;
    border-radius: 20px;
    border: 2px solid #777;
    box-shadow: 0px 0px 4vw 5vw rgba(0, 0, 0, .2);

    padding: 0.5em 1em 0.5em 3em;
    height: max-content;
    min-height: min-content;
    width: 60%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    h3 {
        font-size: 2rem;
        color: #000;
        font-family: quicksand;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    ul {
        list-style-type: none;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    ul li {
        min-height: 2rem;
        margin: 1em 0;
        width: 60%;
        font-weight: bold;
    }

    button {
        display: block;
        height: 100%;
        min-height: 2rem;
        width: 100%;
        text-align: left;

        color: #000;
        font-family: quicksand;
        background-color: rgba(0, 0, 0, 0);
        border: none;
        font-size: 1rem;
        font-weight: bold;
    }

}

#selected-theme {
    font-size: 1.25rem !important;
    font-style: italic;
    box-shadow: 0 0 2px 2px #000;
}

#settings-exit {
    display: block;
    color: #a40c0c;
    padding-right: 10px;

    font-family: quicksand;
    font-weight: bold;
    font-size: 40px;
    text-align: right;

    cursor: pointer;
}

/* all colors hard coded */
/* wrapperBlue, darkBlue, brightYellow, paleYellow, redBrown */
/* 0-60, 60-70, 70-80, 80-90, 90-100 */
#theme-default {
    background-image: linear-gradient(to right,
            rgb(191, 223, 223) 0%, rgb(191, 223, 223) 60%,
            rgb(20, 60, 100) 60%, rgb(20, 60, 100) 70%,
            #f3db5c 70%, #f3db5c 80%,
            rgb(251, 247, 217) 80%, rgb(251, 247, 217) 90%,
            #924b14 90%, #924b14 100%);
}


/* all colors hard coded */
/* wrapperBlue, darkBlue, brightYellow, paleYellow, redBrown */
/* 0-60, 60-70, 70-80, 80-90, 90-100 */
#theme-dark-mode {
    background-image: linear-gradient(to right,
            rgb(0, 0, 0) 0%, rgb(0, 0, 0) 60%,
            #fff 60%, #fff 70%,
            rgb(35, 35, 119) 70%, rgb(35, 35, 119) 80%,
            rgb(37, 37, 37) 80%, rgb(37, 37, 37) 90%,
            rgb(255, 152, 61) 90%, rgb(255, 152, 61) 100%);
    /* linkColor */

    button {
        color: #fff;
    }
}

#theme-cream {
    background-image: linear-gradient(to right,
            rgb(240, 234, 183) 0%, rgb(240, 234, 183) 60%,
            rgb(107, 59, 14) 60%, rgb(107, 59, 14) 70%,
            rgb(251, 247, 217) 70%, rgb(251, 247, 217) 80%,
            rgb(209, 157, 214) 80%, rgb(209, 157, 214) 90%,
            /* wrapperRed */
            rgb(41, 23, 88) 90%, rgb(41, 23, 88) 100%);
}

#theme-plain {
    background-image: linear-gradient(to right,
            rgb(236, 236, 236) 0%, rgb(236, 236, 236) 60%,
            rgb(44, 44, 44) 60%, rgb(44, 44, 44) 70%,
            rgb(235, 213, 93) 70%, rgb(235, 213, 93) 80%,
            rgb(255, 255, 255) 80%, rgb(255, 255, 255) 90%,
            rgb(241, 240, 226) 90%, rgb(241, 240, 226) 100%);
    /* offWhite */
}

#theme-colorless {
    background-image: linear-gradient(to right,
            #fff 0%, #fff 60%,
            rgb(30, 30, 30) 60%, rgb(30, 30, 30) 70%,
            rgb(235, 235, 235) 70%, rgb(235, 235, 235) 80%,
            rgb(210, 210, 210) 80%, rgb(210, 210, 210) 90%,
            /* borderBlue */
            rgb(146, 146, 146) 90%, rgb(146, 146, 146) 100%);
    /* not used, but I'm out of colors */
}

#theme-party {
    background-image: linear-gradient(to right,
            #05f4fe 0%, #05f4fe 60%,
            rgb(47, 49, 198) 60%, rgb(47, 49, 198) 70%,
            #f672ff 70%, #f672ff 80%,
            rgb(200, 255, 80) 80%, rgb(200, 255, 80) 90%,
            #fae17d 90%, #fae17d 100%);
    /* offWhite */
}

#theme-kitty {
    background-image: linear-gradient(to right,
            rgb(32, 39, 76) 0%, rgb(32, 39, 76) 60%,
            rgb(255, 245, 207) 60%, rgb(255, 245, 207) 70%,
            rgb(44, 80, 189) 70%, rgb(44, 80, 189) 80%,
            rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 90%,
            /* kitty */
            rgb(101, 53, 30) 90%, rgb(101, 53, 30) 100%),
        /* wrapperRed */
        url(../images/kitty.jpg);
    background-size: contain;

    button {
        color: #fff;
    }
}





/* FOOTER */
/*        */
footer {
    display: flex;
    flex-direction: row;
    margin: 3em 0 0 0;
    padding: 2em 0;
    justify-content: center;

    font-family: nunito;
    background-color: var(--brightYellow);
    color: var(--darkBlue);
    box-shadow: 0px -3px 5px rgba(0, 0, 0, .2);
}

footer p {
    border-right: 1px solid var(--darkBlue);
    width: 20vw;
    font-size: 14px;
    margin: 0;
    padding: 0em 2em;
    line-height: 150%;
}

#form-content {
    width: 30vw;
    font-size: 14px;

    display: grid;
    /* Grid area is assumed */
    text-align: right;

    grid-template-rows: repeat(2, auto);
    gap: 10px 1em;

    grid-template-areas:
        "mtext ctext"
        "mbox cbox"
        ". send"
    ;
}

footer textarea {
    color: var(--darkBlue);
    background-color: var(--offWhite);
    height: 4em;
    font-family: nunito;
    font-size: 0.9em;

    resize: none;
}

/* The submit button */
footer input {
    color: var(--darkBlue);
    background-color: var(--offWhite);
    border: 1px solid #777;
    height: 2em;

    font-family: nunito;
    font-size: 0.9em;
}

#send {
    grid-area: send;
    width: 40%;
    background-color: var(--grey);
    text-transform: uppercase;
}





/* COLLAPSING SECTIONS (People and Language) */
/*                                           */
.collapse {
    cursor: pointer;
    /* background-color: #95b6c3; */
    /* old (so pretty) */
    background-color: rgba(var(--darkBlueT), 0.3);
    color: var(--darkBlue);
    border: none;
    text-decoration: underline;

    padding: 1em 1.85em;
    /* redo wrapper padding */

    width: 95vw;
    font-weight: 600;

    font-size: 1.1em;
    font-family: quicksand;
    text-align: left;
}

/* nested collapse, like the archive section */
.collapse-inside {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    color: var(--darkBlue);
    border: none;
    text-decoration: underline;

    display: block;
    padding: 0;

    font-family: quicksand;
    font-weight: bold;
    font-size: 1em;
    text-align: left;
}

.collapse-inside+.collapse-content {
    border-left: 2px solid var(--darkBlue);
    border-radius: 0 20px;

    padding-left: 1em;
    margin-top: -15px;
    padding-top: 5px;
    padding-bottom: 1em;
    margin-left: -1px;
}

.collapse:hover, .collapse.active:hover {
    cursor: pointer;
    /* background-color: #a9cfd8; */
    /* old (so pretty) */
    background-color: rgba(var(--headerBlueT), 1);
}

.collapse-inside.active {
    text-decoration: none;
}

.collapse-inside:hover, .collapse-inside.active:hover {
    cursor: pointer;
}

.collapse.active {
    background-color: var(--wrapperBlue);
}

/* https://www.w3schools.com/howto/howto_js_collapsible.asp */
.collapse::after {
    content: '\002B';
    /* Unicode character for "+" */
    float: right;
    font-size: 1.25em;
    margin-left: 5px;
    color: var(--darkBlue);
}

.collapse.active::after {
    content: "\2212";
    /* Unicode character for "-" */
}

.collapse-inside::after {
    content: '\2304';
    /* "^" */
    float: right;
    color: var(--darkBlue);

    font-size: 1.5em;
    font-weight: lighter;
    margin-left: 5px;
    transform: translateY(-0.575em) translateX(0.25em);

}

.collapse-inside.active::after {
    content: "\2303";
    /* "v" */
    transform: translateX(0.25em);
}

.collapse-content {
    display: none;
}

#expand-all {
    font-family: nunito;
    font-size: 1em;
    font-weight: bold;

    margin-bottom: 1em;
    padding: 0.5em;
    padding-right: 2em;

    background-color: var(--paleYellow);
    color: var(--darkBlue);
    box-shadow: 0px 0px 10px rgb(20, 60, 100, 0.15);
    border: 1px solid var(--darkBlue);
    border-radius: 20px 0px 0px 20px;
    justify-content: center;
    /* -webkit-mask-image: radial-gradient(circle 10px at 0 100%, transparent 0, transparent 20px, black 21px); */

    display: inline;
    position: fixed;
    top: 20%;
    right: -1em;
    z-index: 3;
    /* #dropdown z-index is 4 */
}

#expand-all::before {
    content: "Expand";
}

#expand-all.active::before {
    content: "Collapse";
}

#expand-all:hover {
    background-color: rgba(var(--headerBlueT), 1);
    box-shadow: inset 0px 0px 5px rgb(20, 60, 100, 0.25);
}

.anatomy-and-characters {
    text-align: left;

    .flex-style {
        gap: 0;
    }

    .one-section {
        border-left: 1px solid var(--darkBlue);

        img {
            margin: 0;
            padding: 0;
            width: 100% !important;
            border: none;
            /* undo typical border styling */
        }

        p {
            margin: 0;
            padding: 0 1em;
        }
    }
}




/* GENERAL STYLING OPTIONS */
/*                         */
.no-wrapper {
    margin: auto -1.85em !important;
    /* negative padding not supported */
}

.nnhlh {
    font-family: naunohhloh;
    font-size: 1.25em;
    letter-spacing: 0.2em;
}

.light {
    font-weight: lighter;
}

.heavy {
    font-weight: bold !important;
}

.sup {
    display: inline;
    position: relative;
    vertical-align: top;
    top: -2px;
    padding-left: 2px;
    font-size: 0.75em;
}

.tiny {
    font-size: 0.9em !important;
}

.indent {
    margin-left: 2em;
    line-height: 2em;
}

.float-left {
    float: left;
    margin-right: 1em;

    max-height: 300px;
    width: auto;
}

.float-right {
    float: right;
    margin-left: 1em;

    max-height: 300px;
    width: auto;
}

.clear-float {
    clear: both;
}

.centered {
    text-align: center !important;

    /* Override */
    img {
        margin: auto;
    }
}

.left-align {
    text-align: left !important;
    /* Override */
}

.text-justify {
    text-align: justify;
}

.smaller-img {
    width: 300px !important;
    display: flex;
    margin: auto;
}

/* 1px full screen width */
.solid-blue-line {
    /* Used at top and bottom of People page */
    width: 95vw;
    border-top: 1px solid var(--darkBlue);
    border-bottom: none;
    margin: 0;
}

.gap2 {
    padding: 1px;
    margin: 1em;
}

.gap5 {
    padding: 1px;
    margin: 2.5em;
}

.gap8 {
    padding: 1px;
    margin: 4em;
}

.link {
    text-decoration: none;
    color: var(--linkColor);
}

.link:hover {
    font-weight: bold;
}

/* Part of a set */
.glow-on-entry {
    animation: pageLoadGlowAnimation ease 1.15s;
    animation-delay: 0.25s;
    animation-fill-mode: forwards;
}

/* https://www.geeksforgeeks.org/how-to-create-fade-in-effect-on-page-load-using-css/?ref=ml_lbp */
@keyframes pageLoadGlowAnimation {
    0% {
        transform: scale(95%);
        -webkit-text-stroke: 1px var(--paleYellow);
        /* text outline */
    }

    50% {
        transform: scale(103%);
        -webkit-text-stroke: 1px var(--paleYellow);

    }

    100% {
        /* opacity: 1; */
        /* color: yellow; */
        text-shadow: none;
        transform: scale(100%);

    }
}





/* Nav Checkbox on smaller screens */
#ham {
    display: none;
}

#ham-label {
    display: none;
}





/* Slighly-less-than-Large Sized Screens */
@media(max-width: 1290px) {
    .nav-details {
        display: none;
    }

    /* good enough */
    nav a {
        position: relative;
        z-index: 4;
    }

    nav ul li:hover ul {
        box-shadow: none;
    }

    nav ul li ul {
        position: absolute;
        z-index: 1;
    }

    #settings-content {
        padding-left: 0;

        ul li {
            margin: 0.5em;
            width: 95%;
        }
    }

    footer p, form {
        padding: 0 10px;
        width: 30vw;
    }

    #form-content {
        max-width: 35vw;
    }
}

/* Medium sized */
@media(max-width: 840px) {
    /* OKSHLIHD ICON */
    #current_okshlid {
        background-image: none;
        height: auto;
        margin-bottom: 2em;
    }

    nav {
        position: fixed;
        left: 0;
        top: 3em;
        background-color: var(--brightYellow);
    }

    nav ul {
        display: none;
        padding-top: 1em;
    }

    nav ul li {
        margin-bottom: 2em;
    }

    /* Just for the sections */
    nav ul li ul li {
        margin-bottom: 0;
    }

    /* highlight */
    nav ul li a {
        padding: 0 1.5em;
        display: block;
    }

    /* highlight */
    nav ul li ul li a {
        padding: 0.1em 1.5em;
    }

    nav a:hover {
        background-color: var(--paleYellow);
    }

    #settings-content {
        padding: 0;
        width: 90%;

        h3 {
            font-size: 1.5em;
        }

        ul {
            font-size: 1.25em;
            padding-left: 1em;
        }

        ul li {
            width: 90%;
        }
    }

    #ham-label {
        display: flex !important;
        position: absolute;
        left: 30px;
        top: -7px;

        cursor: pointer;
        font-size: 3em;
        margin: 0;
    }

    #ham:checked~nav ul {
        display: block;
        height: 100vh;
        overflow: scroll;
        background-color: var(--brightYellow);
        box-shadow: 0px 8px 7px rgba(0, 0, 0, .4);
    }

    #ham:checked~nav ul li ul {
        position: relative;
        margin: 0;
        padding-top: 0;
        height: 100%;
        overflow: hidden;
        box-shadow: none;

    }

    .nav-details {
        display: inline;
    }

    .wrapper {
        width: 100%;
    }

    #home-hero {
        width: 100%;
    }

    .flex-style {
        display: block;
    }

    .collapse {
        width: 100vw;
    }

    /* counters the typical block display of flex style at 840px */
    .anatomy-and-characters .one-section {
        display: grid;
        grid-template-columns: 35% 65%;
        border-left: none;
        padding-bottom: 2em;
    }

    .solid-blue-line {
        width: 100vw;
    }

    .home-carousel-arrow {
        top: 15%;
    }

    .carousel-last {
        left: 0%;
    }

    .carousel-next {
        right: 0%;
    }

    footer {
        display: block;
        justify-content: center;
    }

    footer p, form {
        width: 100%;
        padding: 1em;
    }

    footer p {
        border-bottom: 1px solid rgba(0, 0, 0, .2);
        border-right: none;
    }

    #form-content {
        grid-template-columns: 10vw 50vw;
        width: 70vw;
        max-width: 100vw;
        margin: auto;
    }

}

/* Phone sized */
@media(max-width: 520px) {
    #page-header {
        width: 100%;
        border-radius: 0.85em 0.85em 0em 0em;
    }

    .sub-header, .section-header {
        width: 90%;
    }

    .downwards-sub-header, .section-sub-header {
        width: 75%;
    }

    .text-justify {
        text-align: left;
    }

    .downwards-sub-header {
        width: 100%;
    }

    footer {
        padding: 2em 1em;
    }

    #form-content {
        grid-template-columns: auto;
    }
}