:root {
    --white: #e4f5e1;
    --blue: #043763;

    --tonedblue: #254969;
}

* {
    padding: 0;
    scrollbar-color: var(--blue) var(--white);
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--blue);
}

.skip-to-content {
    position: absolute;
    transform: translateY(-100%);
}

.skip-to-content:focus {
    transform: translateY(0%);
}

.skip-button-content {
    opacity: 0;
}

.skip-button-content:focus {
    opacity: 1;
}

.strikethrough {
    text-decoration: underline var(--blue) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
}

hr {
    color: var(--blue);
    margin: 0.5em;
    border-top: double var(--blue);
}

body {
    min-height: 100vh;

    background: #dbf1d7 url(/image-files/backgrounds/bg3.png);
    background-attachment: fixed;
    color: var(--blue);
    font-family: MS PGothic;
}

header {
    background: var(--blue);
    color: var(--white);

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background: var(--blue);
    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: 35em;
    min-height: 28em;
    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 a {
    transition: initial;
    color: white;
    &:after {
        background-color: initial;
        transition: initial;
        color: white;
    }
    &:hover {
        color: white;
    }
}

#ckwr {
    display: block !important;
    margin-bottom: 2em !important;
}

#fujoringout {
  margin: 2em auto !important;
}

#apartment-webring {
    margin: 2em 0 2em 0 !important;
}

#burger-ring {
    margin: 2em 0 0 0 !important;
}

details:first-of-type summary::marker, :is(::-webkit-details-marker) {
    content: "⤵ ";
}

details[open]:first-of-type summary::marker {
    content: "⤴ ";
}

li::marker {
    content: "♡︎ ";
}

summary:focus {
    background-color: var(--blue);
    color: var(--white)
}

a {
    position: relative;
    color: var(--blue);
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: var(--blue);
        transition: width .3s ease-in-out;
        z-index: -1;
    }
    &:hover, &:focus {
        color: white;
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

.animate-remove {
    transition: initial;
    &:after {
        background-color: initial;
        transition: initial;
    }
}

#left-width {
    min-width: 280px;
    max-width: 280px;
}

#gallery-content {
    display: flex;
    flex-direction: initial;
    flex-wrap: wrap;
    padding: 0.6lh 2ch 1lh 2ch;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3lh;
    max-height: 17.67lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
}

#gallery-content img {
    height: auto;
    width: 100px;
    border: 1px solid var(--blue);
    transition: 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

#gallery-content img:hover {
    transform: scale(1.05, 1.05);
}

#content-badges { 
    padding: 0.6lh 2ch 1lh 2ch;
    display: flex;
    flex-direction: initial;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3lh;
    max-height: 20lh;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: auto 0.34em 0.55lh 0.34em;
}

#content-badges > img {
    transition: 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

#content-badges > img:hover {
    transform: scale(1.1, 1.1);
}

.fanlisting {
    border: 2px solid var(--blue);
}

select, input {
    font-family: MS PGothic;
    background-color: var(--white);
    color: var(--blue)
}

.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;
}

#panels {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

ul {
    margin-left: 1em;
}

.header { 
    display: flex;
    justify-content: space-between; 
}

.anti-player {
    background: linear-gradient(180deg,rgba(219, 241, 215, 0.44) 0%, rgba(228, 245, 225, 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: 18lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
}

#content-activity { 
    padding: 0.6lh 2ch 1lh 2ch;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1lh;
    max-height: 15lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
}

#content-buttons {
    flex-direction: initial;
    padding: 1lh 2ch;
    text-align: center;
    overflow: scroll;
}

.img-borders {
    border: 6px double var(--blue);
}

/* lastfm */

.playing {
	position: relative;
	text-align: center;
    font-size: 13px;
    padding-bottom: 5px;
}

.nowplayingcard {
    max-width: min-content;
}

.trackInfo {
    position: relative;
	text-align: center;
    font-size: 13px;
    padding-top: 5px;
}

#trackart {
	height: 150px;
	width: auto;
    border: 6px double var(--blue);
}

.track-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* status cafe */

#statuscafe {
    padding: .5em;
    width: 16em;
    background: var(--white) url(/image-files/backgrounds/bg3.png);
    border: 1px solid var(--blue);
}

#statuscafe-username {
    background-color: var(--white);
}

#statuscafe-content {
    margin: 0 1em 0.5em 1em;
    background-color: var(--white);
}

#nekolink {
    border:2px solid var(--blue)
}

.brokenlink a {
    transition: initial;

    &::after {
        transition: initial;
        background-color: initial;
    }
    &:hover, &:focus {
        color: white;
    }
    &:hover:after, &:focus:after {
        width: 100%;
    }
}

@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;
    }

    #gallery-content {
        max-height: 20lh;
    }

    #gallery-content img {
        height: auto;
        width: 95px;
    }

    .yumeoi-name {
        writing-mode: initial;
        text-align: center;
        margin-top: initial;
        margin-bottom: -2.5em;
    }

    .letter {
        text-combine-upright: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: initial;
    }

    #gallery-content img {
        transition: initial;
    }

    #gallery-content img:hover {
        filter: initial;
        transform: initial;
    }

    #content-badges > img {
        transition: initial;
    }

    #content-badges > img:hover {
        transform: initial;
    }
}

@media (prefers-color-scheme: dark) {

    * {
        padding: 0;
        scrollbar-color: var(--white) var(--tonedblue);
    }

    *::-webkit-scrollbar-track {
        background: var(--tonedblue);
    }

    *::-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: #1b2b3a url(/image-files/backgrounds/bg3.png);
        background-attachment: fixed;
        color: var(--white);
    }

    header {
        background: var(--white);
        color: var(--tonedblue);
    }

    footer {
        background: var(--white);
        color: var(--tonedblue);
    }

    summary:focus {
        background-color: var(--white);
        color: var(--tonedblue)
    }

    a {
        position: relative;
        color: var(--white);
        transition: color .3s ease-in-out;
        z-index: 0;
        &:after {
            content: "";
            display: block;
            position: absolute;
            inset: 0;
            width: 0;
            background-color: var(--white);
            transition: width .3s ease-in-out;
            z-index: -1;
        }
        &:hover, &:focus {
            color: var(--tonedblue);
        }
        &:hover:after, &:focus:after {
            width: 100%;
        }
    }

    .fanlisting {
        border: 2px solid var(--white);
    }

    select, input {
        background-color: var(--tonedblue);
        color: var(--white)
    }

    .anti-player {
        background: linear-gradient(180deg,rgba(37, 73, 105, 0.1) 0%, rgba(37, 73, 105, 1) 50%);
    }

    .img-borders {
        border: 6px double var(--white);
    }

    #trackart {
        border: 6px double var(--white);
    }

    /* status cafe */

    #statuscafe {
        background: var(--tonedblue) url(/image-files/backgrounds/bg3.png);
        border: 1px solid var(--white);
    }

    #statuscafe-username {
        background-color: var(--tonedblue);
    }

    #statuscafe-content {
        background-color: var(--tonedblue);
    }

    #nekolink {
        border:2px solid var(--white);
    }

}