/* Global Styles */
body {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    cursor: none;
    background: url("images/pastel-purple-checkerboard-tartan-gingham-plaid-checkered-pattern-background-vector.png") repeat-y;
    -webkit-animation: scrolling 30s linear infinite;
    animation: scrolling 30s linear infinite;
    background-color: #ffc4db;
    overflow: hidden;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
}

@keyframes scrolling {
    from { background-position: 0 0; }
    to { background-position: 0 100vh; }
}

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;
}

/* Fonts */
@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;
}

/* Layout */
#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;
}
#navbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 210px;
    height: 100%;
    background-color: #756AB6;
    text-align: center;
    line-height: 60px;
    overflow-y: auto;
    z-index: -1;
}
#navbar a {
    font-family: porky;
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
}
#right-sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 210px;
    height: 100%;
    background-color: #756AB6;
    text-align: center;
    line-height: 60px;
    overflow-y: auto;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#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: auto;
    max-height: 90vh;
    z-index: 1;
    text-align: center;
    line-height: 60px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 20px;
}
::-webkit-scrollbar-track {
    background: linear-gradient(to right, #756AB6, #AC87C5, #E0AED0);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #d9bff7;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #756AB6;
}

/* GIF Button */
.gif-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1001;
}
.gif-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    padding: 2px;
    margin-bottom: 5px;
    border-radius: 3px;
}
.animated-gif {
    width: 88px;
    height: 31px;
}

/* Music Player */
.player {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 250px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    font-family: 'porky', sans-serif;
}
.player .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.player .track-art {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-bottom: 20px;
}
.player .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.player .top-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}
.player .top-buttons > div {
    margin: 0 10px;
}
.player .random-track {
    margin-top: 10px;
    text-align: center;
}
.player .buttons i {
    font-size: 24px;
}
.player .playpause-track i {
    font-size: 48px;
}
.player .random-track, .player .repeat-track {
    opacity: 0.8;
    transition: opacity .2s;
}
.player .random-track:hover, .player .repeat-track:hover {
    opacity: 1.0;
}
.player .slider_container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.player .seek_slider, .player .volume_slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 5px;
    background: #83A9FF;
    transition: opacity .2s;
}
.player .seek_slider::-webkit-slider-thumb, .player .volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774FF;
    cursor: grab;
    border-radius: 100%;
}
.player .seek_slider {
    width: 60%;
}
.player .volume_slider {
    width: 30%;
}
.player .current-time, .player .total-duration {
    padding: 10px;
}
.player i.fa-volume-down, .player i.fa-volume-up {
    padding: 10px;
}
.player .collapse-arrow {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}
.player .collapse-arrow i {
    font-size: 2em;
    color: #5f34a4;
}
.player.collapsed .details,
.player.collapsed .slider_container,
.player.collapsed .buttons,
.player.collapsed .repeat-track {
    display: none !important;
}
.player.collapsed .track-art {
    display: block !important;
    margin-bottom: 0;
}
.player.collapsed .collapse-arrow {
    display: flex !important;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}
.player.collapsed .collapse-arrow i {
    transform: rotate(180deg);
}

/* Windows XP/Classic Explorer Window 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-window.minimized {
    min-height: 32px;
    height: 32px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.winxp-window.minimized .winxp-toolbar,
.winxp-window.minimized .winxp-content {
    display: 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;
}

/* Guestbook Specific Styles */
.guestbook-window {
    display: none; /* Hidden by default */
    top: calc(100vh - 880px);
    left: 20px;
}
#guestbook-iframe {
    border: none;
    width: 100%;
    height: 600px;
    background: #fff;
}

/* Custom Cursor */
.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 {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 0; transform: scale(0.3); }
}
.custom-cursor.clicking {
    transform: scale(0.8);
    filter: brightness(0.8);
}
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);
}

/* Hide Default Cursor */
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;
}

/* Responsive */
@media screen and (max-width: 600px) {
    #main-content {
        margin-left: 100px;
        margin-right: 100px;
        margin-top: 40px;
    }
    .winxp-window {
        min-width: 90vw;
        max-width: 98vw;
        left: 1vw;
        transform: none;
    }
    .winxp-content {
        padding: 10px 4vw;
    }
}
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .custom-cursor,
    .cursor-trail {
        display: none;
    }
}

/* Blinkie Collection Styles */
.blinkie-container {
    padding: 20px;
    text-align: center;
}

.blinkie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

.blinkie-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #a975ed;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blinkie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(169, 117, 237, 0.3);
}

.blinkie-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.blinkie-label {
    font-family: 'porky', sans-serif;
    font-size: 14px;
    color: #5f34a4;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

/* Responsive adjustments for blinkies */
@media screen and (max-width: 768px) {
    .blinkie-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .blinkie-item {
        padding: 10px;
    }
    
    .blinkie-label {
        font-size: 12px;
    }
}

/* Stamp Collection Styles */
.stamp-container {
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 0 10px;
}

.stamp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #a975ed;
    border-radius: 10px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stamp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(169, 117, 237, 0.3);
}

.stamp-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 8px;
    max-height: 80px;
    object-fit: cover;
}

.stamp-label {
    font-family: 'porky', sans-serif;
    font-size: 12px;
    color: #5f34a4;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

/* Responsive adjustments for stamps */
@media screen and (max-width: 768px) {
    .stamp-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .stamp-item {
        padding: 8px;
    }
    
    .stamp-label {
        font-size: 10px;
    }
    
    .stamp-image {
        max-height: 60px;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 1.2em;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), color 0.18s;
    padding: 8px 10px;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    height: 28px;
    width: 28px;
    min-width: 28px;
    margin-right: 4px;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1);
}

.sidebar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-link:hover, .sidebar-link:focus {
    transform: scale(1.11);
    color: #fff7b2;
    z-index: 2;
}

.sidebar-link:hover .sidebar-icon, .sidebar-link:focus .sidebar-icon {
    transform: scale(1.22);
}

  