/* Reset & Global */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--site-bg);
    /* Dark Background */
    background-attachment: fixed;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    font-size: 12px;
    color: var(--text-main);
    display: flex;
    justify-content: flex-start;
    min-height: 100vh;
}

a {
    color: var(--b1);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Layout Container */
.page-container {
    width: 920px;
    /* Standard old school width */
    margin: 0 auto;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Header */
.site-header {
    display: flex;
    gap: 10px;
    min-height: 80px;
    align-items: flex-end;
}

.splash {
    border-top: 1px solid var(--b1);
    border-left: 1px solid var(--b1);
    border-right: 1px solid var(--b2);
    border-bottom: 1px solid var(--b2);
    box-shadow: inset -1px -1px 0 var(--bs1), -1px 0px 0 var(--bs1), 1px 1px 0 var(--bs2);
    height: 200px;
    width: 200px;
}

.splash img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    content: var(--splash-img);
}

.top-banner {
    background-color: var(--bg-darker);
    height: 200px;
    border-top: 1px solid var(--b1);
    border-right: 1px solid var(--b2);
    border-bottom: 1px solid var(--b2);
    box-shadow: inset -1px -1px 0 var(--bs1), -1px 0px 0 var(--bs1), 1px 1px 0 var(--bs2);
    background-image: var(--banner-img);
    background-size: cover;
}

/* Main Grid */
.main-grid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-box {
    background-color: none;
    border-radius: 0px;
    padding: 3px 5px 5px 3px;
    position: relative;
    border-top: 1px solid var(--b1);
    border-left: 1px solid var(--b1);
    border-right: 1px solid var(--b2);
    border-bottom: 1px solid var(--b2);
    box-shadow: inset -1px -1px 0 var(--bs1), -1px 0px 0 var(--bs1), 1px 1px 0 var(--bs2);
}

#index-box {
    box-shadow: inset -1px -1px 0 var(--bs1), -1px 0px 0 var(--bs1), 4px 4px 0 var(--bs2);
}

.sidebar-header {
    display: flex;
    gap: 2px;
    align-items: stretch;
    margin-bottom: 3px;
}

.sidebar-icon {
    margin: 0;
    border: 2px solid var(--bs1);
    box-shadow: inset 0 1px 0 var(--b1), inset 1px 0px 0 var(--b1), inset -1px -1px 0 var(--bs2);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: var(--b1);
    background-color: var(--bg-darkest);
}

.sidebar-box h3 {
    margin: 0;
    padding: 0 0 0 7px;
    font-size: 11px;
    color: white;
    text-align: left;
    text-transform: uppercase;
    border: 2px solid var(--bs1);
    box-shadow: inset 0 1px 0 var(--b1), inset -1px -1px 0 var(--bs2);
    flex-grow: 1;
    letter-spacing: -4%;
    /* Take remaining space */
    display: flex;
    align-items: center;
    background-color: var(--bg-darkest);
}

.sidebar-content {
    background-color: var(--bg-darkest);
    padding: 10px;
    border-radius: 0px;
    border: 2px solid var(--bs1);
    color: var(--text-main);
    font-size: 10px;
    text-align: center;
}

.sidebar-content>*:last-child {
    margin-bottom: 0;
}

.changelog-list {
    max-height: 255px;
    overflow-y: auto;
}

.sidebar-btn {
    display: block;
    background-color: var(--bg-dark);
    border: 1px solid var(--b1);
    padding: 3px;
    text-align: center;
    margin-top: 5px;
    color: var(--b1);
    font-weight: bold;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Main Content Area */
.content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Ensure it takes available space */
}


/* Tabs */
.main-tabs {
    display: flex;
    gap: 5px;
    padding-left: 15px;
    margin-bottom: -1px;
    margin-top: 10px;
    /* Overlap border */
}

.tab {
    border-bottom: none;
    padding: 5px 15px;
    border-radius: 0px;
    font-weight: bold;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;

    /* User Requested Style */
    border-top: 1px solid var(--b1);
    border-left: 1px solid var(--b1);
    border-right: 1px solid var(--b2);
    box-shadow: inset -1px 0px 0 var(--bs1), -1px 0px 0 var(--bs1), 1px 0px 0 var(--bs2);
    background-color: var(--fg);
    opacity: 0.7;
}

.tab.active {
    background-color: var(--fg);
    color: var(--b1);
    opacity: 1;
    /* Hide bottom border to merge */
    padding-bottom: 6px;
    z-index: 11;
}

/* Main Orange Box */
.main-box {
    /* User Requested Style */
    border-top: 1px solid var(--b1);
    border-left: 1px solid var(--b1);
    border-right: 1px solid var(--b2);
    border-bottom: 1px solid var(--b2);
    box-shadow: inset -1px -1px 0 var(--bs1), -1px 0px 0 var(--bs1), 1px 1px 0 var(--bs2);
    border-radius: 0px;
    background-color: var(--fg);
    padding: 15px;
    height: 600px;
    position: relative;
    z-index: 10;
    color: var(--text-main);
}

/* Inner Content Scroll */

body::-webkit-scrollbar {
    width: 4px;
    /* Width for vertical scrollbar */
}

body::-webkit-scrollbar-track {
    background: var(--bg-dark);
    /* Light grey track */
    box-shadow: inset 0 0 5px var(--bs2);
    /* Optional inner shadow */
}

body::-webkit-scrollbar-thumb {
    background-color: var(--b1);
    /* Blue thumb */
    border-radius: 0px;
    border: 3px solid var(--bs2);
    /* Adds padding/border around the thumb */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--b1);
    /* Darker blue on hover */
}


.scroll-container {
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
    /* Custom Scrollbar for Webkit */
    scrollbar-width: thin;
    scrollbar-color: var(--b1) var(--bg-dark);
}

.scroll-container::-webkit-scrollbar {
    width: 10px;
}

.scroll-container::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border: 1px solid var(--bs2);
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--b1);
    border: 1px solid var(--bs2);
}


/* Content Layouts */
.two-col {
    display: flex;
    gap: 15px;
}

.col-left {
    flex: 1;
}

.col-right {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#col-right-featured-img img {
    width: 100%;
    object-fit: cover;
}

.welcome {
    background-color: var(--bs2);
    padding: 10px;
    border-top: 2px solid var(--bs2);
    border-left: 2px solid var(--bs2);
    border-right: 2px solid var(--bs1);
    border-bottom: 2px solid var(--bs1);
}

.welcome p {
    margin: 0;
    color: var(--b1);
}

/* Paper Note Style */
.paper-note {
    background-color: var(--text-main);
    border: 1px solid var(--bs2);
    padding: 10px;
    position: relative;
    box-shadow: 4px 4px 0 var(--bs2);
    color: var(--bs2);
}

.paper-note::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 10px;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 5px,
            var(--bg-darker) 5px,
            var(--bg-darker) 10px);
    /* Jagged top effect simulation - simplified */
}

.paper-note h3 {
    color: var(--bs2);
    border-bottom: 2px dotted var(--text-muted);
    margin-top: 0;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 14px;
}

.news-item {
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--b1);
    padding-bottom: 5px;
}

.news-date {
    font-weight: bold;
    color: var(--b1);
}

#ontario-line {
    width: 200px;
    margin: 0 auto;
}

.cls-1 {
    fill: var(--bg-dark);
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5px;
}

#ROTM-polaroids {
    width: 70px;
    height: 70px;
    position: absolute;
    transform: translate(130px, 35px);
}

#raven-svg {
    width: 66px;
    height: auto;
    fill: var(--bs2);
}

/* Generic Box inside */
.inner-box {
    background-color: var(--text-main);
    border-radius: 12px;
    color: var(--bs2);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: inset 0px 1px var(--white), inset 0px -1px var(--b2);
    border: 1px solid var(--bs2);
}

.inner-box a {
    color: var(--bs2);
}

.inner-box-v3 {
    background-color: var(--bs1);
    border: 1px solid var(--bs2);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: inset 0px 1px var(--b1), inset 0px -1px var(--b2);
}

.inner-box-v3 h4 {
    margin: 0 0 5px 0;
    color: var(--b1);
}

.inner-box-v2 {
    padding: 15px 10px 10px 10px;
    align-items: center;
    gap: 2px;
    background: var(--bg-darkest);
    border: 1px solid var(--bs2);
    border-radius: 12px;
    box-shadow: inset 0px 1px var(--bs1), inset 0px -1px var(--bs2);
}

.inner-box-v2-flex {
    display: flex;
    gap: 2px;
    position: relative;
}

.inner-box h4 {
    margin: 0 0 5px 0;
    color: var(--b2);
}

.inner-box-v2 h4 {
    margin: 0 0 5px 0;
    color: var(--b1);
}

.inset-box-fonts {
    background-color: var(--text-main);
    border-top: 2px solid var(--bs2);
    border-left: 2px solid var(--bs2);
    border-right: 1px solid var(--bs1);
    border-bottom: 1px solid var(--bs1);
}

.link-88x31 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    image-rendering: pixelated;
}

.link-88x31 h4 {
    width: 100%;
    margin-bottom: 0;
}

.link-88x31 a {
    display: flex;
}

.link-88x31 textarea {
    flex-grow: 1;
}

textarea {
    border: 0px;
    border-radius: 0px;
    margin: 0;
    padding: 0;
    height: 31px;
    max-width: 100%;
    background-color: var(--b2);
    color: var(--b1);
    font-size: 5px;
    resize: none;
    border: 1px solid var(--bs2);
    font-family: 'Mojangles', monospace;
}

/* Footer */
.site-footer {
    text-align: center;
    color: var(--white);
    font-size: 10px;
    text-shadow: 1px 1px 0 var(--bs2);
}

/* Theme Picker */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 0px;
}

.theme-text {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 10%;
    text-transform: uppercase;
    color: var(--b1);
    text-shadow: 1px 1px 0 var(--bs2);
    cursor: default;
}

.theme-box {
    aspect-ratio: 1 / 1;
    background-color: var(--bs2);
    border-top: 1px solid var(--bs2);
    border-left: 1px solid var(--bs2);
    border-right: 1px solid var(--bs1);
    border-bottom: 1px solid var(--bs1);
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
}

.theme-box:hover {
    background-color: var(--bg-dark);
}

.theme-box:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.theme-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Mix Widget */
.mix-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.mix-cover {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--bs2);
    background-color: var(--bs2);
    cursor: pointer;
}

.mix-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.mix-cover:hover .play-overlay {
    display: flex;
}

.play-overlay span {
    color: var(--b1);
    font-size: 24px;
    text-shadow: 2px 2px 0 var(--bs2);
}

.mix-nav {
    background: transparent;
    border: none;
    color: var(--b1);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mix-nav:hover {
    opacity: 1;
}

.mix-nav:active {
    transform: scale(0.9);
    box-shadow: none;
}

/* Utilities from Inline Styles */
.page-title {
    color: white;
    margin-top: 0;
}

.divider {
    border: 0;
    border-top: 2px solid var(--bs2);
    border-bottom: 1px solid var(--bs1);
    margin: 10px 0;
}

.reflection-title {
    margin: 0;
    color: var(--white);
    text-transform: uppercase;
}

.mix-title {
    text-align: center;
    margin-top: 5px;
    color: var(--b1);
    font-size: 9px;
}

.verse-ref {
    color: var(--b1);
    font-weight: bold;
}

.link-unstyled {
    text-decoration: none;
    color: inherit;
}

/* Music Player */
.player-box {
    margin-top: 10px;
    width: 100%;
}

.player-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: linear-gradient(to top, var(--site-bg) 50%, var(--bg-dark));
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-info {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    font-size: 9px;
    color: var(--b1);
    margin-left: 5px;
}

.progress-container {
    width: 100%;
    height: 10px;
    border: 1px solid var(--b2);
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to bottom, white 33%, var(--text-muted) 66%);
    width: 0%;
    transition: width 0.1s linear;
}

.inner-box img {
    max-width: 66px;
}

@font-face {
    font-family: 'Mojangles';
    src: url('/fonts/mojangles.otf.woff2') format('woff2'), url('/fonts/mojangles.otf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FT88-Expanded';
    src: url('/fonts/FT88-Expanded.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.wide-pixel {
    font-family: 'FT88-Expanded', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: -15%;
    -webkit-font-smoothing: antialiased;
}

.pixel {
    font-family: 'Mojangles', monospace;
    font-size: 12px;
    letter-spacing: 4%;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

/* Font Download Section */
.font-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-card {
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.font-info {
    flex-grow: 1;
}

.font-info h4 {
    margin: 0 0 5px 0;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--b2);
}

.font-preview {
    font-size: 12px;
    color: var(--b2);
}

.font-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    mix-blend-mode: multiply;
}

.font-actions {
    margin-block: 5px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.font-description {
    font-size: 10px;
    color: var(--text-muted);
    padding-left: 5px;
}

.download-btn {
    margin-top: 0;
    padding: 5px 20px;
    background-color: var(--bg-darkest);
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    border: 2px solid var(--bs1);
    box-shadow: inset 0 1px 0 var(--b1), inset 1px 0px 0 var(--b1), inset -1px -1px 0 var(--bs2);
}

.unlock-btn {
    border-radius: 100px;
}

.blog-content {
    color: var(--bs2);
    padding: 10px;
    background-color: var(--text-main);
    border-top: 2px solid var(--bs2);
    border-left: 2px solid var(--bs2);
    border-right: 1px solid var(--bs1);
    border-bottom: 1px solid var(--bs1);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 5px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.volume-control:hover .volume-slider-container,
.volume-slider-container:hover {
    width: 55px;
}

#volume-slider {
    width: 50px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-dark);
    border: 1px solid var(--b2);
    outline: none;
    margin-left: 5px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: var(--b1);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: inset 1px 1px 0 var(--white);
}

#volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    background: var(--b1);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: inset 1px 1px 0 var(--white);
}

/* Iteration Slider */
#iterations-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, var(--bs2), var(--bg-dark));
    border: 1px solid var(--bs2);
    outline: none;
    margin: 0px 0px 5px 0px;
}

#iterations-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--b1);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: inset 1px 1px 0 var(--white);
}

#iterations-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--b1);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: inset 1px 1px 0 var(--white);
}

/* Hue Slider */
#hue-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    border: 1px solid var(--b2);
    outline: none;
    border-radius: 0;
}

#hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 14px;
    background: var(--text-main);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

#hue-slider::-moz-range-thumb {
    width: 5px;
    height: 14px;
    background: var(--text-main);
    cursor: pointer;
    border: 1px solid var(--b2);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

/* Pulse Animation */
@keyframes pulse-overlay {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.pulse-active {
    position: relative;
}

.pulse-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    animation: pulse-overlay linear 1s;
    /* Pulse 1 time */
    z-index: 100;
}

.chat {
    border-top: 1px solid var(--bs1);
}