
/* ================================
   WINDOWS XP THEME
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    overflow: hidden;
}

/* Desktop */

.desktop {
    width: 100vw;
    height: 100vh;
    background: #3a8dcc;
    background: linear-gradient(
        135deg,
        #2455a0,
        #3d9bce 45%,
        #7cc7df
    );
    position: relative;
    overflow: auto;
}

/* Desktop Icons */

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    width: 85px;
    color: white;
    text-decoration: none;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.desktop-icon:hover {
    background: rgba(0, 80, 180, 0.5);
}

.icon-img {
    font-size: 34px;
}

/* Main Window */

.xp-window {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: min(850px, 90%);
    height: 78vh;
    min-height: 400px;
    background: #ece9d8;
    border: 2px solid #0a246a;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Title Bar */

.title-bar {
    height: 30px;
    min-height: 30px;
    background: linear-gradient(
        #3f8be8,
        #1258b5
    );
    color: white;
    display: flex;
    align-items: center;
    padding: 3px 5px 3px 8px;
    font-weight: bold;
    font-size: 13px;
}

.title-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-buttons {
    display: flex;
    gap: 3px;
}

.window-buttons button {
    width: 22px;
    height: 21px;
    padding: 0;
    background: linear-gradient(#78a9e8, #2a63b5);
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

/* Toolbar */

.toolbar {
    min-height: 39px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ece9d8;
    border-bottom: 1px solid #aaa;
    flex-wrap: wrap;
}

.toolbar button {
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    background: linear-gradient(#fff, #ddd);
    border: 1px solid #888;
    border-radius: 2px;
    padding: 3px 8px;
    cursor: pointer;
}

.toolbar button:hover {
    background: #dceaff;
}

.address-label {
    margin-left: 5px;
    font-weight: bold;
}

.address-bar {
    flex: 1;
    min-width: 150px;
    height: 21px;
    background: white;
    border: 1px solid #999;
    padding: 3px 6px;
    overflow: hidden;
    white-space: nowrap;
}

/* Content */

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

h1 {
    font-size: 23px;
    color: #174b92;
    margin: 0 0 5px;
}

.subtitle {
    color: #555;
    margin-top: 5px;
}

.divider {
    border-top: 1px solid #ccc;
    margin: 15px 0;
}

h2 {
    color: #174b92;
    font-size: 17px;
    margin: 15px 0;
}

/* Game Grid */

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    min-width: 0;
    background: #f4f4f4;
    border: 1px solid #b6b6b6;
    border-radius: 3px;
    text-decoration: none;
    color: #222;
    transition: background 0.15s;
}

.game-card:hover {
    background: #dbeaff;
    border-color: #316ac5;
}

.game-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #e5edf9;
    border: 1px solid #b5c6df;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-info h3 {
    margin: 0 0 5px;
    font-size: 13px;
    color: #174b92;
}

.game-info p {
    margin: 0;
    font-size: 11px;
    color: #555;
}

.play-button {
    background: linear-gradient(#fff, #d4d4d4);
    border: 1px solid #999;
    border-radius: 2px;
    padding: 5px 8px;
    color: #222;
    font-size: 11px;
}

.status-box {
    background: #ffffe1;
    border: 1px solid #d6d29b;
    margin-top: 20px;
    padding: 10px;
}

/* Status Bar */

.status-bar {
    height: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 3px 8px;
    background: #ece9d8;
    border-top: 1px solid #aaa;
    color: #444;
}

/* Taskbar */

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: linear-gradient(
        #3f94e5,
        #245db5
    );
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.3);
}

.start-button {
    height: 36px;
    min-width: 105px;
    padding: 0 14px 0 8px;
    background: linear-gradient(
        #5fbd58,
        #258c29
    );
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    box-shadow: inset 0 1px rgba(255,255,255,0.5);
    font-family: Tahoma, sans-serif;
    font-size: 15px;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-button:hover {
    background: linear-gradient(#79ce70, #309c32);
}

.windows-logo {
    font-size: 24px;
    font-style: normal;
}

.taskbar-divider {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,0.35);
    margin: 0 5px;
}

.taskbar-program {
    height: 27px;
    min-width: 160px;
    max-width: 240px;
    padding: 6px 12px;
    background: linear-gradient(#3476cf, #2057a9);
    color: white;
    border: 1px solid #174d9c;
    border-radius: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.system-tray {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: rgba(0,0,100,0.15);
    color: white;
}

/* Mobile */

@media (max-width: 600px) {

    .xp-window {
        top: 3%;
        width: 96%;
        height: calc(100vh - 55px);
    }

    .desktop-icons {
        display: none;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .window-content {
        padding: 12px;
    }

    h1 {
        font-size: 20px;
    }

    .toolbar {
        padding: 4px;
    }

    .taskbar-program {
        min-width: 0;
        flex: 1;
    }

    .system-tray {
        padding: 0 6px;
        gap: 5px;
    }

    .start-button {
        min-width: 85px;
    }

}