@charset "UTF-8";

/* ==========================================================================
   emjaay.net - millennium layout
   Palette + decor up top (customise freely), structural CSS below.

   NOTE: decorative glyphs below are written as CSS unicode escapes (\xxxx)
   so the whole file stays pure ASCII. That makes them immune to the
   charset/encoding mojibake that mangled the old bullets and arrows.
   ========================================================================== */

:root {
    --main-color: #6a4fbf;          /* deep medium purple background */
    --light-color: #e5c8ff;         /* neon-soft lavender for links */
    --mediumlight-color: #f0d3ff;   /* brighter hover lavender */
    --medium-color: #8d6de0;        /* sidebar boxes purple */
    --dark-color: #1a0f2b;          /* almost-black plum for text/borders */

    --shadow: 3px 3px 0 rgba(26, 15, 43, 0.45);   /* crisp retro drop shadow */
    --shadow-sm: 2px 2px 0 rgba(26, 15, 43, 0.35);
}

/* "Main color"       = background & scrollbar.
   "Light-color"      = links.
   "Mediumlight-color"= links on hover.
   "Medium-color"     = background of sidebar boxes.
   "Dark-color"       = text, borders, and scrollbar background. */

ul {
    list-style-type: "\2726  ";   /* U+2726 star + space */
}
/* Bullet point in lists. */

i,
em {
    font-family: 'WindSong', 'Vivaldi', cursive;
    font-size: 1.5em;
}
/* Makes italics cursive and a bit bigger so they stay legible. Delete for normal italics. */

h2::before,
h3::before {
    content: "\204E*\2606  ";   /* U+204E low asterisk, *, U+2606 white star, space */
}

h3::after {
    content: " \2606*\204E";     /* space, U+2606 white star, *, U+204E low asterisk */
}

/* Centred layout (comment these four out to pin everything to the left) */
#header,
.container,
.footer,
h1 {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Structural layout
   ========================================================================== */

*,
html,
body {
    cursor: crosshair;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--dark-color);
}

body {
    background-color: var(--main-color);
    font-family: 'MS UI Gothic', Arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 12px 8px 24px;
}

::selection {
    background: var(--dark-color);
    color: var(--light-color);
}

h1 {
    letter-spacing: 15px;
    font-size: 33pt;
    width: 700px;
    max-width: 100%;
    padding: 5px;
    margin-top: -15px;
    margin-bottom: -12px;
}

h2 {
    letter-spacing: 10px;
}

h3 {
    margin: 0;
    text-shadow: 0 1px 0 rgba(26, 15, 43, 0.25);   /* subtle emboss for crispness */
}

u {
    text-decoration: dotted underline 1px;
}

a {
    font-weight: bold;
    color: var(--light-color);
    text-decoration: dotted 1px underline;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:focus,
a:hover {
    color: var(--mediumlight-color);
    font-size: unset;
    text-shadow: 0 0 6px rgba(240, 211, 255, 0.7);   /* soft neon glow on hover */
}

a:focus-visible {
    outline: 1px dotted var(--light-color);
    outline-offset: 2px;
}

ul {
    text-align: left;
    padding-left: 15px;
    padding-right: 0;
    margin: 0;
    line-height: 1.2;
}

#header {
    width: 700px;
    max-width: 100%;
}

#header img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px var(--dark-color) solid;
    box-shadow: var(--shadow);
}

.container {
    width: 700px;
    max-width: 100%;
    display: flex;
    border: 1px var(--dark-color) solid;
    margin-top: 0;
    box-shadow: var(--shadow);
}

.sidebar {
    width: 175px;
    padding: 10px;
    gap: 10px;
    display: flex;
    font-size: small;
    flex-direction: column;
    align-items: center;
}

.sidebar img {
    max-width: 100%;
}

.sidebar p {
    margin-top: 2px;
    margin-bottom: 2px;
}

.sidebarbox {
    width: 150px;
    padding: 10px;
    border: 1px var(--dark-color) solid;
    background-color: var(--medium-color);
    max-height: 250px;
    overflow: auto;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.main {
    width: 350px;
    padding: 10px;
    border-left: 1px solid var(--dark-color);
    border-right: 1px solid var(--dark-color);
    text-align: justify;
    line-height: 1;
}

.main a::after {
    content: "\00BB";   /* U+00BB right guillemet */
    font-size: smaller;
    font-weight: normal;
}

.main a::before {
    content: "\00AB";   /* U+00AB left guillemet */
    font-size: smaller;
    font-weight: normal;
}

.footer {
    width: 700px;
    max-width: 100%;
    text-align: center;
    font-size: smaller;
}

#profilepic {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    outline: var(--dark-color) 1px solid;
    outline-offset: 6px;
}

.music {
    font-size: 9pt;
    overflow: hidden;
}

.marquee span {
    width: max-content;
    display: inline-block;
    animation: marquee 10s linear infinite;
    padding-left: 100%;
}

.marquee span:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ==========================================================================
   Calendar
   ========================================================================== */

.calendar-container {
    background-color: var(--medium-color);
    width: 150px;
    border-radius: 2px;
    border: 1px var(--dark-color) solid;
    box-shadow: var(--shadow-sm);
}

.calendar-container header {
    border-bottom: 1px var(--dark-color) solid;
    padding: 2px;
}

.calendar-container > header > p {
    margin: 0;
    text-align: center;
}

header .calendar-current-date {
    font-weight: bold;
    font-size: 1rem;
}

.calendar-body {
    padding: 5px;
}

.calendar-body ul {
    list-style: none;
    flex-wrap: wrap;
    display: flex;
    text-align: center;
    border: 1px var(--dark-color) solid;
    margin-top: 0;
    padding-left: 0;
}

/* weekday header row sits directly above the dates - merge the shared border */
.calendar-body .calendar-weekdays {
    border-bottom: none;
    margin-bottom: 0;
}

.calendar-body .calendar-dates {
    margin-bottom: 0;
}

.calendar-body li {
    width: calc(100% / 7);
    font-size: 0.8rem;
    color: var(--dark-color);
}

.calendar-body .calendar-weekdays li {
    cursor: default;
    font-weight: 700;
}

.calendar-body .calendar-dates li {
    margin-bottom: 3px;
    margin-top: 3px;
}

.calendar-dates li.inactive {
    color: rgba(26, 15, 43, 0.35);   /* faded, but tied to the palette */
}

.calendar-dates li.active {
    font-weight: bolder;
    color: var(--light-color);
    text-decoration: underline wavy 1px;
}

/* ==========================================================================
   Responsive - desktop is untouched; narrow screens stack cleanly
   ========================================================================== */

@media (max-width: 720px) {
    .container {
        flex-direction: column;
    }

    .sidebar,
    .main {
        width: 100%;
    }

    .main {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--dark-color);
        border-bottom: 1px solid var(--dark-color);
    }

    .sidebarbox,
    .calendar-container,
    .music {
        width: 100%;
        max-width: 320px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .marquee span {
        animation: none;
        padding-left: 0;
    }
}
