:root {
    --bg: #000000;
    --text: #dfd9d0;
    --accent: #5e5ae7;
    --accent2: #2cb93a;
    --accent3: #4b13e5;
    --border: #999;
    --font-body: 'Crimson Text', Verdana, Arial;
    --font-title: 'UnifrakturCook';
    --font-hand: 'Homemade Apple';
}


body {
    background: var(--bg);
    background-image: url('/assets/images/dither.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    color: var(--text);
    text-shadow: 0px 0px 0px var(--accent);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 1px;
    margin: 0;
    text-align: justify;
    text-justify: inter-character;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    background: var(--accent);
    color: var(--text);
}

b {
    color: var(--accent);
}

strong {
    color: var(--accent);
}

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    margin: 10px 40px;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

#container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 10px;
}

header {
    text-align: center;
    padding: 16px 8px;
}

header img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.site-name {
    margin-top: 10px;
    font: 42px var(--font-title);
    letter-spacing: 3px;
    color: var(--text);
    text-shadow: 5px 0px 10px var(--bg);
}


.slogan {
    font: italic 14px var(--font-body);
    margin-top: 5px;
    color: var(--text);
    text-shadow: 5px 0px 10px var(--bg);
}

nav {
    text-align: center;
    padding: 6px 4px;
    margin-bottom: 10px;
}

nav a {
    text-transform: lowercase;
    letter-spacing: 2px;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    margin-right: 4px;
    font: italic 14px var(--font-body);
    color: var(--text);
    border-radius: 5px;
}

nav a img {
    vertical-align: middle;
    margin-right: 4px;
}

#content {
    display: flex;
    gap: 10px;
    border-top: 1px dotted var(--border);
    border: 0px solid;
    border-radius: 5px;
    padding: 10px;
    padding-top: 20px;
    background: var(--bg);
    border: 0px solid var(--accent);
}

.sidebar {
    width: 160px;
    padding: 4px;
    /* compact padding */
}

.sidebar>div {
    margin-bottom: 8px;
    /* compact spacing */
}

.title {
    font: 18px var(--font-title);
    margin-bottom: 4px;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    background: var(--accent3);
    align-items: center;
    padding: 2px 8px;
    margin-right: 4px;
    color: var(--text);
    border-radius: 5px;
}

.divider {
    height: 0;
    border-bottom: 0px dotted var(--border);
    margin: 6px 0;
}

hr {
    border: 0;
    border-bottom: 2px solid var(--accent);
    margin: 40px;
}

main {
    flex: 1;
    padding: 16px;
    border-left: 1px dotted var(--border);
    border-right: 1px dotted var(--border);
}

.main-title {
    color: var(--accent);
    font: 22px var(--font-title);
    text-transform: lowercase;
    margin: 0 0 6px;
    padding-bottom: 4px;
    letter-spacing: 2px;
    line-height: 18px;
    border-bottom: 1px solid var(--accent);
    border-radius: 5px;
}

footer {
    border-top: 1px dotted var(--border);
    text-align: center;
    padding: 22px 8px;
    font-size: 12px;
}

/* BOOK */
.book {
    width: 100%;
    height: 400px;
    border: 0px solid var(--border);
    margin-top: 10px;
    margin-bottom: 10px;
}

.couch {
    width: 100%;
    height: 150px;
    background: url('/assets/images/couch.png');
    filter: hue-rotate(200deg);
    background-size: cover;
    background-position: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.couch:hover {
    filter: hue-rotate(-70deg) contrast(120%) brightness(120%);
}

/* .couch:active {
    background: url('/assets/images/couch2.png');
    background-size: cover;
    background-position: center;
} */



@media(max-width: 730px) {
    #content {
        flex-direction: column;
        gap: 12px;
    }

    /* Reorder: Main first, then sidebars */
    main {
        order: 1;
        border-left: none;
        border-right: none;
        padding: 8px;
    }

    #content>.sidebar:first-of-type {
        order: 2;
    }

    #content>.sidebar:last-of-type {
        order: 3;
    }

    .sidebar {
        width: auto;
        padding: 4px;
    }

    nav {
        font-size: 12px;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 4px 0;
        width: 100%;
    }
}

/* Music Player Component */
.player-case {
    width: 130px;
    background: var(--bg);
    border: 1px solid #222;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

.player-cd {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: url('/assets/images/dither.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
    margin: 0 auto;
}

.player-btn {
    width: 35px;
    height: 35px;
    background: #0a0a0a;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent2);
    font: inherit;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: #00ff88;
    border-color: #4d4dff;
}

.player-info {
    margin-top: 15px;
    font-size: 0.7rem;
    text-align: center;
}

.player-track {
    color: #4d4dff;
    margin-bottom: 5px;
    text-transform: lowercase;
}

.player-progress {
    width: 100%;
    height: 2px;
    background: #222;
    margin-top: 10px;
    cursor: pointer;
}

.player-fill {
    height: 100%;
    background: #4d4dff;
    width: 0%;
}