body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background-color: #008080;
    color: #000;
    height: 100vh;
    overflow: hidden;
}

.desktop {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

.icon {
    width: 80px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px black;
}

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

.icon:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.taskbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #d3d3d3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.start-button {
    padding: 5px 15px;
    background: linear-gradient(to right, #0050b3, #007fff);
    color: white;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
}

.time {
    padding: 5px 10px;
    background-color: #d3d3d3;
    border: 1px solid #808080;
    font-size: 14px;
}


.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    min-width: 300px;
    max-width: 800px;
    height: 70%;
    min-height: 400px;
    background-color: #e0e0e0;
    border: 2px solid #0000a0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.window-header {
    padding: 5px 10px;
    background: linear-gradient(to right, #0050b3, #007fff);
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-controls button {
    margin-left: 5px;
    width: 20px;
    height: 20px;
    background-color: #c0c0c0;
    border: 1px solid #808080;
    font-weight: bold;
    cursor: pointer;
}

.window-controls button:hover {
    background-color: #a0a0a0;
}

.window-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f8f8;
}

.window-template {
    display: none;
}


.content-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.image-content img {
    max-width: 100%;
    border: 1px solid #808080;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.project-item {
    border: 1px solid #808080;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.project-item:hover {
    transform: scale(1.05);
    background-color: #d8d8d8;
}

.project-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}


.contact-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-section {
    flex: 1;
    min-width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    border: 1px solid #000080;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    color: #000080;
    border-bottom: 2px solid #000080;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-method {
    margin-bottom: 15px;
}

.contact-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.contact-link {
    color: #000080;
    text-decoration: none;
    display: block;
    padding: 5px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.contact-link:hover {
    color: #0000a0;
    background-color: #e6e6ff;
    border-left: 3px solid #000080;
    padding-left: 10px;
}


.dark-mode .contact-section {
    background-color: #2d2d2d;
    border-color: #555;
}

.dark-mode .contact-section h2 {
    color: #4d8bf0;
    border-color: #4d8bf0;
}

.dark-mode .contact-label {
    color: #e0e0e0;
}

.dark-mode .contact-link {
    color: #4d8bf0;
}

.dark-mode .contact-link:hover {
    color: #6da6ff;
    background-color: #3d3d3d;
    border-color: #4d8bf0;
}

::selection {
    background: #000080;
    color: white;
}

a {
    color: #000080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-canvas {
    border: 2px solid #000080;
    background-color: #000;
    margin-bottom: 10px;
}

.game-controls {
    text-align: center;
}

.game-controls button {
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #000080;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.game-controls button:hover {
    background-color: #0000a0;
}

.dark-mode {
    background-color: #121212;
}

.dark-mode .window {
    background-color: #2d2d2d;
    border-color: #555;
}

.dark-mode .window-header {
    background: linear-gradient(to right, #333, #555);
}

.dark-mode .window-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .icon {
    color: #e0e0e0;
    text-shadow: 1px 1px 2px #000;
}

.dark-mode .taskbar {
    background-color: #333;
}

.dark-mode .start-button {
    background: linear-gradient(to right, #222, #444);
}

.dark-mode .project-item {
    border-color: #555;
    background-color: #2d2d2d;
}

.dark-mode .project-item:hover {
    background-color: #3d3d3d;
}

.dark-mode .contact-form input, 
.dark-mode .contact-form textarea {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #555;
}

.dark-mode a {
    color: #4d8bf0;
}

.dark-mode-toggle {
    padding: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.dark-mode-toggle img {
    width: 20px;
    height: 20px;
    filter: invert(0);
}

.dark-mode .dark-mode-toggle img {
    filter: invert(1);
}

.terminal-container {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    border: 2px solid #555;
    border-radius: 5px;
    overflow: hidden;
}

.terminal-header {
    background-color: #000080;
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls button {
    background-color: #c0c0c0;
    border: none;
    margin-left: 5px;
    cursor: pointer;
}

.terminal-body {
    padding: 10px;
    height: 300px;
    overflow-y: auto;
}

.terminal-input {
    width: 100%;
    padding: 8px;
    background-color: #000;
    color: #0f0;
    border: none;
    border-top: 1px solid #555;
    font-family: 'Courier New', monospace;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


.terminal-secret-mode {
    background-color: #ff00ff;
    color: #ffff00;
    text-shadow: 0 0 5px #fff;
}

.music-player {
    background: #c0c0c0;
    border: 2px solid #000080;
    padding: 15px;
    font-family: 'Courier New', monospace;
    max-width: 400px;
    margin: 0 auto;
}

.player-display {
    background: #000;
    color: #0f0;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid #555;
}

.player-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.player-visualizer {
    height: 50px;
    background: #111;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.visualizer-bar {
    width: 4px;
    background: #0f0;
    height: 5px;
    animation: equalizer 0.5s infinite alternate;
}

@keyframes equalizer {
    0% { height: 5px; }
    100% { height: 50px; }
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.player-btn {
    background: #000080;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
}

.player-btn:hover {
    background: #0000a0;
}

.progress-container {
    background: #fff;
    height: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #000080;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.playlist {
    background: #fff;
    padding: 10px;
    border: 1px solid #555;
}

.playlist ul {
    list-style: none;
    padding: 0;
}

.playlist li {
    padding: 5px;
    cursor: pointer;
}

.playlist li:hover {
    background: #e0e0e0;
}

.glitch-effect {
    animation: glitch 0.1s infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

@keyframes glitch {
    0% { filter: hue-rotate(0deg) invert(0); }
    20% { filter: hue-rotate(90deg) invert(0.8); transform: skew(20deg); }
    40% { filter: hue-rotate(180deg) blur(2px); }
    60% { filter: hue-rotate(270deg) contrast(200%); }
    80% { filter: hue-rotate(360deg) saturate(500%); }
    100% { filter: hue-rotate(0deg); }
}

.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-family: 'Courier New', monospace;
    text-align: center;
    z-index: 10000;
    display: none;
}
.konami-effect {
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.konami-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #0f0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    border: 2px solid #0f0;
}
#desktop-pet {
  position: absolute;
  bottom: 50px;
  left: 20px;
  width: 64px;
  height: 64px;
  cursor: pointer;
  z-index: 500;
  transition: transform 0.2s;
}

#desktop-pet:hover {
  transform: scale(1.1);
}

#pet-image {
  width: 100%;
  height: 100%;
  image-rendering: pixelated; 
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.desktop-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 50px); 
  padding: 15px;
  overflow-y: auto;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-auto-rows: min-content;
  gap: 20px;
  width: 100%;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 5px;
  user-select: none;
}

.desktop-icon:hover {
  background-color: rgba(0, 0, 128, 0.3);
  border: 1px dashed #000080;
}

.desktop-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 5px;
}

.desktop-icon span {
  color: white;
  text-shadow: 1px 1px 2px black;
  font-size: 12px;
  text-align: center;
  word-break: break-word;
  width: 100%;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #c0c0c0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 100;
}

.dark-mode .wallpaper {
  filter: brightness(0.6);
}

.dark-mode .desktop-icon span {
  color: #e0e0e0;
  text-shadow: 1px 1px 2px #000;
}

.dark-mode .desktop-icon:hover {
  background-color: rgba(200, 200, 255, 0.1);
  border-color: #555;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    border: 1px solid #004080;
}

.start-button:hover {
    background: linear-gradient(to right, #0040a0, #20a4f0);
}

.start-button img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    image-rendering: pixelated;
}


.start-menu {
    position: absolute;
    bottom: 50px;
    left: 5px;
    width: 250px;
    background: #c0c0c0;
    border: 2px solid #000080;
    border-bottom-color: #ffffff;
    border-right-color: #ffffff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.menu-header {
    padding: 10px;
    background: #000080;
    color: white;
    display: flex;
    align-items: center;
}

.menu-header img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    image-rendering: pixelated;
}

.menu-section {
    padding: 5px 0;
    border-bottom: 1px solid #808080;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
}

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

.menu-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    image-rendering: pixelated;
}

.menu-footer {
    padding: 5px 0;
}

.shutdown-effect {
    animation: shutdown 1s forwards;
}

@keyframes shutdown {
    0% { filter: brightness(1); }
    100% { filter: brightness(0); }
}

.settings-tabs {
    display: flex;
    border-bottom: 2px solid #000080;
    margin-bottom: 15px;
}

.tab-button {
    background: #c0c0c0;
    border: 1px solid #808080;
    border-bottom: none;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.tab-button.active {
    background: #000080;
    color: white;
}

.tab-content {
    padding: 15px;
}


.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    margin-right: 15px;
    border: 2px solid #000080;
}

.retro-button {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.retro-button:active {
    border: 2px inset #ffffff;
}

.retro-button.danger {
    background: #ff0000;
    color: white;
}

.retro-dropdown {
    background: white;
    border: 2px inset #808080;
    padding: 3px;
    font-family: 'Courier New', monospace;
}

.retro-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.retro-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #000080;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.meter {
    margin-bottom: 15px;
}

.meter-bar {
    width: 100%;
    height: 20px;
    background: #c0c0c0;
    border: 2px inset #808080;
    margin-top: 5px;
}

.meter-fill {
    height: 100%;
    background: #000080;
    color: white;
    text-align: right;
    padding-right: 5px;
    font-size: 12px;
    line-height: 20px;
}

.process-list {
    margin: 20px 0;
    border: 1px solid #808080;
    padding: 10px;
}

.process-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.danger {
    color: #ff0000;
    font-weight: bold;
}

body, .wallpaper {
    transition: background-color 0.5s ease, background-image 0.5s ease;
}

.dark-mode .retro-dropdown,
.dark-mode .retro-button {
    background-color: #333;
    color: #fff;
    border-color: #666;
}

.dark-mode .retro-switch .slider {
    border-color: #666;
}

.xp-login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0058ea, #00a2ff);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Tahoma', Arial, sans-serif;
}

.xp-login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3B7DD6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Tahoma', Arial, sans-serif;
}

.xp-login-box {
    width: 500px;
    background: white;
    border: 1px solid #082E8A;
    border-radius: 8px;
    box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5);
    overflow: hidden;
}

.xp-header {
    background: linear-gradient(to bottom, #082E8A, #3B7DD6);
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #082E8A;
}

.xp-header-text {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

.xp-logo {
    height: 32px;
    margin-bottom: 0;
}

.xp-user-list {
    padding: 30px;
    text-align: left;
    background: #E8E8E1;
}

.xp-user {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 10px;
    border-radius: 5px;
}

.xp-user:hover {
    background-color: #D4D0C8;
}

.xp-user img {
    width: 64px; 
    height: 64px;
    border: 2px solid #BDBDBD;
    border-radius: 5px;
    display: block;
    margin: 0;
}

.xp-user span {
    font-size: 18px; 
    font-weight: bold;
    color: #000;
}

.xp-footer {
    background: #3B7DD6;
    padding: 10px;
    text-align: right; 
    border-top: 1px solid #082E8A;
}

.xp-buttons {
    display: inline-block; 
}

.xp-button {
    background: #E1E1E1; 
    border: 1px solid #082E8A;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Tahoma', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.xp-button:active {
    background: #C0C0C0;
    border-style: inset;
}

.xp-button img {
    width: 16px;
    height: 16px;
}


.speech-bubble {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    border: 2px solid #000080;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none; 
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000080;
}

.file-list-container .file-item img {
    width: 32px;
    height: 32px;
}

.paint-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    background-color: #c0c0c0;
    border-bottom: 2px solid #808080;
}

.color-palette {
    display: flex;
    gap: 5px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border: 2px solid #808080;
    cursor: pointer;
    border-style: outset;
}

.color-swatch.active {
    border-style: inset;
    border-color: #555;
}

#paint-canvas {
    width: 100%;
    height: calc(100% - 40px); 
    background-color: white;
    cursor: crosshair;
    display: block;
}

#browser-window {
    width: 800px;
    height: 600px;
}

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

.browser-toolbar button {
    font-family: 'Arial Black', sans-serif;
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.address-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    background: white;
    border: 1px inset #808080;
    padding: 2px 5px;
}

.protocol {
    color: #808080;
}

#address-bar {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Courier New', monospace;
}

.browser-content {
    height: calc(100% - 75px);
    background: #f0f0f0;
    overflow-y: auto;
    position: relative;
}

.browser-page {
    display: none;
    padding: 15px;
}

.browser-page.active {
    display: block;
}

.youtube-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.youtube-header h1 { color: red; }
.video-info { margin-top: 10px; }

.geocities-content {
    text-align: center;
    font-family: 'Times New Roman', serif;
    background: url('https://gifcities.org/assets/images/backgrounds/space/7.gif');
    color: yellow;
    padding: 20px;
}
.geo-title { text-shadow: 2px 2px red; }
.geo-text { font-style: italic; font-size: 1.2em; }
.geocities-content marquee { font-weight: bold; }

.error-404-container {
    background: #FFFFF0;
    color: #800000;
    border: 1px solid #D9BFB7;
    padding: 20px;
    font-family: "MS PGothic", "Arial", sans-serif;
}
.error-title { color: #FF0000; font-size: 2em; }
.error-text { font-size: 1.2em; font-weight: bold; }
.error-subtext { font-size: 1.5em; text-align: center; margin-top: 20px; }

.homepage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 50px;
}

.homepage-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.homepage-search-bar {
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
}

.homepage-search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #808080;
}

.homepage-shortcuts {
    display: flex;
    gap: 20px;
}

.shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.shortcut:hover {
    background-color: #d8d8d8;
}

.shortcut-icon {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.shortcut span {
    font-family: 'Courier New', monospace;
}