/* ================================================
   WIN98 WEBPAGE STYLESHEET - inspired by numbpilled
   ================================================
   
   TIP FOR BEGINNERS:
   - Colors are defined at the top in :root variables
   - Change colors by modifying the hex codes (like #c0c0c0)
   - To make changes, just update the value after each variable
   - Save this file and refresh your browser to see changes
   
   ================================================= */

:root {
    /* =============== SYSTEM COLOR PALETTE =============== */
    /* colors don't match the names lol - will update */
    --win-bg: #ffb128;
    --win-light: #f6b26b;
    --win-dark: #b50116;
    --win-darker: #3c1006;
    --win-text: #13341e;
    --win-blue: #fd8802;
    --win-teal: #008080;
    --win-green: #38761d;
    
    /* TIP: same note as above */
    --pastel-blue: #8abc40;
    --pastel-pink: #ea9999;
    --pastel-green: #bcd325;
    --pastel-yellow: #f1c232;
    --pastel-purple: #8a2b13;
    
    /* =============== FONT SETTINGS =============== */
    --pixel-font: 'MS Sans Serif', 'Arial', sans-serif;
    --terminal-font: 'Courier New', monospace;
}

/* =============== SYSTEM DEFAULTS =============== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* TIP: Makes images look pixelated like old games */
    image-rendering: pixelated;
    cursor: url('/images/limon.cur'), auto;
}

/* 
   CUSTOM CURSOR PLACEHOLDER
   ========================
   TIP: To add a custom cursor, replace the URL below with your own cursor image
   Format should be: url('path/to/your/cursor.cur'), auto
   
   Example: cursor: url('/images/my-cursor.cur'), auto !important;
   You can use .cur or .png files (recommended size: 32x32 or 16x16 pixels)
*/
.cursor-placeholder {
    /* Replace the data URI below with your cursor URL */
    cursor: url('limon.cur'), auto;
}

body {
    background-color: var(--pastel-blue);
    /* TIP: Background pattern - change the URL to use your own pattern */
    background-image: url(none);
    color: var(--win-text);
    font-family: var(--pixel-font);
    font-size: 12px;
    padding: 15px;
    position: relative;
    min-height: 100vh;
}

/* Background decoration overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/api/placeholder/30/30');
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* =============== WINDOW STYLES =============== */
/* TIP: All windows share these base styles */
.window {
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    /* TIP: When minimized, windows hide but stay in DOM */
    transition: opacity 0.2s ease;
}

/* TIP: Hidden/minimized window state */
.window.hidden {
    display: none;
}

.window-inner {
    border: 2px solid var(--win-bg);
    border-right-color: var(--win-dark);
    border-bottom-color: var(--win-dark);
    padding: 2px;
}

/* Window corner decorations (the little PNG images) */
.window-decoration {
    position: absolute;
    width: 26px;
    height: 26px;
    background-image: url('/api/placeholder/26/26');
    z-index: 10;
}


.window-decoration.bottom-left {
    bottom: -10px;
    left: -8px;
    transform: rotate(-30deg);
}



.title-bar {
    /* TIP: Title bar gradient - change colors to customize */
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-purple));
    color: var(--win-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 3px 3px 6px;
    font-weight: bold;
    /* Make title bar clickable for dragging */
    cursor: move;
}

.title-bar.active {
    background: linear-gradient(90deg, var(--win-blue), var(--pastel-purple));
    color: var(--win-light);
}

.title-bar-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.title-text {
    display: flex;
    align-items: center;
}

.window-controls {
    display: flex;
}

.window-button {
    width: 16px;
    height: 14px;
    background-color: var(--win-bg);
    border: 1px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    margin-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-family: sans-serif;
    /* Buttons become "pressed" when clicked */
}

.window-button:active {
    border: 1px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
}

/* Hover effect for window buttons */
.window-button:hover {
    background-color: var(--pastel-blue);
}

.window-content {
    background-color: var(--win-bg);
    padding: 8px;
    overflow: auto;
}

/* Floating windows sit on top */
.floating-window {
    position: absolute;
    width: 200px;
    top: 50px;
    right: 50px;
    z-index: 100;
}
.floating-window2 {
    position: absolute;
    width: 500px;
    top: 120px;
    right: 70px;
    z-index: 10;
}
.floating-window3 {
    position: absolute;
    width: 420px;
    top: 420px;
    right: 420px;
    z-index: 20;
}

/* =============== TASKBAR =============== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--win-bg);
    border-top: 2px solid var(--win-light);
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 1000;
}

.taskbar::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--win-dark);
}

.start-button {
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    padding: 2px 8px;
    margin-right: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.start-button:active {
    border: 2px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
}

.start-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-buttons {
    display: flex;
    flex: 1;
}

.taskbar-button {
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    padding: 2px 8px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* TIP: Active window button looks "pressed down" */
.taskbar-button.active {
    border: 2px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
    background-color: var(--win-bg);
}

.taskbar-button:hover {
    background-color: var(--pastel-blue);
}

.taskbar-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.taskbar-tray-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-time {
    background-color: var(--win-bg);
    border: 2px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
    padding: 2px 8px;
    margin-left: 4px;
}

/* =============== START MENU =============== */
.start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 220px;
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    /* TIP: Smooth fade-in when showing */
    animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.start-menu-banner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(180deg, var(--pastel-blue), var(--win-blue));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.start-menu-banner-text {
    color: var(--win-light);
    transform: rotate(-90deg);
    white-space: nowrap;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
}

.start-menu-items {
    margin-left: 30px;
    padding: 2px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 4px 5px;
    cursor: pointer;
}

.start-menu-item:hover {
    background-color: var(--win-blue);
    color: var(--win-light);
}

.start-menu-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.start-menu-divider {
    height: 1px;
    background-color: var(--win-dark);
    margin: 3px 0;
}

/* =============== MENU BAR =============== */
.menu-bar {
    display: flex;
    background-color: var(--win-bg);
    border-bottom: 1px solid var(--win-dark);
    padding: 2px;
}

.menu-item {
    padding: 2px 10px;
    margin-right: 1px;
    cursor: pointer;
    position: relative;
}

.menu-item:hover {
    background-color: var(--win-blue);
    color: var(--win-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    min-width: 150px;
    display: none;
}

.dropdown-item {
    padding: 4px 10px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--win-blue);
    color: var(--win-light);
}

.dropdown-item img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--win-dark);
    margin: 3px 0;
}

/* =============== DESKTOP ICONS =============== */
.desktop {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-gap: 10px;
    padding: 10px;
    margin-bottom: 40px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    cursor: pointer;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

.desktop-icon-label {
    background-color: transparent;
    padding: 2px;
    width: 100%;
}

.desktop-icon:hover .desktop-icon-label {
    background-color: var(--win-blue);
    color: var(--win-light);
}

/* =============== CONTENT LAYOUTS =============== */
.content-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-gap: 10px;
    min-height: 300px;
    position: relative;
}

.sidebar {
    background-color: var(--pastel-yellow);
    border: 1px solid var(--win-dark);
    padding: 10px;
    overflow-y: auto;
    position: relative;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.content-column {
    background-color: var(--win-light);
    border: 1px solid var(--win-dark);
    padding: 10px;
    overflow-y: auto;
    position: relative;
}

.statusbar {
    background-color: var(--win-bg);
    border-top: 1px solid var(--win-dark);
    padding: 3px 8px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.statusbar-section {
    display: flex;
    align-items: center;
}

.statusbar-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* =============== BUTTONS & FORM ELEMENTS =============== */
.button {
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    padding: 4px 10px;
    margin: 5px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.button:active {
    border: 2px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
    padding: 5px 9px 3px 11px;
}

.button img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.checkbox {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.checkbox-box {
    width: 13px;
    height: 13px;
    background-color: var(--win-light);
    border: 1px solid var(--win-darker);
    margin-right: 5px;
}

.checkbox-box.checked {
    background-image: url('/api/placeholder/11/11');
}

.radio {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.radio-button {
    width: 12px;
    height: 12px;
    background-color: var(--win-light);
    border: 1px solid var(--win-darker);
    border-radius: 50%;
    margin-right: 5px;
}

.radio-button.selected {
    background-image: url('/api/placeholder/10/10');
    background-position: center;
}

/* =============== SCROLLBOX =============== */
.scrollbox {
    height: 100px;
    overflow-y: auto;
    background-color: var(--win-light);
    border: 2px solid var(--win-dark);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
    padding: 5px;
    margin: 5px 0;
    position: relative;
}

.scrollbox-content {
    padding-right: 10px;
    position: relative;
    z-index: 2;
}

/* =============== TABS =============== */
.tabs {
    display: flex;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.tab {
    background-color: var(--pastel-green);
    border: 2px solid var(--win-light);
    border-bottom: none;
    border-right-color: var(--win-darker);
    padding: 3px 10px;
    margin-right: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tab img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.tab.active {
    background-color: var(--pastel-pink);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    background-color: var(--pastel-pink);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    padding: 10px;
    margin-top: -2px;
    position: relative;
}

.tab-content.active {
    display: block;
}

/* =============== IFRAME PLACEHOLDER =============== */
/* TIP: Styling for the iframe placeholder area */
.iframe-placeholder {
    background-color: var(--win-light);
    border: 2px solid var(--win-dark);
    height: 150px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-message {
    text-align: center;
    color: var(--win-dark);
    font-style: italic;
    padding: 10px;
}

/* =============== VISITOR COUNTER =============== */
.counter {
    background-color: var(--win-bg);
    border: 2px solid var(--win-darker);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
    padding: 5px;
    text-align: center;
    font-family: var(--terminal-font);
    margin: 10px 0;
    position: relative;
}

.hit-counter {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.counter-digit {
    width: 12px;
    height: 20px;
    background-color: var(--win-light);
    border: 1px solid var(--win-dark);
    margin: 0 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--terminal-font);
    font-weight: bold;
}

/* =============== PROGRESS BAR =============== */
.progress-container {
    border: 1px solid var(--win-dark);
    background-color: var(--win-light);
    height: 15px;
    margin: 10px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 75%;
    background-color: var(--pastel-blue);
    /* TIP: Can add pattern via background-image if desired */
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    text-shadow: 1px 1px 0 var(--win-light);
}

/* =============== UNDER CONSTRUCTION BANNER =============== */
.construction-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pastel-yellow);
    border: 2px solid var(--win-dark);
    padding: 10px;
    margin: 10px 0;
    position: relative;
}

.construction-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* =============== ALERT DIALOG =============== */
.win-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: var(--win-bg);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: none;
}

.win-alert-header {
    background-color: var(--win-blue);
    color: var(--win-light);
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win-alert-body {
    padding: 15px;
    display: flex;
    align-items: center;
}

.win-alert-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.win-alert-buttons {
    padding: 0 15px 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* =============== TOOLTIP =============== */
.tooltip {
    position: absolute;
    background-color: var(--pastel-yellow);
    border: 1px solid var(--win-dark);
    padding: 2px 5px;
    font-size: 11px;
    z-index: 1000;
    display: none;
}

/* =============== LOGO BANNER =============== */
.logo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/api/placeholder/400/80');
    background-size: cover;
    height: 80px;
    margin: 10px 0;
    border: 1px solid var(--win-dark);
    position: relative;
    overflow: hidden;
}

.logo-banner h2 {
    color: var(--win-light);
    text-shadow: 1px 1px 2px var(--win-darker);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* =============== ABOUT CARD =============== */
.about-card {
    background-color: var(--pastel-green);
    border: 2px solid var(--win-light);
    border-right-color: var(--win-darker);
    border-bottom-color: var(--win-darker);
    padding: 10px;
    margin: 10px 0;
    position: relative;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.about-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--win-light);
    border: 2px solid var(--win-dark);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.about-badges {
    display: flex;
    margin-top: 10px;
    justify-content: center;
}

.about-badge {
    width: 32px;
    height: 32px;
    margin: 0 5px;
    background-color: var(--win-light);
    border: 1px solid var(--win-dark);
    border-radius: 50%;
    overflow: hidden;
}

/* =============== DIVIDERS =============== */
.divider {
    height: 20px;
    background-image: url('/api/placeholder/300/20');
    margin: 10px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background-color: var(--win-bg);
    font-size: 10px;
    color: var(--win-dark);
    white-space: nowrap;
}

.divider.divider-star::before {
    content: "★ ★ ★";
}

.divider.divider-text::before {
    content: "SECTION DIVIDER";
}

/* =============== PIXEL ART =============== */
.pixel-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1;
    font-size: 12px;
    color: var(--win-text);
    background-color: var(--win-light);
    padding: 5px;
    border: 1px solid var(--win-dark);
    overflow-x: auto;
}

/* =============== RESPONSIVE DESIGN =============== */
/* TIP: Mobile adjustments - screens smaller than 768px */
@media (max-width: 768px) {
    /* Stack content vertically on mobile */
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    /* Hide floating windows on small screens */
    .floating-window {
        display: none;
    }
    
    /* Make taskbar scrollable */
    .taskbar-buttons {
        overflow-x: auto;
    }
    
    /* Adjust desktop icons grid */
    .desktop {
        grid-template-columns: repeat(auto-fill, 70px);
    }
    
    /* Smaller window sizes for mobile */
    .window {
        margin: 5px;
    }
    
    .floating-window {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
    }
}

/* =============== DRAGGING INDICATOR =============== */
/* Shows when a window is being dragged */
.dragging {
    opacity: 0.8;
    cursor: grabbing;
    z-index: 1000 !important;
}

/* Prevent selection while dragging */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}