@import url('https://fonts.googleapis.com/css2?family=MS+Reference+Sans+Serif&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Reference Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    background: #0a0022;
    height: 100vh;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

.icon {
    position: absolute;
    width: 80px;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.icon:hover {
    background: rgba(255, 0, 255, 0.3);
    border: 1px dashed #ff00ff;
    padding: 4px;
}

.icon.selected {
    background: rgba(0, 255, 255, 0.3);
    border: 1px solid #00ffff;
    padding: 4px;
}

.icon.dragging {
    opacity: 0.7;
    cursor: grabbing !important;
    z-index: 9999;
}

.icon-img {
    width: 32px;
    height: 32px;
    margin: 0 auto 5px;
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: none;
}

.icon-label {
    color: #ffff00;
    font-size: 11px;
    text-shadow: 1px 1px 1px #000;
    word-wrap: break-word;
    pointer-events: none;
}

.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    min-width: 400px;
    min-height: 300px;
    display: none;
    flex-direction: column;
    box-shadow: 3px 3px 0 #000;
}

.window.active {
    display: flex;
}

.window-header {
    background: linear-gradient(to right, #000080, #0080ff);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-title {
    font-size: 12px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-control {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.window-control:hover {
    background: #e0e0e0;
}

.window-toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toolbar-button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px 5px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
}

.toolbar-button:hover {
    background: #e0e0e0;
}

.address-bar {
    flex-grow: 1;
    background: white;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 2px 5px;
    font-size: 11px;
    font-family: monospace;
}

.window-content {
    flex-grow: 1;
    background: white;
    overflow: auto;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    width: 80px;
    text-align: center;
    cursor: pointer;
    padding: 5px;
}

.file-item:hover {
    background: rgba(0, 0, 255, 0.1);
}

.file-item.selected {
    background: rgba(0, 0, 255, 0.2);
}

.file-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.file-name {
    font-size: 11px;
    word-wrap: break-word;
}

.window-statusbar {
    background: #c0c0c0;
    border-top: 1px solid #fff;
    padding: 2px 5px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.help-content {
    padding: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #000;
}

.help-content h2 {
    color: #000080;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 2px solid #000080;
    padding-bottom: 5px;
}

.help-content h3 {
    color: #000080;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}

.help-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.help-content li {
    margin-bottom: 5px;
}

.help-content code {
    background: #f0f0f0;
    padding: 2px 4px;
    border: 1px solid #808080;
    font-family: monospace;
}

.help-content .warning {
    background: #ffffcc;
    border: 1px solid #ffcc00;
    padding: 10px;
    margin: 10px 0;
}

.help-content .tip {
    background: #ccffcc;
    border: 1px solid #00cc00;
    padding: 10px;
    margin: 10px 0;
}

#crtPurple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: screen;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.counter {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: #000080;
    color: #ffff00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    border: 1px solid #ffff00;
    z-index: 5;
}

.construction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px;
    background: #ffff00;
    color: #ff0000;
    border: 3px dotted #ff0000;
    font-weight: bold;
    text-align: center;
    z-index: 20;
    display: none;
}

.construction.active {
    display: block;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border-top: 2px solid;
    border-color: #ff00ff #800080 #800080 #ff00ff;
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 100;
}

.start-button {
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(to bottom, #00ff00, #008800);
    border: 2px solid;
    border-color: #fff #008800 #008800 #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

.start-button:active {
    border-color: #008800 #fff #fff #008800;
}

.taskbar-time {
    margin-left: auto;
    padding: 2px 8px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    font-size: 11px;
    color: #000080;
    font-weight: bold;
}

.start-menu {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ff00ff #800080 #800080 #ff00ff;
    display: none;
    box-shadow: 3px 3px 0 #000, 0 0 20px rgba(255, 0, 255, 0.5);
    z-index: 100;
}

.start-menu.active {
    display: block;
}

.start-menu-header {
    background: linear-gradient(90deg, #000080, #ff00ff);
    color: #ffff00;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 1px #000;
}

.start-menu-item {
    padding: 8px 15px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.start-menu-item:hover {
    background: #000080;
    color: #ffff00;
}

.start-menu-separator {
    height: 1px;
    background: #808080;
    margin: 5px 10px;
    border-top: 1px solid #fff;
}

.weird-text {
    position: absolute;
    color: rgba(255, 255, 0, 0.7);
    font-size: 12px;
    pointer-events: none;
    font-family: monospace;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

.selection-box {
    position: absolute;
    border: 2px dotted #00ffff;
    background: rgba(0, 255, 255, 0.1);
    pointer-events: none;
    z-index: 9998;
}

/* effects */
@keyframes flicker {
    0%,100%{opacity:1;} 50%{opacity:0.8;}
}

.weird {
    animation: flicker 3s infinite;
}

.cursor-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Shutdown transition styles */
.icon, .window, .counter, .webring, .weird-text, .construction, .taskbar, #crtPurple, .matrix-rain {
    transition: opacity 0.5s ease !important;
}