@font-face {
    font-family: 'porky';
    src: url('font/PORKYS_.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'crystal universe';
    src: url('font/crystal_universe/CrystalUniverse-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'star7';
    src: url('font/STAR7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    background-color: #f4f1e6;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    cursor: none; /* Hide the default cursor */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to top, #5f34a4, #5f34a4, #9241fc, #9241fc);
    background-size: 100% 4px;
    background-repeat: repeat-y;
    opacity: 0.23;
    z-index: 1000;
}

/* Slider styles (copied from style.css) */
.seek-slider, .volume-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 5px;
    background: #83A9FF;
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
    margin: 0 8px;
}

.seek-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px #333;
    transition: background 0.2s;
}

.seek-slider::-moz-range-thumb,
.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px #333;
    transition: background 0.2s;
}

.seek-slider::-ms-thumb,
.volume-slider::-ms-thumb {
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px #333;
    transition: background 0.2s;
}

.seek-slider:focus, .volume-slider:focus {
    outline: none;
    background: #a3c0ff;
}

.seek-slider {
    width: 60%;
    max-width: 150px;
}

.volume-slider {
    width: 150px;
    max-width: 200px;
}

.current-time,
.total-duration {
    padding: 10px;
}

.genre-title {
    font-family: 'star7', sans-serif;
    color: #333;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: normal;
    letter-spacing: normal;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

#title1 {
    position: fixed;
    font-family: star7;
    font-size: 100px;
    color:#ffc4db;
    z-index: 4;
    top: 11%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#title2 {
    position: fixed;
    font-family: star7;
    font-size: 100px;
    color:#0b1627;
    z-index: 6;
    top: 20%;
    left:48%;
    transform: translate(-50%, -50%);
}

#header {
    position: fixed;
    z-index: -3;
    top: 0;
    left: 210px;
    right: 210px;
    height: 200px;
    background-color: #756AB6;
    color: white;
    text-align: center;
    line-height: 60px;
}

#navbar {
    left: 0;
    width: 230px;
    height: 100%;
    background-color: #756AB6;
    text-align: center;
    line-height: 60px;
    position: fixed;
    height: 100%;
    bottom: 0;
    width: 210px;
    overflow-y: auto;
    background-color: #756AB6;
    z-index: -1;
}
#navbar a {
    font-family: porky;
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
}

#right-sidebar {
    position: fixed;
    right: 0;
    width: 210px;
    height: 100%;
    background-color: #756AB6;
    text-align: center;
    line-height: 60px;
    bottom: 0;
    overflow-y: auto;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#rightbar a {
    font-family: porky;
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
}

#main-content {
    font-family: porky;
    position: fixed;
    top: 275px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(75% - 100px);
    height: calc(73% - 100px);
    background-color: #d9bff7;
    border: 5px solid #d9bff7;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 90vh;
    z-index: 1;
    text-align: center;
    line-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.genre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    margin: 0;
    justify-items: stretch;
}

@media (max-width: 900px) {
    #main-content {
        width: 100vw;
        left: 0;
        transform: none;
    }
    .genre-grid {
        /* max-width: 100vw; */
    }
}

@media (max-width: 700px) {
    .genre-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.genre-box {
    width: 100%;
    min-width: 0;
    min-height: 320px;
    background-color: #282828;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: min-height 0.4s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 400px) {
    .genre-title {
        font-size: 1.1em;
    }
}

.genre-cover {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 15px auto;
    display: block;
}

.music-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    margin-top: 0;
    display: block;
}

.genre-box.expanded .music-list {
    max-height: 500px;
    margin-top: 15px;
}

.song {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.song-title {
    flex-grow: 1;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
}

.play-pause-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 10px;
}

.seek-slider {
    width: 150px;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.arrow-container {
    align-self: center;
    cursor: pointer;
    margin-top: auto;
    padding-top: 10px;
}

.arrow-container i {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.genre-box.expanded .arrow-container i {
    transform: rotate(180deg);
}

/* Remove .draggable and .container styles */
.draggable, .container { display: none !important; }

/* width */
::-webkit-scrollbar {
    width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
    background: linear-gradient(to right, #756AB6, #AC87C5, #E0AED0);
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #d9bff7; 
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #756AB6; 
}

/* Windows XP/Classic Explorer Message Board Styles */
.winxp-window {
    position: fixed;
    top: calc(100vh - 340px);
    left: 20px;
    min-width: 420px;
    max-width: 600px;
    min-height: 320px;
    background: #fff;
    border: 2.5px solid #a975ed;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(60,60,120,0.25), 0 1.5px 0 #a975ed;
    z-index: 2000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: none;
}

.winxp-title-bar {
    background: linear-gradient(90deg, #aeb0ff 0%, #a975ed 100%);
    color: #fff;
    padding: 0 8px;
    height: 32px;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #f2b9ff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    user-select: none;
    cursor: none;
    position: relative;
}
.winxp-title-label {
    flex: 1;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    margin-left: 6px;
}
.winxp-title-counter {
    font-size: 0.95em;
    margin-right: 12px;
    color: #e0f0ff;
}
.winxp-btn {
    background: #e0e0e0;
    border: 1.5px solid #b0b0b0;
    border-radius: 3px;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border 0.15s;
    cursor: pointer;
    box-shadow: 0 1px #fff inset;
}
.winxp-btn:hover {
    background: #f7c7c7;
    border-color: #e06a6a;
    color: #a00;
}
.winxp-btn.winxp-min:hover,
.winxp-btn.winxp-max:hover {
    background: #d2f7c7;
    border-color: #6ae06a;
    color: #0a0;
}

.winxp-toolbar {
    background: linear-gradient(180deg, #f5f5f5 80%, #e0e0e0 100%);
    border-bottom: 1.5px solid #b0b0b0;
    padding: 5px 10px 5px 8px;
    display: flex;
    align-items: center;
    height: 36px;
}
.winxp-nav-btn {
    background: linear-gradient(180deg, #C1D9F8 60%, #A9C8F4 100%);
    border: 1.5px solid #7E9AC9;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    font-size: 1.2em;
    color: #24518A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px #fff inset;
    transition: background 0.15s, border 0.15s;
}
.winxp-nav-btn:hover {
    background: #DCE8FA;
    border-color: #A9C8F4;
    color: #24518A;
}
.winxp-address-bar {
    flex: 1;
    margin-left: 10px;
    padding: 4px 10px;
    border: 1.5px solid #b0b0b0;
    border-radius: 5px;
    background: #fff;
    font-size: 1em;
    color: #333;
    outline: none;
    min-width: 0;
}
.winxp-content {
    background: #fff;
    padding: 24px 24px 18px 24px;
    min-height: 180px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 1.08em;
    color: #222;
    box-shadow: 0 1px 0 #e0e0e0 inset;
}

/* Minimized state */
.winxp-window.minimized .winxp-toolbar,
.winxp-window.minimized .winxp-content {
    display: none;
}

.winxp-window.minimized {
    min-height: 32px;
    height: 32px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 700px) {
    .winxp-window {
        min-width: 90vw;
        max-width: 98vw;
        left: 1vw;
        transform: none;
    }
    .winxp-content {
        padding: 10px 4vw 10px 4vw;
    }
}

/* Custom Cursor and Trail Styles */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    background: url('images/flyingface.gif') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #4a90e2 0%, #4a90e2 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
    animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Hover effects for interactive elements */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
input:hover ~ .custom-cursor,
.genre-box:hover ~ .custom-cursor,
.player:hover ~ .custom-cursor,
.winxp-window:hover ~ .custom-cursor {
    transform: scale(1.5);
    background: url('images/flyingface.gif') no-repeat center center;
    background-size: contain;
}

/* Click effect */
.custom-cursor.clicking {
    transform: scale(0.8);
    filter: brightness(0.8);
}

/* Hide cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .custom-cursor,
    .cursor-trail {
        display: none;
    }
}

.slide-counter {
    text-align: center;
    font-size: 1.1em;
    color: #3a6ea5;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 8px;
    background: linear-gradient(90deg, #e8f4fd 0%, #f0f8ff 100%);
    border-radius: 6px;
    border: 1px solid #b8d4e8;
}

.slide-name {
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
    margin-right: 10px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #b0b0b0;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

/* Hide default cursor on all clickable elements */
a, button, input, .genre-box, .player, .winxp-window,
.playpause-track, .prev-track, .next-track, .repeat-track,
.seek_slider, .volume_slider, .collapse-arrow,
.winxp-btn, .winxp-nav-btn, .winxp-address-bar,
.play-pause-btn, .seek-slider, .volume-slider, .arrow-container {
    cursor: none !important;
}

/* Ensure media player elements also hide cursor */
.player * {
    cursor: none !important;
}

/* Ensure genre box elements hide cursor */
.genre-box * {
    cursor: none !important;
}

/* Guestbook window positioning */
.guestbook-window {
    display: none; /* Hidden by default */
    top: calc(100vh - 880px); /* Position above the message board */
    left: 20px;
}

/* Ensure guestbook iframe styling */
#guestbook-iframe {
    border: none;
    width: 100%;
    height: 600px;
    background: #fff;
}
