:root {
    --white: #fff4db;
    --yellow: #dbb051;
    --yellowtext: #8b6a1d;
    --yellowonyellowtext: #31250b;
}

* {
    padding: 0;
    scrollbar-color: var(--yellow) var(--white);
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--yellow);
}

.skip-to-content {
    position: absolute;
    transform: translateY(-100%);
    opacity: 0;
}

.skip-to-content:focus {
    transform: translateY(0%);
    opacity: 1;
}

.strikethrough {
    text-decoration: underline var(--yellowtext) .08em;
    text-underline-offset: -.25em;
    text-decoration-skip-ink: none;
}

hr {
    color: var(--yellow);
    margin: 0.5em;
    border-top: double var(--yellow);
}

body {
    min-height: 100vh;

    background: #fff4db url(/image-files/backgrounds/bg3-alt.png);
    background-attachment: fixed;
    color: var(--yellowtext);
    font-family: MS PGothic;
}

header {
    background: var(--yellow);
    color: var(--yellowonyellowtext);

    min-height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background: var(--yellow);
    color: var(--yellowonyellowtext);
    
    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;
    z-index: 1;
    position: relative;
}

.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(--yellowtext);
}

ol li::marker {
    content: initial;
}

a {
    position: relative;
    color: #644b14;
    transition: color .3s ease-in-out;
    z-index: 0;
    &:after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        width: 0;
        background-color: #644b14;
        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;
}

.yumeoi-name {
    writing-mode: vertical-rl;
    margin-top: 0.8em;
    font: 1.2em MS PGothic;
}

.letter {
    text-combine-upright: all;
}

#to-do ol {
    padding: 0 1em 1em 1em;
}

#to-do div {
    height: min-content;
}

.empty-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    min-width: 230px;
}

#panels {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#right-content-side {
    text-align: center;
}

#link2 {
    border: 1px solid var(--white);
    padding: 0.4em;
}

ul, ol {
    margin-left: 1em;
}

.header { 
    display: flex;
    justify-content: space-between;
}

.header span {
    background: linear-gradient(180deg,rgba(255, 244, 219, 0) 0%, rgba(255, 244, 219, 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(--yellow);
}

#toptrack {
    border: 1px solid var(--yellow);
    padding: 0.5em;
}

/* spinning vinyl */

.rotating {
    filter: brightness(142%) contrast(56%) hue-rotate(205deg) saturate(238%) sepia(83%) drop-shadow(0px 0px 6px var(--white));
}

@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.rotating:hover {
  -webkit-animation: rotating 1.82s linear infinite;
  -moz-animation: rotating 1.82s linear infinite;
  -ms-animation: rotating 1.82s linear infinite;
  -o-animation: rotating 1.82s linear infinite;
  animation: rotating 1.82s linear infinite;
}
@media (prefers-reduced-motion) {
    .rotating {
        -webkit-animation: initial;
        -moz-animation: initial;
        -ms-animation: initial;
        -o-animation: initial;
        animation: initial;
      }
}


#last-fm {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5em;
}

.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: 8em;
	width: auto;
    border: 2px solid var(--yellow);
}

.track-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* player */

#selector-content { 
    padding: 0.6lh 2ch 1lh 2ch;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1lh;
    max-height: 15lh;
    overflow-y: scroll;
    margin: auto 0.34em 0.55lh 0.34em;
}

.selector {
    overflow-y: scroll;
    border: 1px solid var(--yellow);
    padding: 0.5em;
}

.selector ul {
    line-height: 1.6rem;
}

.selector a {
    text-decoration: underline dotted;
}

#bottom-cont {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

/* now listening */

.now-listening-cont {
    display: flex;
    margin: 2rem 0px 2rem 2rem;
    padding: 15px;
    width: 100%;
    height: 100%;
}

.now-album {
    margin-right: 2rem;
}

.now-album img {
    width: 10rem;
    height: auto;
    border: 5px ridge var(--yellow);
}

.now-info-container, .now-album {
    opacity: 0;
}

.now-info-container {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.now-info {
    flex: 1;
    color: var(--yellowtext);
}

.now-info {
    max-width: 15rem;
}

.now-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 12rem;
    max-width: 12rem;
}

.now-album, .now-info-container div {
    filter: drop-shadow(0px 0px 3px var(--yellow));
}

.now-comment {
    max-width: 18rem;
    min-width: 18rem;
    max-height: 12rem;
    overflow-y: scroll;
}

#player-controls {
    filter: initial;
}

button {
    font-family: MS PGothic;
    padding: 2px;
    margin-top: 3px;
    text-align: center;
    background-color: var(--yellow);
    color: var(--yellowonyellowtext);
    border: 1px solid var(--yellowtext);
    border-radius: 3px;
}

.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;
    }

    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;
    }
    
    #content {
        max-height: 18lh;
    }

    #bottom-cont {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .now-info-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: initial;
    }

    .now-album {
        margin-right: initial;
    }

    .now-info {
        min-width: initial;
        max-width: initial;
    }

    .now-comment {
        max-width: initial;
        min-width: initial;
    }

}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: initial;
    }

}

@media (prefers-color-scheme: dark) {

    * {
        scrollbar-color: var(--white) var(--yellowonyellowtext);
    }

    *::-webkit-scrollbar-track {
        background: var(--yellowonyellowtext);
    }

    *::-webkit-scrollbar-thumb {
        background-color: var(--white);
    }

    .strikethrough {
        text-decoration: underline var(--yellow) .08em;
    }

    hr {
        color: var(--white);
        border-top: double var(--white);
    }

    body {
        background: #41361e url(/image-files/backgrounds/bg3-alt.png);
        color: var(--yellow);
    }

    header {
        background: var(--white);
        color: var(--yellowonyellowtext);
    }

    footer {
        background: var(--white);
        color: var(--yellowonyellowtext);
    }

    li::marker {
        color: var(--yellow);
    }

    a {
        position: relative;
        color: #dbb051;
        transition: color .3s ease-in-out;
        z-index: 0;
        &:after {
            content: "";
            display: block;
            position: absolute;
            inset: 0;
            width: 0;
            background-color: #dbb051;
            transition: width .3s ease-in-out;
            z-index: -1;
        }
        &:hover, &:focus {
            color: black;
        }
        &:hover:after, &:focus:after {
            width: 100%;
        }
    }

    .header span {
        color: var(--white);
        background: linear-gradient(180deg,rgba(49, 37, 11, 0) 0%, rgba(49, 37, 11, 1) 50%);
    }

    .img-borders {
        border: 6px double var(--white);
    }

    #toptrack {
        border: 1px solid var(--white);
        padding: 0.5em;
    }

    /* spinning vinyl */

    .rotating {
        filter: brightness(142%) contrast(56%) hue-rotate(205deg) saturate(238%) sepia(83%) drop-shadow(0px 0px 6px var(--yellowonyellowtext));
    }

    #trackart {
        border: 2px solid var(--white);
    }

    /* player */

    .selector {
        border: 1px solid var(--white);
    }

    /* now listening */

    .now-album img {
        border: 5px ridge var(--yellow);
    }

    .now-info {
        color: var(--yellow);
    }

    .now-album, .now-info-container div {
        filter: drop-shadow(0px 0px 2px var(--yellow));
    }

    .now-comment p {
        color: var(--white);
    }

    button {
        background-color: var(--white);
        color: var(--yellowonyellowtext);
        border: 1px solid var(--yellowtext);
    }

}