:root {
    --white: #fdf3cb;
    --magenta: #a03472;

    --tonedmagenta: #8f4770;
}

* {
    padding: 0;
    scrollbar-color: var(--magenta) var(--white);
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--magenta);
}

.skip-to-content {
    position: absolute;
    transform: translateY(-100%);
    opacity: 0;
}

.skip-to-content:focus {
    transform: translateY(0%);
    opacity: 1;
}

.strikethrough {
    text-decoration: underline var(--magenta) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
}

.strikethrough2 {
    text-decoration: underline var(--magenta) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
    color: #470c2e;
    font-size: 1.3em;
    font-weight: 600;
}

hr {
    color: var(--magenta);
    margin: 0.5em;
    border-top: double var(--magenta);
}

body {
    min-height: 100vh;

    background: #fdf3cb url(/image-files/backgrounds/bg3-alt.png);
    background-attachment: fixed;
    color: var(--magenta);
    font-family: MS PGothic;
}

header {
    background: var(--magenta);
    color: var(--white);

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background: var(--magenta);
    color: var(--white);
    
    margin-top: 3vh;

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

main {
    display: flex;
    gap: 20px;
    margin: 3vh 2vw 0 2vw;
    width: 1300px;
    margin: 2em auto 0 auto;
}

.animate-remove {
    transition: initial;
    &:after {
        background-color: initial;
        transition: initial;
    }
}

.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.9lh;
    display: flex;
    flex-direction: column;
    gap: 1lh;
}


li::marker {
    content: "♡︎ ";
    color: var(--magenta);
}

ol li::marker {
    content: initial;
}

a {
    position: relative;
    color: #a03472;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #a03472;
        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: 6em;
    min-width: 230px;
    max-width: 230px;
}

#panels {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
}

ul, ol {
    margin-left: 1em;
}

.header { 
    display: flex;
    justify-content: space-between;
}

.header span {
    background: linear-gradient(180deg,rgba(253, 243, 203, 0) 0%, rgba(253, 243, 203, 1) 36%);
    margin-left: 3ch;
    position: relative;
    bottom: 2px;
}

.img-borders {
    border: 6px double var(--magenta);
}

#table-content {
    margin: auto 0.34em 0.55lh 0.34em;
    padding: 0.6lh 2ch 1lh 2ch;
    max-height: 25lh;
    overflow: scroll;
}

#table-content a {
    position: relative;
    color: #470c2e;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #470c2e;
        transition: width .3s ease-in-out;
        z-index: -1;
    }
    &:hover, &:focus {
        color: white;
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

#table {
    border: 2px solid var(--magenta);
    background: linear-gradient(0deg,rgba(250, 228, 138, 1) 0%, rgba(253, 243, 203, 1) 100%);
    padding: 0.7em 0 0.7em 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
}

#table a {
    color: #470c2e;
    font-size: 1.3em;
    font-weight: 600;
    text-decoration: underline dotted #20010c;
}

.item {
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--magenta);
    margin-bottom: 1em;
    background-color: #FDF3CB;
    width: 47%;

    box-shadow: 0px 0px 5px 0px rgb(224, 221, 178);
    -webkit-box-shadow: 0px 0px 5px 0px rgb(224, 221, 178);
    -moz-box-shadow: 0px 0px 5px 0px rgb(224, 221, 178);
}

.item span:first-of-type {
    background-color: #FAE48A;
    border-bottom: 1px solid var(--magenta);
    padding: 0.3em;
}

.item span:last-of-type {
    background-color: #FDF3CB;
    color: #20010c;
    font-weight: 600;
    padding: 0.3em;
}

@media only screen and (max-width: 1200px) {

    main {
        flex-direction: column;
        justify-content: initial;
        width: initial;
        margin: 2em 10px 0 10px;
    }

    footer {
        position: initial;
    }

    .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;
    }

}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: initial;
    }

}

@media (prefers-color-scheme: dark) {

    * {
        padding: 0;
        scrollbar-color: var(--white) var(--tonedmagenta);
    }

    *::-webkit-scrollbar-track {
        background: var(--tonedmagenta);
    }

    *::-webkit-scrollbar-thumb {
        background-color: var(--white);
    }

    .strikethrough {
        text-decoration: underline var(--white) .08em;
    }

    .strikethrough2 {
        text-decoration: underline #FDF3CB .08em;
        color: #FAE48A;
    }

    hr {
        color: var(--white);
        border-top: double var(--white);
    }

    body {
        background: #461732 url(/image-files/backgrounds/bg3-alt.png);
        color: var(--white);
    }

    header {
        background: var(--white);
        color: var(--tonedmagenta);
    }

    footer {
        background: var(--white);
        color: var(--tonedmagenta);
    }

    li::marker {
        content: "♡︎ ";
        color: var(--white);
    }

    a {
        position: relative;
        color: #FDF3CB;
        transition: color .3s ease-in-out;
        z-index: 0;
        &:after {
            content: "";
            display: block;
            position: absolute;
            inset: 0;
            width: 0;
            background-color: #FDF3CB;
            transition: width .3s ease-in-out;
            z-index: -1;
        }
        &:hover, &:focus {
            color: var(--tonedmagenta);
        }
        &:hover:after, &:focus:after {
            width: 100%;
        }
    }

    .header span {
        background: linear-gradient(180deg,rgba(143, 71, 112, 0) 0%, rgba(143, 71, 112, 1) 60%);
    }

    .img-borders {
        border: 6px double var(--white);
    }

    #table-content a {
        position: relative;
        color: #FAE48A;
        transition: color .3s ease-in-out;
        z-index: 0;
        &:after {
            content: "";
            display: block;
            position: absolute;
            inset: 0;
            width: 0;
            background-color: #FAE48A;
            transition: width .3s ease-in-out;
            z-index: -1;
        }
        &:hover, &:focus {
            color: var(--tonedmagenta);
        }
        &:hover:after, &:focus:after {
            width: 100%;
        }
    }

    #table {
        border: 2px solid var(--white);
        background: linear-gradient(0deg,rgba(160, 52, 114, 1) 0%, rgb(92, 26, 63) 100%);
    }

    #table a {
        color: #FAE48A;
        text-decoration: underline dotted #FDF3CB;
    }

    .item {
        border: 1px solid var(--white);
        background-color: #a03472;
        box-shadow: 0px 0px 5px 0px #470c2e;
        -webkit-box-shadow: 0px 0px 5px 0px #470c2e;
        -moz-box-shadow: 0px 0px 5px 0px #470c2e;
    }

    .item span:first-of-type {
        background-color: #470c2e;
        border-bottom: 1px solid var(--white);
    }

    .item span:last-of-type {
        background-color: #a03472;
        color: #fdf3cb;
    }

}