@import url('https://fonts.googleapis.com/css?family=Arsenal');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Noto Sans JP';
    src: url('../assets/NotoSansJP-VariableFont_wght.ttf');
    unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+3400-4DB5, U+4E00-9FCB, U+F900-FA64;
    font-weight: 400;
}

/*html,
body,
.page-wrapper {
    display: initial;
}*/

* {
    -webkit-tap-highlight-color: transparent;
    --fs-sm: clamp(0.8rem, 0.23vi + 0.62rem, 0.89rem);
    --fs-base: clamp(1rem, 0.47vi + 0.63rem, 1.19rem);
    --fs-md: clamp(1.25rem, 0.83vi + 0.58rem, 1.58rem);
    --fs-lg: clamp(1.56rem, 1.37vi + 0.47rem, 2.11rem);
    --fs-xl: clamp(1.95rem, 2.15vi + 0.23rem, 2.81rem);
    --fs-xxl: clamp(2.44rem, 3.27vi + -0.17rem, 3.75rem);
    --fs-xxxl: clamp(3.05rem, 4.87vi + -0.84rem, 5rem);
}

:root {
    --primary-color: #302AE6;
    --secondary-color: #536390;
    --font-color: #212121;
    --bg-color: #fff;
    --bg-secondary-color: #f7f7f7;
    /*--bg-color-gradient: rgb(255, 255, 255);
    --bg-color-gradient: -moz-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(249, 249, 249, 1) 33%, rgba(238, 240, 242, 1) 66%, rgba(218, 222, 225, 1) 100%);
    --bg-color-gradient: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(249, 249, 249, 1) 33%, rgba(238, 240, 242, 1) 66%, rgba(218, 222, 225, 1) 100%);
    --bg-color-gradient: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(249, 249, 249, 1) 33%, rgba(238, 240, 242, 1) 66%, rgba(218, 222, 225, 1) 100%);*/
    --heading-color: #292922;
    --link-hover-color: red;
    --tooltip-title-primary: #5291de;
    --tooltip-title-secondary: #4d86de;
    /*--audio-active-color: limegreen;*/
}

.dark-mode {
    --primary-color: #df9092;
    --secondary-color: #818cab;
    --font-color: #fff;
    --bg-color: #242424;
    --bg-secondary-color: #181818;
    /*--bg-color-gradient: #242424;
    --bg-color-gradient: -moz-linear-gradient(180deg, rgba(17, 21, 24, 1) 0%, rgba(25, 32, 36, 1) 66%, rgba(34, 42, 49, 1) 88%, rgba(55, 71, 79, 1) 100%);
    --bg-color-gradient: -webkit-linear-gradient(180deg, rgba(17, 21, 24, 1) 0%, rgba(25, 32, 36, 1) 66%, rgba(34, 42, 49, 1) 88%, rgba(55, 71, 79, 1) 100%);
    --bg-color-gradient: linear-gradient(180deg, rgba(17, 21, 24, 1) 0%, rgba(25, 32, 36, 1) 66%, rgba(34, 42, 49, 1) 88%, rgba(55, 71, 79, 1) 100%);*/
    --heading-color: #818cab;
    --link-hover-color: white;
    --tooltip-title-primary: rgb(255, 88, 88);
    --tooltip-title-secondary: rgb(233, 79, 79);
    /*--audio-active-color: springgreen;*/
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px color-mix(in srgb, var(--font-color) 30%, transparent);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px color-mix(in srgb, var(--font-color) 50%, transparent);
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: inset 0 0 6px var(--font-color);
}

/*to offset sticky header's height when jumping to anchor links*/
html {
    scroll-padding-top: 6rem;
}

/*experimental*/
hr {
    background-image: linear-gradient(to right,
            var(--tooltip-title-secondary) 50%,
            transparent 0%);
    background-position: top;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    height: 1px;
    border: none;
    margin-block-start: 2em;
    margin-block-end: 2em;
}

.title hr {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Noto Sans JP', 'Montserrat';
    clear: both;
    white-space: wrap;
    /*display:inline-block;*/
}

h1 {
    font-size: var(--fs-xxl);
    margin-block-start: 3rem;
}

h1:first-child {
    margin-block-start: 0rem;
}

h2 {
    font-size: var(--fs-xl);
    margin-block-start: 3rem;
}

h3 {
    margin-block-start: 2rem;
    font-size: var(--fs-lg);
}

h4 {
    margin-block-start: 1rem;
    font-size: var(--fs-md);
}

h2:before {
    content: "◆";
}

.content {
    font-weight: 300;
}

.content-wrapper p {
    font-size: var(--fs-base);
    line-height: 1.5;
    margin-block-end: 2em;
}

.page-wrapper {
    grid-template-columns: 100%;
}

body {
    min-height: 100%;
    background: var(--bg-color);
    /*background-image: linear-gradient(130deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(230deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(50deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(310deg, var(--bg-secondary-color) 25%, var(--bg-color) 25%);
    background-position: 0px 15px, 0px 15px, 0px 15px, 0 15px;
    background-size: 85px 100px;
    background-repeat: repeat;*/
    color: var(--font-color);
    font-family: 'Noto Sans JP', 'Inter', 'Helvetica', 'Arial';
}

.content blockquote {
    border-left: 1px solid var(--primary-color);
    padding-left: 1rem;
    border-radius: 7px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    overflow: hidden;
    clear: both;
    font-family: 'Inter';
    font-weight: 400;
}

.content blockquote p {
    font-size: var(--fs-sm);
}

.content .infoblock p:last-child {
    margin-block-end: 0em;
}

.content blockquote p:last-child {
    margin-block-end: 1em;
}

.content .infoblock {
    display: block;
    border: 1px var(--font-color) solid;
    background-color: var(--bg-secondary-color);
    padding: 1.75rem 1rem 1rem 1rem;
    position: relative;
}

.content .infoblock p {
    font-size: var(--fs-sm);
}

.content .infoblock .floatLeft,
.content .infoblock .floatRight {
    margin: 1rem;
}

.content .infoblock:before {
    position: absolute;
    content: "Additional Information";
    text-align: center;
    align-content: center;
    height: 1.75rem;
    /*background-color: var(--tooltip-title-primary);*/
    background-image: linear-gradient(130deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(230deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(50deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(310deg, var(--tooltip-title-secondary) 25%, var(--tooltip-title-primary) 25%);
    background-position: 1.55rem 0px, 1.55rem 0px, 0 0px, 0 0px;
    background-size: 1.55rem 1.75rem;
    background-repeat: repeat;
    color: #fff;
    inset: 0;
    font-size: var(--fs-base);
    font-weight: 800;
    font-variant: small-caps;
}

/*@media(min-width: 992px) {

    p:has(+.infoblock) {
        display: inline;
    }
    .content .infoblock {
        display: inline;
        float: right;
        width: 50%;
        max-width: 500px;
        margin-inline-start:1rem;
        margin: 1rem 0 1rem 1rem;
    }
}*/

.content ul {
    font-size: 85%;
}

.content ul ul {
    font-size: 100%;
}

ul ul li:last-child {
    margin-block-end: 1em;
}

p:has(+ul) {
    margin-block-end: 0.5em;
}

p+ul {
    margin-block-start: 0.5em;
}

p:has(+.audio) {
    display: inline-block;
}

.attention {
    color: var(--tooltip-title-secondary);
}

/*commented out because it didn't do anything on text-to-speech engines I've tested*/
/*s::before,
s::after {
    clip-path: inset(100%);
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

s::before {
    content: " [start of stricken text] ";
}

s::after {
    content: " [end of stricken text] ";
}*/

a {
    clear: left;
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    text-shadow: 0 0 1em #ff0008;
    color: var(--link-hover-color);
}



ruby>rt {
    font-size: 60%;
}

h1 rt {
    font-size: 40%;
}

code {
    padding: .2em .4em;
    margin: 0;
    font-size: calc(0.5em + 0.5vmin);
    background-color: rgba(240, 246, 252, 0.15);
    border-radius: 6px;
    white-space: pre-line;
}

.photo {
    width: fit-content;
    margin: 5px auto;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    border: 1px solid #6b7194;
    filter: drop-shadow(0px 3px 1px #6b7194);
    background-image: linear-gradient(130deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(230deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(50deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(310deg, var(--bg-secondary-color) 25%, var(--bg-color) 25%);
    background-position: 0px 15px, 0px 15px, 0px 15px, 0 15px;
    background-size: 30px 35px;
    background-repeat: repeat;
    position: relative;
}

.photo:before {
    content: "";
    border: 1px solid #8c7152;
    inset: 3px;
    z-index: 1;
    position: absolute;
    border-radius: 0.2em;
    pointer-events: none;
}

.photo:after {
    position: absolute;
    content: "";
    border-radius: 0.4rem;
    background: linear-gradient(#fff38c, #e7ba6b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    inset: 0;
    pointer-events: none;
    padding: 3px;
}

.photo .desc {
    padding: 0.2rem 1rem 0.2rem 1rem;
    text-align: center;
    /*background-color: color-mix(in srgb, var(--font-color) 10%, transparent);*/
    border-radius: 0 0 0.5rem 0.5rem;
}

.photo .desc p {
    font-size: calc(0.6em + 0.5vmin);
    font-weight: 700;
    margin-block-start: 0;
    margin-block-end: 0;
    color: #fff;
    text-shadow: 0 2px 3px var(--tooltip-title-secondary), 0 -2px 3px var(--tooltip-title-secondary), 2px 0px 3px var(--tooltip-title-secondary), -2px 0px 3px var(--tooltip-title-secondary), 0px 0px 3px var(--tooltip-title-secondary);
    font-family: 'Montserrat';
}

.photo .desc p:last-child {
    margin-block-end: 0.5em;
}

.photo .imageWrapper {
    display: grid;
    grid-template-areas: "image";
}

.photo .imageWrapper:after {
    content: "©Cygames, Inc.";
    position: absolute;
    align-self: end;
    padding: 0 0 2px 5px;
    -webkit-text-stroke: black 2px;
    color: #fff;
    paint-order: stroke fill;
    font-family: 'Inter';
    font-weight: 500;
    font-size: calc(0.4rem + 0.5vmin);
}

.photo img {
    width: 100%;
    max-width: 600px;
    border-radius: 0.5rem 0.5rem 0 0;
    mask-image: linear-gradient(black 95%, transparent);
}

.photo .img1:hover,
.photo .img2:hover {
    cursor: pointer;
}

.photo .img1 {
    grid-area: image;
}

.photo .img2 {
    grid-area: image;
}

.photo img.leaf-top {
    width: 7%;
    transform: scale(-100%);
    right: 0.4%;
    top: 2px;
    position: absolute;
    filter: hue-rotate(16.3deg) brightness(143%);
    z-index: 2;
    pointer-events: none;
}

.photo img.leaf-bottom {
    width: 7%;
    position: absolute;
    bottom: 2px;
    left: 0.4%;
    z-index: 2;
    pointer-events: none;
}

.floatLeft img.zoom,
.floatRight img.zoom {
    position: fixed;
    width: 100%;
    max-width: fit-content;
    max-height: 80dvh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 0 1000em rgba(0, 0, 0, 0.9);
}

.invisible {
    display: none;
    transition: fade-in 2s;
}

.floatLeft,
.floatRight {
    display: inline;
    max-width: 50%;
    width: 250px;
    border: 1px solid var(--font-color);
    padding: 5px;
    font-size: calc(0.45em + 0.5vmin);
    clear: both;
}

.floatRight {
    float: right;
    margin: 0rem 0rem 0rem 1rem;
}

.floatLeft {
    float: left;
    margin: 0rem 1rem 0rem 0rem;
}

.floatLeft img,
.floatRight img {
    width: 100%;
}

.floatLeft img:hover,
.floatRight img:hover {
    cursor: zoom-in;
}

/*test*/

.floatLeft img.zoom:hover,
.floatRight img.zoom:hover {
    cursor: zoom-out;
}

.infoblock:has(+.floatLeft),
.infoblock:has(+.floatRight) {
    margin-block-end: 1em;
}

/*audio button*/
btn.material-icons {
    color: var(--font-color);
    background: radial-gradient(var(--bg-color) 35%, transparent 0%);
    font-size: calc(1.2rem + 0.5vmin);
    vertical-align: middle;
    margin-top: -4px;
    clip-path: circle(40% at 50% 50%);
}

@media (hover:hover) {
    btn.material-icons:hover {
        cursor: pointer;
        color: var(--secondary-color);
        background: radial-gradient(var(--font-color) 35%, transparent 0%);
    }
}

div.audio {
    display: inline;
    line-height: 2;
}

.container {
    margin: 0 auto;
    height: 100%;
    width: 100%;
}


.container .infobar {
    display: none;
    /*background-color: rgba(111, 111, 111, 0.3);*/
    padding: 2rem;
    position: sticky;
    height: calc(100dvh - 5rem);
    top: 5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 5px;

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: transparent;
    }

    img {
        object-fit: cover;
        display: block;
        left: 0;
        bottom: 0;
        margin: auto;
        max-width: 100%;
        width: 100%;
        position: absolute;
        right: 0;
        top: 0;
        border: none;
        height: auto;
        cursor: pointer;
        -webkit-transition: 0.4s all;
        -moz-transition: 0.4s all;
        transition: 0.4s all;
    }

    img:hover {
        -webkit-filter: brightness(75%);
        filter: brightness(75%);
    }

    .play {
        height: 48px;
        width: 68px;
        left: 50%;
        top: 50%;
        margin-left: -34px;
        margin-top: -24px;
        position: absolute;
        background: url('https://i.ibb.co/j3jcJKv/yt.png') no-repeat;
        cursor: pointer;
    }
}

/*tablets and phones*/
@media(max-width: 768px) {
    .container {
        display: grid;
        grid-template-areas:
            "main";
    }

    .container .content {
        grid-area: main;
        align-self: start;
    }

    .container .menu {
        grid-area: main;
    }

    .content-wrapper {
        width: calc(100% - 4rem);
    }

    .dimmer {
        grid-area: main;
    }
}

/*small desktops*/
@media(min-width: 769px) {
    .container {
        display: grid;
        grid-template-areas:
            "sidebar main";
        grid-template-columns: max(15rem, 15%) auto;
    }

    .container .menu {
        align-self: start;
        grid-area: sidebar;
        padding-top: unset;
        display: flex;
        flex-direction: column;
    }

    .container .content {
        grid-area: main;
        width: 100%;
    }

    .content-wrapper {
        width: calc(100% - 6rem);
        margin: 0 auto;
    }

    .dimmer {
        grid-column-start: sidebar;
        grid-column-end: main;
        grid-row-start: sidebar;
    }
}


/*large desktops*/
@media(min-width: 1280px) {
    .container {
        display: grid;
        grid-template-areas:
            "sidebar main infobar";
        grid-template-columns: 1fr 50rem 1fr;
    }

    .container .menu {
        align-self: start;
        grid-area: sidebar;
        padding-top: unset;
        display: flex;
        flex-direction: column;
    }

    .container .content {
        grid-area: main;
        width: 100%;
    }

    .content-wrapper {
        width: calc(100% - 6rem);
        margin: 0 auto;
    }

    .container .infobar {
        grid-area: infobar;
        display: flex;
        flex-direction: column;
    }

    .dimmer {
        grid-column-start: sidebar;
        grid-column-end: infobar;
        grid-row-start: sidebar;
    }
}

.content-wrapper {
    margin: 0 auto;
}

.container .content {
    padding: 3rem 0;
    text-align: left;
}

.page-wrapper>.container {
    background: var(--bg-color);
    background-image: linear-gradient(130deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(230deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(50deg, var(--bg-secondary-color) 25%, transparent 25%), linear-gradient(310deg, var(--bg-secondary-color) 25%, var(--bg-color) 25%);
    background-position: 0px 15px, 0px 15px, 0px 15px, 0 15px;
    background-size: 85px 100px;
    background-repeat: repeat;
}

/*HEADER START*/
[data-include="header"] {
    background-color: var(--bg-color);
    border-bottom: #ccc 1px solid;
    height: 5rem;
    width: 100%;
    position: sticky;
    flex-wrap: wrap;
    top: 0;
    z-index: 3;
    transition: top 0.2s ease-in-out;
}

#header {
    height: 100%;
}

#header .container {
    display: flex;
    flex-wrap: wrap;
    flex-flow: row;
    justify-content: space-between;
    padding-left: min(5%, 2rem);
    padding-right: min(5%, 2rem);
}

#header .container a {
    align-content: center;
}

.logo {
    max-height: 70%;
    max-width: max(5rem, 100%);
    /*height: 5rem;*/
    display: block;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch input {
    display: none;
}

.theme-switch {
    height: 2.5rem;
    position: relative;
    /*temporary, for visualising button shape
    background: #555;
    border: 2px solid #ccc;*/
    width: 85%;
    border-radius: 50px;
    align-content: center;
}

.darklight img {
    max-height: 75%;
    position: relative;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.darklight {
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.darklight .darkmode {
    translate: -20% -20%;
    z-index: 0;
    opacity: 0.3;
    -webkit-transition: translate .4s, opacity .4s;
    transition: translate .4s, opacity .4s;
}

.darklight .lightmode {
    translate: 20% 20%;
    z-index: 1;
    -webkit-transition: translate .4s, opacity 0s;
    transition: translate .4s, opacity 0s;
}

input:checked+.darklight .darkmode {
    translate: -80% 20%;
    opacity: 1;
    z-index: 1;
    -webkit-transition: translate .4s, opacity 0s;
    transition: translate .4s, opacity 0s;
}

input:checked+.darklight .lightmode {
    translate: 80% -20%;
    opacity: 0.3;
    z-index: 0;
    -webkit-transition: translate .4s, opacity .4s;
    transition: translate .4s, opacity .4s;
}

.theme-switch:hover .darklight .darkmode,
.theme-switch:hover .darklight .lightmode {
    /*box-shadow: 0 0 2em 0.2em rgba(255,255,255,0.5);
    border-radius: 50%;*/
    filter: drop-shadow(0em 0em 10px rgba(255, 160, 160, 1));
}

/*for hiding header on scrollup*/
.nav-up {
    top: -5rem;
}

/*HEADER END*/

/*FOOTER START*/
[data-include="footer"] {
    background-color: var(--bg-color);
    border-top: #ccc 1px solid;
    height: 3rem;
    position: relative;
    bottom: 0;
    z-index: 3;
}

/*FOOTER END*/

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:after {
    content: " ";
    display: table;
    clear: both;
}

attr.popup {
    border-bottom: 1px dotted white;
}

attr.popup:hover {
    color: #ff7f7f;
    border-bottom: 1px dotted #ff7f7f;
    cursor: default;
}

.tooltip:hover {
    cursor: cell;
}

.tooltip {
    border-bottom: 1px dotted var(--font-color);
    position: relative;
}

.title:before {
    content: 'Tooltip';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    height: 1.5rem;
    /*background: var(--tooltip-title-bar);*/
    background-image: linear-gradient(130deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(230deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(50deg, var(--tooltip-title-secondary) 25%, transparent 25%), linear-gradient(310deg, var(--tooltip-title-secondary) 25%, var(--tooltip-title-primary) 25%);
    background-position: 15px 20px, 15px 20px, 0 20px, 0 20px;
    background-size: 15px 20px;
    background-repeat: repeat;
    text-align: center;
    align-content: center;
    color: #fff;
    -webkit-text-stroke: color-mix(in srgb, var(--tooltip-title-secondary) 50%, #333 20%) 3px;
    paint-order: stroke fill;
    font-size: var(--fs-base);
    outline: 2px solid #e4d47d;
    font-style: normal;
    font-family: 'Red Hat Display';
}

.title:after {
    border: 1px #BBB solid;
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
}

.title {
    position: absolute;
    display: block;
    top: 1.35em;
    z-index: 2;
    background: var(--bg-color);
    padding: 0.5em;
    padding-top: 2rem;
    color: var(--font-color);
    /*font-weight: bold;*/
    font-size: var(--fs-sm);
    font-weight: 400;
    /*text-shadow: 1px 1px 5px red, 0 0 1em blue, 0 0 0.2em blue;*/
    /*left: 50%;
    transform: translate(-50%, 0);*/
    /*width: clamp(10rem, 20rem, 30rem);*/
    word-wrap: break-word;
    border-radius: 12px;
    border: 3px #e4d47d solid;
    animation: fadeIn linear 0.15s;
    margin-right: 0px;
    text-align: left;
    text-wrap: nowrap;
    /*min-width: 10rem;*/
    /*max-width: 30rem;*/
}

.title ul {
    padding-left: 1.5rem;
}

span.title>p:first-child {
    margin-block-start: 0;
}

span.title>p:last-child {
    font-size: 75%;
    font-style: italic;
    margin-block-end: 0;
    margin-block-start: 0.5em;
    font-weight: 400;
}

.dim {
    /*box-shadow: 0 0 0 10000em rgba(0, 0, 0, 0.9);
    animation: fadeIn linear 0.15s;
    z-index: 2;*/
    /*text-shadow: 0px 0px 15px #fff;
    background-color: var(--font-color);
    filter: drop-shadow(0px 0px 10px var(--font-color));
    color: var(--bg-color);*/
    /*padding: 2px 0 2px 0;*/
}

.dimmer {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-self: stretch;
    z-index: 1;
    display: none;
}

/*.highlight not really that important, I figured it was more work than needed to change z-index of highlighted text*/
.highlight {
    animation: fadeIn linear 0.15s;
    z-index: 2;
    text-shadow: 0px 0px 15px #fff;
    background-color: var(--font-color);
    filter: drop-shadow(0px 0px 10px var(--font-color));
    color: var(--bg-color);
    padding: 2px 0 2px 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.menu .menu-toc {
    padding-bottom: 0.5rem;
}

.menu-toc p.menu-header {
    font-size: 1.7rem;
    font-weight: bold;
    margin: unset;
}

.menu-toc div.h1 {
    margin-left: 0;
    font-weight: bold;
    line-height: 1rem;
    font-size: 1rem;
}

.menu-toc div.h2 {
    margin-left: 1rem;
    line-height: 1rem;
    font-size: 0.9rem;
    padding-top: 0.2rem;
}

.menu-toc div.h3 {
    margin-left: 2rem;
    line-height: 1rem;
    font-size: 0.9rem;
    padding-top: 0.2rem;
}

.menu-toc div.h4 {
    margin-left: 3rem;
    line-height: 1rem;
    font-size: 0.9rem;
    padding-top: 0.2rem;
}

.menu-toc div.h1:nth-child(n+2) {
    margin-top: 1rem;
    padding-top: 0.9rem;
    box-shadow: 0px -4px 4px -3px #777;
    -webkit-box-shadow: 0px -4px 4px -3px #777;
}

#toc {
    /*-webkit-box-shadow: -10px 0 4px -9px #777;
    box-shadow: -10px 0 4px -9px #777;*/
    border-left: 0.5px solid #777;
    padding-left: 0.5rem;
    pointer-events: all;
}