/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
            font-family: 'MS Sans Serif', 'Arial', sans-serif;
        }
        
        body {
            overflow: hidden;
            background-color: #000000;
            color: #00ff41;
            height: 100vh;
            position: relative;
        }
        
        #desktop {
            width: 100%;
            height: 100vh;
            background: linear-gradient(135deg, #000000 0%, #1a0321 100%);
            position: relative;
            overflow: hidden;
        }
        
        #desktop::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ff0055" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
            background-repeat: repeat;
            opacity: 0.3;
            z-index: 1;
            pointer-events: none;
        }
        
        #desktop::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, transparent 0%, #000 100%);
            opacity: 0.5;
            z-index: 2;
            pointer-events: none;
        }
        
        #taskbar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 28px;
            background: #000818;
            border-top: 1px solid #ff0055;
            display: flex;
            z-index: 1000;
        }
        
        #start-button {
            width: 55px;
            height: 22px;
            margin: 2px 0 0 2px;
            background: #000818;
            border-top: 1px solid #9c0338;
            border-left: 1px solid #9c0338;
            border-right: 1px solid #3d0015;
            border-bottom: 1px solid #3d0015;
            color: #ff0055;
            font-size: 11px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        #clock {
            width: 70px;
            height: 22px;
            margin: 2px 2px 0 auto;
            background: #000818;
            border-top: 1px solid #3d0015;
            border-left: 1px solid #3d0015;
            border-right: 1px solid #9c0338;
            border-bottom: 1px solid #9c0338;
            color: #ff0055;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #taskbar-buttons {
            display: flex;
            margin-left: 4px;
            height: 22px;
            margin-top: 2px;
            overflow: hidden;
        }
        
        .taskbar-button {
            height: 22px;
            min-width: 120px;
            max-width: 150px;
            margin-right: 3px;
            background: #000818;
            border-top: 1px solid #3d0015;
            border-left: 1px solid #3d0015;
            border-right: 1px solid #9c0338;
            border-bottom: 1px solid #9c0338;
            color: #ff0055;
            font-size: 10px;
            padding: 0 8px;
            display: flex;
            align-items: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: pointer;
        }
        
        .taskbar-button.active {
            background: #190012;
            border-top: 1px solid #3d0015;
            border-left: 1px solid #3d0015;
            border-right: 1px solid #9c0338;
            border-bottom: 1px solid #9c0338;
        }
        
        .desktop-icon {
            width: 64px;
            height: 80px;
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            cursor: pointer;
            z-index: 5;
        }
        
        .desktop-icon:hover .icon-label {
            color: #ff0077;
            text-shadow: 0 0 4px #ff0077;
        }
        
        .glyph {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff0055;
            font-size: 24px;
            margin-bottom: 4px;
            transition: all 0.3s;
            text-shadow: 0 0 5px #ff0055;
        }
        
        .desktop-icon:hover .glyph {
            color: #ff0077;
            text-shadow: 0 0 10px #ff0077;
            transform: scale(1.1);
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% {
                text-shadow: 0 0 10px #ff0077;
            }
            50% {
                text-shadow: 0 0 20px #ff0077, 0 0 30px #ff0077;
            }
            100% {
                text-shadow: 0 0 10px #ff0077;
            }
        }
        
        .icon-label {
            font-size: 10px;
            color: #ff0055;
            text-align: center;
            max-width: 64px;
            text-shadow: 0 0 2px #ff0055;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 2px;
        }
        
        .window {
            position: absolute;
            width: 200px;
            height: 150px;
            background: #000818;
            border-top: 2px solid #3d0015;
            border-left: 2px solid #3d0015;
            border-right: 2px solid #9c0338;
            border-bottom: 2px solid #9c0338;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
            z-index: 100;
        }
        
        .title-bar {
            height: 18px;
            background: linear-gradient(to right, #780026 0%, #ff0055 100%);
            display: flex;
            align-items: center;
            padding: 0 2px;
            cursor: move;
        }
        
        .title {
            flex-grow: 1;
            font-size: 11px;
            color: #ffffff;
            margin-left: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .window-controls {
            display: flex;
        }
        
        .window-control {
            width: 16px;
            height: 14px;
            margin-left: 2px;
            background: #000818;
            border-top: 1px solid #9c0338;
            border-left: 1px solid #9c0338;
            border-right: 1px solid #3d0015;
            border-bottom: 1px solid #3d0015;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 9px;
            color: #ff0055;
        }
        
        .window-control:hover {
            background: #190012;
        }
        
        .window-content {
            flex-grow: 1;
            overflow: auto;
            padding: 4px;
            position: relative;
            background: #000818;
            scrollbar-width: thin;
            scrollbar-color: #ff0055 #000818;
        }
        
        .window-content::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        .window-content::-webkit-scrollbar-track {
            background: #000818;
        }
        
        .window-content::-webkit-scrollbar-thumb {
            background-color: #ff0055;
            border-radius: 0;
            border: 1px solid #000818;
        }
        
        .terminal {
            background: #000818;
            color: #ff0055;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            white-space: pre-wrap;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .terminal-output {
            flex-grow: 1;
            overflow-y: auto;
        }
        
        .terminal-tab-container {
            display: flex;
            background: #000818;
            border-bottom: 1px solid #ff0055;
            height: 22px;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: #ff0055 #000818;
        }
        
        .terminal-tab-container::-webkit-scrollbar {
            height: 4px;
        }
        
        .terminal-tab-container::-webkit-scrollbar-track {
            background: #000818;
        }
        
        .terminal-tab-container::-webkit-scrollbar-thumb {
            background-color: #ff0055;
            border-radius: 0;
        }
        
        .terminal-tab {
            padding: 0 8px;
            height: 22px;
            min-width: 80px;
            max-width: 120px;
            background: #190012;
            border-right: 1px solid #ff0055;
            color: #ff0055;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: background 0.3s;
        }
        
        .terminal-tab.active {
            background: #3d0015;
        }
        
        .terminal-tab:hover {
            background: #290012;
        }
        
        .terminal-tab-close {
            margin-left: 5px;
            width: 12px;
            height: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #ff0055;
        }
        
        .terminal-tab-close:hover {
            color: #ff0077;
        }
        
        .terminal-new-tab {
            width: 22px;
            height: 22px;
            background: #000818;
            border-right: 1px solid #ff0055;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            color: #ff0055;
        }
        
        .terminal-new-tab:hover {
            background: #290012;
        }
        
        .typed-cursor {
            display: inline-block;
            width: 8px;
            height: 14px;
            background: #ff0055;
            animation: blink 1s step-end infinite;
            vertical-align: middle;
            margin-left: 2px;
        }
        
        @keyframes blink {
            from, to {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }
        
        .typed-text {
            display: inline;
        }
        
        .terminal-input-line {
            display: flex;
            margin-top: 4px;
        }
        
        .terminal-prompt {
            color: #ff0055;
            margin-right: 4px;
        }
        
        .terminal-input {
            background: transparent;
            border: none;
            outline: none;
            color: #ff0055;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            flex-grow: 1;
            caret-color: #ff0055;
        }
        
        .note-content {
            width: 100%;
            height: 100%;
            background: #000818;
            color: #ff0055;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            resize: none;
            border: none;
            outline: none;
            padding: 5px;
        }
        
        .image-viewer {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000818;
            position: relative;
        }
        
        .viewer-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .viewer-image:hover {
            transform: scale(1.05);
        }
        
        .image-controls {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
        }
        
        .image-control {
            width: 24px;
            height: 24px;
            margin: 0 5px;
            background: #000818;
            border: 1px solid #ff0055;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #ff0055;
            font-size: 14px;
        }
        
        .image-control:hover {
            background: #290012;
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 10px;
            width: 100%;
            height: 100%;
            overflow: auto;
        }
        
        .gallery-item {
            position: relative;
            aspect-ratio: 1;
            background: #190012;
            border: 1px solid #ff0055;
            cursor: pointer;
            overflow: hidden;
        }
        
        .gallery-item:hover {
            border-color: #ff0077;
            box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
        }
        
        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
            filter: grayscale(70%) hue-rotate(300deg);
        }
        
        .gallery-item:hover .gallery-image {
            transform: scale(1.1);
            filter: grayscale(0%) hue-rotate(0deg);
        }
        
        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: #ff0055;
            padding: 5px;
            font-size: 10px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover .gallery-caption {
            transform: translateY(0);
        }
        
        .browser {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .browser-toolbar {
            height: 24px;
            background: #000818;
            border-bottom: 1px solid #ff0055;
            display: flex;
            align-items: center;
            padding: 0 4px;
        }
        
        .tab-container {
            display: flex;
            background: #000818;
            border-bottom: 1px solid #ff0055;
            height: 22px;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: #ff0055 #000818;
        }
        
        .tab-container::-webkit-scrollbar {
            height: 4px;
        }
        
        .tab-container::-webkit-scrollbar-track {
            background: #000818;
        }
        
        .tab-container::-webkit-scrollbar-thumb {
            background-color: #ff0055;
            border-radius: 0;
        }
        
        .browser-tab {
            padding: 0 8px;
            height: 22px;
            min-width: 100px;
            max-width: 150px;
            background: #190012;
            border-right: 1px solid #ff0055;
            color: #ff0055;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: background 0.3s;
        }
        
        .browser-tab.active {
            background: #3d0015;
        }
        
        .browser-tab:hover {
            background: #290012;
        }
        
        .tab-title {
            flex-grow: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .tab-close {
            margin-left: 5px;
            width: 12px;
            height: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #ff0055;
        }
        
        .tab-close:hover {
            color: #ff0077;
        }
        
        .new-tab {
            width: 22px;
            height: 22px;
            background: #000818;
            border-right: 1px solid #ff0055;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            color: #ff0055;
        }
        
        .new-tab:hover {
            background: #290012;
        }
        
        .browser-button {
            width: 18px;
            height: 18px;
            margin-right: 4px;
            background: #000818;
            border-top: 1px solid #9c0338;
            border-left: 1px solid #9c0338;
            border-right: 1px solid #3d0015;
            border-bottom: 1px solid #3d0015;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 10px;
            color: #ff0055;
        }
        
        .browser-address {
            flex-grow: 1;
            height: 18px;
            background: #000818;
            border-top: 1px solid #3d0015;
            border-left: 1px solid #3d0015;
            border-right: 1px solid #9c0338;
            border-bottom: 1px solid #9c0338;
            color: #ff0055;
            font-size: 10px;
            padding: 0 4px;
            display: flex;
            align-items: center;
        }
        
        .browser-content {
            flex-grow: 1;
            background: #000818;
            color: #ff0055;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            padding: 10px;
            overflow: auto;
        }
        
        .matrix-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.15;
            pointer-events: none;
        }
        
        .status-bar {
            height: 20px;
            border-top: 1px solid #ff0055;
            background: #000818;
            display: flex;
            align-items: center;
            padding: 0 5px;
            font-size: 10px;
            color: #ff0055;
        }
        
        .error-screen {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000066;
            color: white;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            font-family: 'Courier New', monospace;
            padding: 50px;
            text-align: center;
        }
        
        .error-title {
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        .error-message {
            font-size: 16px;
            margin-bottom: 30px;
            white-space: pre-wrap;
        }
        
        .error-footer {
            margin-top: 50px;
            font-size: 14px;
        }
        
        @keyframes scanline {
            0% {
                transform: translateY(-100%);
            }
            100% {
                transform: translateY(100vh);
            }
        }
        
        .scanline {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(255, 0, 85, 0.1);
            z-index: 999;
            pointer-events: none;
            animation: scanline 5s linear infinite;
        }
        
        @keyframes flicker {
            0% {
                opacity: 0.8;
            }
            5% {
                opacity: 0.85;
            }
            10% {
                opacity: 0.8;
            }
            15% {
                opacity: 0.9;
            }
            20% {
                opacity: 0.8;
            }
            25% {
                opacity: 0.7;
            }
            30% {
                opacity: 0.9;
            }
            35% {
                opacity: 0.8;
            }
            40% {
                opacity: 0.7;
            }
            45% {
                opacity: 0.6;
            }
            50% {
                opacity: 0.9;
            }
            55% {
                opacity: 0.8;
            }
            60% {
                opacity: 0.7;
            }
            65% {
                opacity: 0.9;
            }
            70% {
                opacity: 0.8;
            }
            75% {
                opacity: 0.7;
            }
            80% {
                opacity: 0.8;
            }
            85% {
                opacity: 0.7;
            }
            90% {
                opacity: 0.6;
            }
            95% {
                opacity: 0.9;
            }
            100% {
                opacity: 0.8;
            }
        }
        
        .crt-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
            background-size: 100% 2px;
            z-index: 1001;
            pointer-events: none;
            opacity: 0.8;
            animation: flicker 0.3s infinite;
        }
        
        .noise {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="10" stitchTiles="stitch"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .01 0"/></filter><rect width="500" height="500" fill="transparent" filter="url(%23n)"/></svg>');
            z-index: 1002;
            pointer-events: none;
            opacity: 0.05;
        }