
* {
    box-sizing: border-box;
    user-select: none;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #008080;
    color: #000;
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
    font-size: 13px;
}


/* =========================
   ESCRITORIO
========================= */

.desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 34px;

    background: #008080;

    padding: 12px;

    overflow: hidden;
}


/* =========================
   ICONOS
========================= */

.desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90px;
}

.desktop-icon {
    width: 80px;

    padding: 5px;

    background: transparent;
    border: 1px solid transparent;

    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

.desktop-icon:hover {
    background: rgba(0, 0, 128, 0.6);
}

.icon-image {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}


/* =========================
   VENTANAS
========================= */

.window {
    position: absolute;

    width: 500px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    box-shadow: 2px 2px 0 #555;

    z-index: 10;
}

.hidden {
    display: none !important;
}


/* =========================
   BIENVENIDA
========================= */

.welcome-window {
    width: 520px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}


/* =========================
   BARRA DE TÍTULO
========================= */

.title-bar {
    height: 22px;

    padding: 2px 3px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #000080;

    color: white;

    font-weight: bold;

    cursor: move;
}

.title-bar span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================
   BOTONES
========================= */

.window-buttons {
    display: flex;
    gap: 2px;
}

.window-buttons button {
    width: 18px;
    height: 18px;

    padding: 0;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;

    line-height: 13px;

    cursor: pointer;
}

.window-buttons button:active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}


/* =========================
   CONTENIDO
========================= */

.window-content {
    padding: 18px;
}

.window-content h1 {
    margin-top: 0;
}

.window-content h2 {
    margin-top: 0;
    font-size: 18px;
}


/* =========================
   BIENVENIDA
========================= */

.welcome-content {
    min-height: 220px;

    display: flex;
    align-items: center;

    gap: 25px;
}

.welcome-logo {
    width: 100px;

    text-align: center;

    font-size: 65px;
}


/* =========================
   BOTÓN RETRO
========================= */

.retro-button {
    min-width: 80px;

    padding: 5px 15px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    font-family: inherit;

    cursor: pointer;
}

.retro-button:active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}


/* =========================
   JUEGOS
========================= */

.game-grid {
    display: flex;
    gap: 20px;

    margin-top: 25px;
}

.game {
    width: 100px;
    height: 100px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 35px;

    cursor: pointer;
}

.game span {
    font-size: 11px;
}


/* =========================
   MÚSICA
========================= */

.music-window {
    width: 650px;
}

.music-content {
    padding: 15px;

    text-align: center;
}


/* BOTONES DE SUBIR */

.music-upload {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-bottom: 15px;
}

.upload-button {
    display: inline-block;

    padding: 6px 12px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    cursor: pointer;
}

.upload-button:active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}


/* SELECTOR */

.album-selector {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-top: 10px;
}

.album-cover-container {
    width: 270px;
    height: 270px;

    background: #111;

    border: 4px inset #c0c0c0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: pointer;
}

.album-cover-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.cover-placeholder {
    color: white;

    font-size: 70px;
}


/* FLECHAS */

.album-arrow {
    width: 42px;
    height: 65px;

    background: #c0c0c0;

    border-top: 3px solid white;
    border-left: 3px solid white;

    border-right: 3px solid #000;
    border-bottom: 3px solid #000;

    font-size: 20px;

    cursor: pointer;
}

.album-arrow:active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}


/* INFORMACIÓN */

.song-information {
    margin-top: 12px;
}

.song-information h2 {
    margin: 5px 0;

    font-size: 18px;
}

.song-information p {
    margin: 5px;
}

.double-click-info {
    color: #555;

    font-size: 11px;
}


/* LISTA */

.music-list {
    margin-top: 15px;

    max-height: 100px;

    overflow-y: auto;

    background: white;

    border: 2px inset white;

    text-align: left;
}

.music-list-item {
    padding: 6px;

    cursor: pointer;
}

.music-list-item:hover {
    background: #000080;
    color: white;
}

.music-list-item.active {
    background: #000080;
    color: white;
}


/* =========================
   REPRODUCTOR
========================= */

.mp3-player {
    width: 430px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}

.player-body {
    padding: 15px;

    background: linear-gradient(
        #eeeeee,
        #c8c8c8
    );

    text-align: center;
}

.player-cover {
    width: 180px;
    height: 180px;

    margin: auto;

    background: #222;

    border: 3px solid #777;

    box-shadow:
        inset 0 0 10px #000;

    overflow: hidden;
}

.player-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.player-info h2 {
    margin: 10px 0 3px;

    font-size: 16px;
}

.player-info p {
    margin: 0;

    color: #444;

    font-size: 12px;
}


/* PROGRESO */

.progress-container {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 15px;

    font-size: 10px;
}

.progress-container input {
    flex: 1;
}


/* CONTROLES */

.player-controls {
    display: flex;
    justify-content: center;

    gap: 5px;

    margin-top: 10px;
}

.player-controls button {
    width: 45px;
    height: 32px;

    background: #dedede;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #555;
    border-bottom: 2px solid #555;

    font-size: 16px;

    cursor: pointer;
}

.player-controls button:active {
    border-top-color: #555;
    border-left-color: #555;

    border-right-color: white;
    border-bottom-color: white;
}


/* VOLUMEN */

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 12px;
}


/* =========================
   BARRA DE TAREAS
========================= */

.taskbar {
    position: fixed;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 34px;

    background: #c0c0c0;

    border-top: 2px solid white;

    display: flex;
    align-items: center;

    padding: 3px;

    z-index: 1000;
}

.start-button {
    height: 27px;

    padding: 2px 10px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    font-family: inherit;
    font-weight: bold;

    cursor: pointer;
}

.start-button:active,
.start-button.active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}

.taskbar-divider {
    width: 2px;
    height: 25px;

    margin: 0 5px;

    border-left: 1px solid #808080;
    border-right: 1px solid white;
}

.taskbar-windows {
    flex: 1;

    display: flex;
    gap: 4px;

    height: 27px;
}

.task-button {
    max-width: 180px;

    padding: 2px 10px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.task-button.active {
    border-top-color: #000;
    border-left-color: #000;

    border-right-color: white;
    border-bottom-color: white;
}

.system-tray {
    height: 25px;

    padding: 4px 8px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top: 2px solid #808080;
    border-left: 2px solid #808080;

    border-right: 1px solid white;
    border-bottom: 1px solid white;

    font-size: 11px;
}


/* =========================
   MENÚ INICIO
========================= */

.start-menu {
    position: fixed;

    left: 3px;
    bottom: 34px;

    width: 245px;

    display: flex;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    z-index: 2000;
}

.start-menu.hidden {
    display: none !important;
}

.start-sidebar {
    width: 32px;

    background: #000080;

    color: white;

    writing-mode: vertical-rl;

    transform: rotate(180deg);

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 8px;

    font-weight: bold;

    letter-spacing: 1px;
}

.start-items {
    flex: 1;

    padding: 5px;
}

.start-items button {
    width: 100%;

    padding: 9px 8px;

    text-align: left;

    border: none;

    background: transparent;

    font-family: inherit;

    cursor: pointer;
}

.start-items button:hover {
    background: #000080;

    color: white;
}


/* =========================
   CRT
========================= */

.crt {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 5000;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 3px
        );

    opacity: 0.35;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .window {
        width: calc(100vw - 25px);
    }

    .welcome-window {
        width: calc(100vw - 25px);
    }

    .music-window {
        width: calc(100vw - 25px);
    }

    .album-cover-container {
        width: 200px;
        height: 200px;
    }

    .album-selector {
        gap: 8px;
    }

    .mp3-player {
        width: calc(100vw - 25px);
    }

    .music-upload {
        flex-direction: column;
    }
}