:root {
    --white: #fcf6f4;
    --pink: #AC324B;
}

* {
    padding: 0;
    scrollbar-color: var(--pink) var(--white);
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--pink);
}

.skip-to-content {
    position: absolute;
    transform: translateY(-100%);
    opacity: 0;
}

.skip-to-content:focus {
    transform: translateY(0%);
    opacity: 1;
}

.strikethrough {
    text-decoration: underline var(--pink) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
}

hr {
    color: var(--pink);
    margin: 0.5em;
    border-top: double var(--pink);
}

body {
    min-height: 100vh;

    background: #f7e7e2 url(/image-files/backgrounds/bg3.png);
    background-attachment: fixed;
    color: var(--pink);
    font-family: MS PGothic;
}

header {
    background: var(--pink);
    color: var(--white);

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background: var(--pink);
    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;
}

li::marker {
    content: "♡︎ ";
}

ol li::marker {
    content: initial;
}

summary:focus {
    background-color: var(--pink);
    color: var(--white)
}

a {
    position: relative;
    color: #881f34;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #881f34;
        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: 25px;
    min-width: 230px;
    max-width: 230px;
}

.animate-remove {
    transition: initial;
    &:after {
        background-color: initial;
        transition: initial;
    }
    &:hover {
        color: initial;
    }
}

#panels {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

ul {
    margin-left: 1em;
}

.header { 
    display: flex;
    justify-content: space-between;
}

.header span {
    background: linear-gradient(180deg,rgba(252, 246, 244, 0) 0%, rgba(252, 246, 244, 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: 22lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
    text-align: center;
}

#content-gallery img {
    height: 5rem;
}

#content-gallery {
    display: flex;
    gap: 0.3em;
    flex-wrap: wrap;
    overflow: auto;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.img-borders {
    border: 6px double var(--pink);
}

#content img {
    filter: sepia(70%) hue-rotate(-60deg) saturate(100%) brightness(0.9) contrast(90%);
    transition: all 0.2s ease;
    border: 6px double var(--pink);
}

#content img:hover {
    filter: sepia(0%) hue-rotate(0deg) saturate(100%) brightness(1) contrast(100%);
    border: 2px double var(--pink);
}

#s-m-t-tooltip {
    z-index: 938458935;
    background: var(--white);
    color: var(--pink);
    font-size: 1em;
    line-height: 140%;
    text-align: center;
    border: 2px solid var(--pink);
    max-width: 10rem;
    word-wrap: normal;
    padding: 5px;
    display: block;
    margin: 1.4em;
}

@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;
    }

    #content img {
        filter: sepia(30%) hue-rotate(0deg) saturate(100%) brightness(1) contrast(90%);
        transition: initial;
        border: 6px double var(--pink);
    }

    #content img:hover {
        filter: sepia(30%) hue-rotate(0deg) saturate(100%) brightness(1) contrast(90%);
        border: initial;
    }

}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: initial;
    }

    #content img {
        filter: sepia(70%) hue-rotate(-60deg) saturate(100%) brightness(0.9) contrast(90%);
        transition: initial;
    }

    #content img:hover {
        filter: sepia(70%) hue-rotate(-60deg) saturate(100%) brightness(0.9) contrast(90%);
        border: 6px double var(--pink);
    }

}

@media (prefers-color-scheme: dark) {

* {
    padding: 0;
    scrollbar-color: var(--white) var(--pink);
}

*::-webkit-scrollbar-track {
    background: var(--pink);
}

*::-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: #5a202c url(/image-files/backgrounds/bg3.png);
    color: var(--white);
}

header {
    background: var(--white);
    color: var(--pink);
}

footer {
    background: var(--white);
    color: var(--pink);
}

summary:focus {
    background-color: var(--white);
    color: var(--pink)
}

a {
    position: relative;
    color: #fcf6f4;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #fcf6f4;
        transition: width .3s ease-in-out;
        z-index: -1;
    }
    &:hover, &:focus {
        color: #AC324B;
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

#favs {
    background-color: var(--pink);
}

.header span {
    background: linear-gradient(180deg,rgba(172, 50, 75, 0) 0%, rgba(172, 50, 75, 1) 50%);
}

.img-borders {
    border: 6px double var(--white);
}

#content img {
    filter: sepia(70%) hue-rotate(-60deg) saturate(100%) brightness(0.9) contrast(100%);
    border: 6px double var(--white);
}

#content img:hover {
    filter: sepia(0%) hue-rotate(0deg) saturate(100%) brightness(1) contrast(100%);
    border: 2px double var(--white);
}

.empty-sec a {
    background-color: var(--white);
    color: var(--pink);
}

}