:root {
    --white: #fdefd3;
    --purple: #563c5c;
}

* {
    padding: 0;
    scrollbar-color: var(--purple) var(--white);
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--purple);
}

.skip-to-content {
    position: absolute;
    transform: translateY(-100%);
    opacity: 0;
}

.skip-to-content:focus {
    transform: translateY(0%);
    opacity: 1;
}

.strikethrough {
    text-decoration: underline var(--purple) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
}

hr {
    color: var(--purple);
    margin: 0.5em;
    border-top: double var(--purple);
}

body {
    min-height: 100vh;

    background: #f8f0e1 url(/image-files/backgrounds/bg3-alt.png);
    background-attachment: fixed;
    color: var(--purple);
    font-family: MS PGothic;
}

header {
    background: var(--purple);
    color: var(--white);

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background: var(--purple);
    color: var(--white);
    
    margin-top: 3vh;

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main {
    display: flex;
    gap: 20px;
    margin: 3vh 2vw 0 2vw;
    width: 1300px;
    margin: 2em auto 0 auto;
}

.leftside {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#navigation-box {
    max-height: 30em;
    min-height: 23em;
    min-width: 288px;
}

#nav-content {
    max-height: 33em;
    overflow: hidden scroll;
    padding: 0.6lh 2ch 0lh 2ch;
    margin-bottom: 0.5lh;
    display: flex;
    flex-direction: column;
    gap: 1lh;
}

details:first-of-type summary::marker, :is(::-webkit-details-marker) {
    content: "⤵ ";
}

details[open]:first-of-type summary::marker {
    content: "⤴ ";
}

li::marker {
    content: "♡︎ ";
}

ol li::marker {
    content: initial;
}

summary:focus {
    background-color: var(--purple);
    color: var(--white)
}

a {
    position: relative;
    color: #563c5c;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #563c5c;
        transition: width .3s ease-in-out;
        z-index: -1;
    }
    &:hover, &:focus {
        color: white;
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

#left-width {
    min-width: 280px;
    max-width: 280px;
}

.yumeoi-name {
    writing-mode: vertical-rl;
    margin-top: 0.8em;
    font: 1.2em MS PGothic;
}

.letter {
    text-combine-upright: all;
}

.empty-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    min-width: 230px;
}

#panels {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#panels a, .cams a, .animate-remove {
    transition: initial;
    &:after {
        background-color: initial;
        transition: initial;
    }
}

ul {
    margin-left: 1em;
}

.header { 
    display: flex;
    justify-content: space-between;
}

.header span {
    background: linear-gradient(180deg,rgba(253, 239, 211, 0) 0%, rgba(253, 239, 211, 1) 50%);
    margin-left: 3ch;
    position: relative;
    bottom: 2px;
}

#content { 
    padding: 0.6lh 2ch 1lh 2ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1lh;
    max-height: 15lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
    text-align: center;
}

.img-borders {
    border: 6px double var(--purple);
}

#s-m-t-tooltip {
    z-index: 938458935;
    background: var(--white);
    color: var(--purple);
    font-size: 1em;
    line-height: 140%;
    text-align: center;
    border: 2px solid var(--purple);
    max-width: 7rem;
    word-wrap: normal;
    padding: 5px;
    display: block;
    margin: 1.4em;
}

.cam-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin: 1em;
}

.cam-gallery img, .cams img {
    height: 8em;
    width: auto;
}

@media only screen and (max-width: 1200px) {

    main {
        flex-direction: column;
        justify-content: initial;
        width: initial;
        margin: 2em 10px 0 10px;
    }

    .leftside {
        display: flex;
        flex-direction: initial;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    #navigation-box {
        max-height: 25em;
        min-height: 25em;
        min-width: 288px;
    }

    #nav-content {
        max-height: 23em;
        overflow: hidden scroll;
        text-align: center;
        align-items: center;
    }

    li {
        list-style-position: outside;
    }

    .yumeoi-name {
        writing-mode: initial;
        text-align: center;
        margin-top: initial;
        margin-bottom: -2.5em;
    }

    .letter {
        text-combine-upright: none;
    }

    .empty-sec {
        align-self: center;
    }
    
    #content {
        max-height: 18lh;
    }

}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: initial;
    }
}

@media (prefers-color-scheme: dark) {

* {
    padding: 0;
    scrollbar-color: var(--white) var(--purple);
}

*::-webkit-scrollbar-track {
    background: var(--purple);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--white);
}

.strikethrough {
    text-decoration: underline var(--white) .08em;
}

hr {
    color: var(--white);
    border-top: double var(--white);
}

body {
    background: #5f4d63 url(/image-files/backgrounds/bg3-alt.png);
    color: var(--white);
}

header {
    background: var(--white);
    color: var(--purple);
}

footer {
    background: var(--white);
    color: var(--purple);
}

summary:focus {
    background-color: var(--white);
    color: var(--purple)
}

a {
    position: relative;
    color: #fdefd3;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #fdefd3;
        transition: width .3s ease-in-out;
        z-index: -1;
    }
    &:hover, &:focus {
        color: var(--purple);
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

.header span {
    background: linear-gradient(180deg,rgba(86, 60, 92, 0) 0%, rgba(86, 60, 92, 1) 50%);
}

.img-borders {
    border: 6px double var(--white);
}

#s-m-t-tooltip {
    background: var(--purple);
    color: var(--white);
    border: 2px solid var(--white);
}
    
}