@font-face {
  font-family: 'JerryFont';
  src: url('/JerryText.ttf') format('truetype');
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: 'JerryFont', monospace;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

body.dark-mode {
  background-color: #1a1a1a;
}

.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JerryFont', monospace;
  font-size: 24px;
  z-index: 10000;
  transition: opacity 1s;
}

#windows-screen {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  background: url('/Bliss.jpg') center center;
  background-size: cover;
  transition: opacity 2s;
}

.dark-mode #windows-screen {
  filter: none;
}

.desktop-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  text-align: center;
  cursor: move; 
  user-select: none;
  margin-bottom: 20px; 
  z-index: 1; 
  transition: none;
}

.desktop-icon + .desktop-icon {
  top: 100px;
}

.desktop-icon + .desktop-icon + .desktop-icon {
  top: 180px;
}

.desktop-icon + .desktop-icon + .desktop-icon + .desktop-icon {
  top: 260px;
}

#chat-shortcut {
  top: 20px;
  left: auto;
  right: 20px;
}

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

.desktop-icon span {
  display: block;
  color: white;
  font-family: 'JerryFont';
  text-shadow: 1px 1px 1px black;
  font-size: 12px;
}

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

#taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

.dark-mode #taskbar {
  background: #2d2d2d;
  border-top: 2px solid #404040;
  box-shadow: inset -1px -1px #000, inset 1px 1px #555;
}

#taskbar-clock {
  padding: 5px 10px;
  margin-right: 5px;
  font-family: 'JerryFont';
  background: #c0c0c0;
  border: 2px inset #fff;
}

.dark-mode #taskbar-clock {
  background: #2d2d2d;
  border: 2px inset #404040;
  color: #fff;
}

#start-button {
  margin: 2px 5px;
  padding: 5px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: 'JerryFont';
  cursor: pointer;
}

.dark-mode #start-button {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#start-button.active {
  background: #808080;
  border: 2px inset #fff;
}

.dark-mode #start-button.active {
  background: #1a1a1a;
  border: 2px inset #404040;
}

#start-menu {
  display: none;
  position: fixed;
  bottom: 42px;
  left: 0;
  width: 200px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.dark-mode #start-menu {
  background: #2d2d2d;
  border: 2px outset #404040;
}

.start-menu-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  font-family: 'JerryFont';
}

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

.dark-mode .start-menu-item {
  color: #fff;
}

.dark-mode .start-menu-item:hover {
  background: #0066cc;
  color: #fff;
}

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

.start-menu-folder {
  position: relative;
}

.start-menu-folder:hover > .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 200px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.dark-mode .submenu {
  background: #2d2d2d;
  border: 2px outset #404040;
}

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

.submenu .start-menu-item {
  color: #000;
}

.dark-mode .submenu .start-menu-item {
  color: #fff;
}

.dark-mode .submenu .start-menu-item:hover {
  background: #0066cc;
  color: #fff;
}

.jerry-container {
  position: absolute;
  transition: all 0.5s ease;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.jerry-container:active {
  cursor: grabbing;
}

.jerry {
  width: 100px;
  height: 100px;
  background: url('/JerryTheAssistantNew.png') center center;
  background-size: contain;
  transition: transform 0.3s;
}

.jerry.squished {
  transform: scale(0.8, 0.7);
}

.speech-bubble {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px;
  max-width: 200px;
  min-width: 150px;
  opacity: 0;
  transition: opacity 0.3s;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  transform: none;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  transform: none;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #000;
}

.shotgun {
  display: none;
  position: absolute;
  width: 200px;
  height: 100px;
  background: url('/JerrysShotgun.png') center center;
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: center;
}

#music-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 350px;
  height: 400px;
  transition: opacity 0.3s;
  cursor: move;
  user-select: none;
  z-index: 100;
}

.dark-mode #music-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#music-window.breaking {
  animation: break-apart 0.5s forwards;
}

@keyframes break-apart {
  to {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
    filter: url(#noise);
  }
}

#music-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
}

.dark-mode .title-bar {
  background: #1a1a1a !important;
  color: #fff !important;
}

.title-bar-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-bar-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.close-btn {
  background: #c0c0c0;
  border: 1px outset #fff;
  cursor: pointer;
}

.dark-mode .close-btn {
  background: #2d2d2d;
  border: 1px outset #404040;
  color: #fff;
}

.fullscreen-btn {
  background: #c0c0c0;
  border: 1px outset #fff;
  cursor: pointer;
  margin-right: 5px;
}

.dark-mode .fullscreen-btn {
  background: #2d2d2d;
  border: 1px outset #404040;
  color: #fff;
}

.music-playlist {
  height: 200px;
  overflow-y: auto;
  border: 2px inset #fff;
  background: #fff;
  margin-bottom: 10px;
}

.dark-mode .music-playlist {
  background: #1a1a1a;
  border: 2px inset #404040;
}

.music-item {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

.music-item:hover {
  background: #000080;
  color: #fff;
}

.music-item.selected {
  background: #000080;
  color: #fff;
}

.dark-mode .music-item {
  color: #fff;
  border-bottom: 1px solid #404040;
}

.dark-mode .music-item:hover,
.dark-mode .music-item.selected {
  background: #0066cc;
  color: #fff;
}

.music-item img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-title {
  font-family: 'JerryFont';
  font-size: 12px;
}

.song-artist {
  font-family: 'JerryFont';
  font-size: 10px;
  opacity: 0.7;
  font-style: italic;
}

.music-controls {
  background: #c0c0c0;
  padding: 10px;
  border: 2px inset #fff;
}

.dark-mode .music-controls {
  background: #2d2d2d;
  border: 2px inset #404040;
}

.control-buttons {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  justify-content: center;
}

.control-buttons button {
  width: 50px;
  height: 30px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  font-family: 'JerryFont';
  font-size: 10px;
}

.dark-mode .control-buttons button {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

.control-buttons button:active {
  border: 2px inset #fff;
}

.dark-mode .control-buttons button:active {
  border: 2px inset #404040;
}

.control-buttons button:disabled {
  color: #808080;
  cursor: not-allowed;
}

.time-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.time-controls span {
  font-family: 'JerryFont';
  font-size: 12px;
  min-width: 35px;
}

#time-slider {
  flex: 1;
  height: 20px;
}

#time-slider:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.volume-controls span {
  font-family: 'JerryFont';
  font-size: 12px;
}

#volume-slider {
  flex: 1;
  height: 20px;
}

.now-playing {
  text-align: center;
  font-family: 'JerryFont';
  font-size: 12px;
  color: #000080;
  font-weight: bold;
}

#notepad-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 0;
  width: 500px;
  height: 400px;
  z-index: 100;
}

.dark-mode #notepad-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#notepad-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.notepad-menu-bar {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  display: flex;
  padding: 2px;
  font-family: 'JerryFont', sans-serif;
  font-size: 11px;
}

.dark-mode .notepad-menu-bar {
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.notepad-menu {
  padding: 4px 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.notepad-menu:hover .notepad-dropdown {
  display: block;
}

.notepad-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  min-width: 150px;
}

.dark-mode .notepad-dropdown {
  background: #2d2d2d;
  border: 2px outset #404040;
}

.notepad-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'JerryFont';
  font-size: 11px;
  user-select: none;
  white-space: nowrap;
}

.notepad-dropdown-item:hover {
  background: #000080;
  color: #fff;
}

.dark-mode .notepad-dropdown-item {
  color: #fff;
}

.dark-mode .notepad-dropdown-item:hover {
  background: #0066cc;
  color: #fff;
}

#notepad-content {
  width: calc(100% - 6px);
  height: calc(100% - 65px);
  resize: none;
  font-family: 'Courier New', monospace;
  font-size: 10pt;
  padding: 4px;
  border: 2px inset #c0c0c0;
  background: #fff;
  margin: 1px;
  outline: none;
  line-height: 1.3;
  box-sizing: border-box;
}

.dark-mode #notepad-content {
  background: #1a1a1a;
  color: #fff;
  border: 2px inset #404040;
}

#paint-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 600px;
  height: 400px;
  z-index: 100;
}

.dark-mode #paint-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#paint-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.paint-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paint-tool {
  padding: 3px 8px;
  margin: 0 2px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.dark-mode .paint-tool {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

.paint-tool.active {
  border: 2px inset #fff;
}

.dark-mode .paint-tool.active {
  border: 2px inset #404040;
}

#paint-canvas {
  background: #fff;
  border: 2px inset #fff;
  cursor: crosshair;
}

#set-as-background {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 3px 8px;
  font-family: 'JerryFont';
  cursor: pointer;
  margin-left: 10px;
}

.dark-mode #set-as-background {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#set-as-background:active {
  border: 2px inset #fff;
}

.dark-mode #set-as-background:active {
  border: 2px inset #404040;
}

#chat-window {
  display: none;
  position: fixed;
  top: 20%;
  right: 20%;
  width: 650px;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  z-index: 100;
}

.dark-mode #chat-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#chat-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#chat-messages {
  height: 280px;
  overflow-y: auto;
  margin: 10px;
  border: 1px solid #000;
  padding: 5px;
}

.dark-mode #chat-messages {
  background: #1a1a1a;
  border: 1px solid #404040;
  color: #fff;
}

#chat-messages div {
  margin: 5px 0;
  word-wrap: break-word;
}

#chat-messages div strong {
  color: #000080;
  margin-right: 5px;
}

.input-container {
  display: flex;
  align-items: center;
  padding: 5px;
}

#chat-room-input {
  flex: 1;
  padding: 5px;
  border: 2px inset #c0c0c0;
  maxlength="200";
}

.dark-mode #chat-room-input {
  background: #1a1a1a;
  border: 2px inset #404040;
  color: #fff;
}

.char-count {
  font-size: 12px;
  color: #666;
  margin-right: 10px;
  font-family: 'JerryFont';
}

.char-count.limit {
  color: #ff0000;
}

.dark-mode .char-count {
  color: #ccc;
}

.dark-mode .char-count.limit {
  color: #ff6666;
}

#send-button {
  padding: 5px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.dark-mode #send-button {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#settings-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 0;
  width: 480px;
  height: 500px;
  font-family: 'JerryFont';
  overflow: hidden;
  z-index: 100;
}

.dark-mode #settings-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#settings-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-family: 'JerryFont';
  cursor: move;
}

.settings-content {
  padding: 20px;
  height: calc(100% - 30px);
  overflow-y: auto;
  box-sizing: border-box;
}

.settings-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #808080;
  overflow: hidden;
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dark-mode .settings-section {
  border-bottom: 1px solid #555;
}

.settings-section-title {
  font-family: 'JerryFont';
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin: 0 0 15px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #000;
}

.dark-mode .settings-section-title {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}

.wallpaper-option {
  cursor: pointer;
  text-align: center;
}

.wallpaper-preview {
  border: 2px solid #808080;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.wallpaper-option:hover .wallpaper-preview {
  border-color: #000080;
}

.dark-mode .wallpaper-preview {
  border: 2px solid #555;
}

.dark-mode .wallpaper-option:hover .wallpaper-preview {
  border-color: #66b3ff;
}

.wallpaper-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.wallpaper-name {
  font-family: 'JerryFont';
  font-size: 12px;
  color: #000;
  font-weight: bold;
}

.dark-mode .wallpaper-name {
  color: #fff;
}

.custom-wallpaper-section {
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed #808080;
}

.dark-mode .custom-wallpaper-section {
  border-top: 1px dashed #555;
}

.custom-wallpaper-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  border-radius: 0;
  padding: 8px 15px;
  font-family: 'JerryFont';
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-wallpaper-button:hover {
  background: #d0d0d0;
}

.dark-mode .custom-wallpaper-button {
  background: #404040;
  border: 2px outset #555;
  color: #fff;
}

.custom-wallpaper-button:active {
  border: 2px inset #fff;
}

.dark-mode .custom-wallpaper-button:active {
  border: 2px inset #555;
}

.settings-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
}

.setting-item:hover {
  background: #e8e8e8;
}

.dark-mode .setting-item {
  background: #3a3a3a;
  border: 1px solid #555;
}

.dark-mode .setting-item:hover {
  background: #444;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-label {
  font-family: 'JerryFont';
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.dark-mode .setting-label {
  color: #fff;
}

.setting-description {
  font-family: 'JerryFont';
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.dark-mode .setting-description {
  color: #ccc;
}

.setting-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 0;
  accent-color: #000000;
  cursor: pointer;
}

.dark-mode .setting-checkbox {
  accent-color: #ffffff;
}

.selection-box {
  position: fixed;
  border: 1px solid #0066cc;
  background-color: rgba(173, 214, 255, 0.3);
  z-index: 9998;
  pointer-events: none;
}

.dark-mode .selection-box {
  border: 1px solid #3399ff;
  background-color: rgba(51, 153, 255, 0.2);
}

#minesweeper-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 300px;
  height: 400px;
  z-index: 100;
}

.dark-mode #minesweeper-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#minesweeper-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.minesweeper-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 2px inset #fff;
  margin-bottom: 10px;
}

.dark-mode .minesweeper-controls {
  background: #2d2d2d;
  border: 2px inset #404040;
}

.mines-counter, .time-counter {
  background: #000;
  color: #f00;
  font-family: 'Digital', monospace;
  padding: 5px 10px;
  border: 2px inset #fff;
}

#minesweeper-reset {
  font-size: 24px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  padding: 2px 10px;
}

.dark-mode #minesweeper-reset {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#minesweeper-grid {
  border: 2px inset #fff;
  display: grid;
  grid-template-columns: repeat(9, 30px);
  grid-template-rows: repeat(9, 30px);
  gap: 1px;
  background: #808080;
}

.minesweeper-cell {
  width: 30px;
  height: 30px;
  background: #c0c0c0;
  border: 2px outset #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.dark-mode .minesweeper-cell {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

.minesweeper-cell.revealed {
  border: 1px solid #808080;
  background: #c0c0c0;
}

.dark-mode .minesweeper-cell.revealed {
  border: 1px solid #404040;
  background: #2d2d2d;
}

.minesweeper-cell.mine {
  background: #ff0000;
}

.minesweeper-cell.flagged {
  background: #c0c0c0;
}

#browser-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 800px;
  height: 600px;
  z-index: 100;
}

.dark-mode #browser-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#browser-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#recycle-bin-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 0;
  width: 450px;
  height: 350px;
  min-width: 300px;
  min-height: 200px;
  z-index: 100;
}

.dark-mode #recycle-bin-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#recycle-bin-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#recycle-bin-contents {
  height: calc(100% - 60px);
  overflow-y: auto;
  background: #fff;
  border: none;
  margin: 2px;
  border: 2px inset #c0c0c0;
  padding: 8px;
  box-sizing: border-box;
}

.dark-mode #recycle-bin-contents {
  background: #1a1a1a;
  border: 2px inset #404040;
  color: #fff;
}

.recycled-item {
  display: flex;
  align-items: center;
  padding: 3px 5px;
  margin: 1px 0;
  cursor: pointer;
  font-family: 'JerryFont';
  user-select: none;
  border: 1px solid transparent;
  font-size: 11px;
}

.recycled-item:hover {
  background: #000080;
  color: #fff;
  border: 1px solid #000080;
}

.dark-mode .recycled-item:hover {
  background: #0066cc;
  color: #fff;
  border: 1px solid #0066cc;
}

.recycled-item img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  image-rendering: pixelated;
}

.recycle-bin-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: 'JerryFont';
  font-size: 11px;
  color: #000;
}

.dark-mode .recycle-bin-status {
  background: #2d2d2d;
  border-top: 1px solid #404040;
  color: #fff;
}

.recycle-bin-toolbar {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 4px 8px;
  font-family: 'JerryFont';
  font-size: 11px;
}

.dark-mode .recycle-bin-toolbar {
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
  color: #fff;
}

.recycle-bin-menu {
  display: inline-block;
  padding: 2px 8px;
  cursor: pointer;
  user-select: none;
}

.recycle-bin-menu:hover {
  background: #000080;
  color: #fff;
}

.dark-mode .recycle-bin-menu:hover {
  background: #0066cc;
  color: #fff;
}

#command-prompt-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  border: 2px outset #fff;
  padding: 15px;
  width: 600px;
  height: 400px;
  font-family: 'Courier New', monospace;
  color: #fff;
  z-index: 100;
}

#command-prompt-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  font-family: 'JerryFont';
  cursor: move;
}

#command-output {
  height: calc(100% - 50px);
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 10px;
  line-height: 1.2;
}

#command-input-line {
  display: flex;
  align-items: center;
  color: #fff;
}

.prompt {
  margin-right: 5px;
  color: #fff;
}

#command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 1em;
  outline: none;
  caret-color: #fff;
}

.glitch-effect {
  animation: glitch 0.2s infinite;
  filter: invert(1);
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-5px, 5px);
  }
  50% {
    transform: translate(5px, -5px);
  }
  75% {
    transform: translate(-3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

.button-glitch {
  animation: button-chaos 0.5s infinite;
}

@keyframes button-chaos {
  0% { transform: translate(0); }
  20% { transform: translate(30px, -20px); }
  40% { transform: translate(-20px, 40px); }
  60% { transform: translate(10px, -40px); }
  80% { transform: translate(-30px, 20px); }
  100% { transform: translate(0); }
}

#blue-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0000aa;
  color: #ffffff;
  padding: 50px;
  font-family: "Courier New", monospace;
  z-index: 99999;
  transform: none !important;
  filter: none !important;
}

#blue-screen pre {
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.5;
}

.owner-username {
  /* No specific color to match others */
}

.owner-tag {
  color: yellow;
}

#achievement-container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.achievement-popup {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  font-family: 'JerryFont';
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
  max-width: 300px;
}

.achievement-popup .icon {
  background: #ffd700;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.achievement-popup .content {
  flex: 1;
}

.achievement-popup .title {
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 5px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#achievements-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 450px;
  height: 520px;
  font-family: 'JerryFont';
  cursor: move;  
  z-index: 100; 
}

.dark-mode #achievements-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#achievements-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#achievements-list {
  height: 420px;
  overflow-y: auto;
  padding: 15px;
  margin: 0;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

.dark-mode #achievements-list {
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.achievement-item {
  background: #c0c0c0;
  border: 2px outset #fff;
  margin-bottom: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievement-item:hover {
  background: #d0d0d0;
}

.dark-mode .achievement-item {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

.dark-mode .achievement-item:hover {
  background: #404040;
}

.achievement-item.locked {
  background: #a0a0a0;
  border: 2px inset #808080;
}

.dark-mode .achievement-item.locked {
  background: #1a1a1a;
  border: 2px inset #333;
}

.achievement-icon {
  background: #ffffff;
  color: #000;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  border: 2px inset #fff;
  flex-shrink: 0;
}

.dark-mode .achievement-icon {
  background: #404040;
  color: #fff;
  border: 2px inset #404040;
}

.achievement-item.locked .achievement-icon {
  background: #808080;
  color: #404040;
}

.dark-mode .achievement-item.locked .achievement-icon {
  background: #333;
  color: #666;
}

.achievement-info {
  flex: 1;
  min-width: 0;
}

.achievement-title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 4px;
  color: #000;
}

.achievement-description {
  font-size: 10px;
  color: #000;
  line-height: 1.2;
  margin: 0;
}

.achievement-item.locked .achievement-title {
  color: #404040;
}

.achievement-item.locked .achievement-description {
  color: #404040;
}

.dark-mode .achievement-title,
.dark-mode .achievement-description {
  color: #fff;
}

.dark-mode .achievement-item.locked .achievement-title,
.dark-mode .achievement-item.locked .achievement-description {
  color: #666;
}

.achievements-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 12px;
  background: #c0c0c0;
  border-top: 2px inset #fff;
  font-family: 'JerryFont';
  font-weight: bold;
  color: #000;
}

.dark-mode .achievements-stats {
  background: #2d2d2d;
  border-top: 2px inset #404040;
  color: #fff;
}

#pinball-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 800px;
  height: 600px;
  z-index: 1000;
}

.dark-mode #pinball-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#pinball-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#pinball-window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

#fnaf-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 800px;
  height: 450px;
  z-index: 100;
}

.dark-mode #fnaf-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#fnaf-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

#fnaf-window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

#fnaf-window.fullscreen #fnaf-frame {
  height: calc(100vh - 72px);
}

.context-menu {
  display: none;
  position: fixed;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 120px;
}

.dark-mode .context-menu {
  background: #2d2d2d;
  border: 2px outset #404040;
}

.context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'JerryFont';
  font-size: 12px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dark-mode .context-menu-item {
  color: #fff;
}

.dark-mode .context-menu-item:hover {
  background: #0066cc;
  color: #fff;
}

.context-menu-item img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

#jerry-skins-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 450px;
  height: 400px;
  font-family: 'JerryFont';
  z-index: 100;
}

.dark-mode #jerry-skins-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#jerry-skins-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.skin-upload-section {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px dashed #808080;
  margin-bottom: 15px;
}

.dark-mode .skin-upload-section {
  border-bottom: 1px dashed #555;
}

.saved-skins-section {
  text-align: center;
}

.saved-skins-section h3 {
  margin: 0 0 15px 0;
  font-family: 'JerryFont';
  font-size: 14px;
}

#saved-skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.saved-skin-item {
  position: relative;
  cursor: pointer;
  border: 2px solid #808080;
  background: #fff;
  transition: border-color 0.2s ease;
}

.saved-skin-item:hover {
  border-color: #000080;
}

.dark-mode .saved-skin-item {
  border: 2px solid #555;
  background: #1a1a1a;
}

.dark-mode .saved-skin-item:hover {
  border-color: #66b3ff;
}

.saved-skin-preview {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.saved-skin-delete {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.saved-skin-item:hover .saved-skin-delete {
  display: flex;
}

.skins-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100% - 30px);
}

.skin-preview-section {
  text-align: center;
}

.skin-preview-section h3 {
  margin: 0 0 10px 0;
  font-family: 'JerryFont';
  font-size: 14px;
}

.skin-preview {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border: 2px inset #fff;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .skin-preview {
  border: 2px inset #404040;
  background: #1a1a1a;
}

.skin-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.skin-upload-section {
  text-align: center;
}

.skin-upload-section h3 {
  margin: 0 0 15px 0;
  font-family: 'JerryFont';
  font-size: 14px;
}

#jerry-skin-input {
  display: none;
}

.skin-upload-button,
.apply-skin-button,
.reset-skin-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 8px 15px;
  font-family: 'JerryFont';
  font-size: 12px;
  cursor: pointer;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dark-mode .skin-upload-button,
.dark-mode .apply-skin-button,
.dark-mode .reset-skin-button {
  background: #404040;
  border: 2px outset #555;
  color: #fff;
}

.skin-upload-button:hover,
.apply-skin-button:hover,
.reset-skin-button:hover {
  background: #d0d0d0;
}

.dark-mode .skin-upload-button:hover,
.dark-mode .apply-skin-button:hover,
.dark-mode .reset-skin-button:hover {
  background: #555;
}

.skin-upload-button:active,
.apply-skin-button:active,
.reset-skin-button:active {
  border: 2px inset #fff;
}

.dark-mode .skin-upload-button:active,
.dark-mode .apply-skin-button:active,
.dark-mode .reset-skin-button:active {
  border: 2px inset #555;
}

.apply-skin-button {
  background: #008000;
  color: #fff;
}

.reset-skin-button {
  background: #800000;
  color: #fff;
}

.dark-mode .apply-skin-button {
  background: #006600;
}

.dark-mode .reset-skin-button {
  background: #660000;
}

.chat-settings {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 10px;
  background: #f0f0f0;
  border-bottom: 1px solid #808080;
  font-family: 'JerryFont';
  font-size: 11px;
}

.dark-mode .chat-settings {
  background: #404040;
  border-bottom: 1px solid #1a1a1a;
  color: #fff;
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.setting-group label {
  font-weight: bold;
}

#username-color {
  width: 30px;
  height: 20px;
  border: 1px solid #808080;
  cursor: pointer;
}

#profile-pic-input {
  font-size: 10px;
  width: 100px;
}

.profile-preview {
  width: 24px;
  height: 24px;
  border: 1px solid #808080;
  overflow: hidden;
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  padding: 4px;
  position: relative;
}

.chat-message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-message-content {
  flex: 1;
  word-wrap: break-word;
  position: relative;
}

.chat-message-username {
  font-weight: bold;
  margin-right: 5px;
}

.chat-message-timestamp {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10px;
  color: #666;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
  background: #fff;
  padding: 0 4px;
  border-radius: 2px;
}

.dark-mode .chat-message-timestamp {
  color: #aaa;
  background: #1a1a1a;
}

.chat-message:hover .chat-message-timestamp {
  opacity: 1;
}

.window {
  transition: all 0.3s ease;
}

.window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

#music-window.fullscreen,
#notepad-window.fullscreen,
#paint-window.fullscreen,
#chat-window.fullscreen,
#settings-window.fullscreen,
#minesweeper-window.fullscreen,
#browser-window.fullscreen,
#recycle-bin-window.fullscreen,
#command-prompt-window.fullscreen,
#achievements-window.fullscreen,
#jerry-skins-window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

#paint-window.fullscreen #paint-canvas {
  width: calc(100vw - 60px) !important;
  height: calc(100vh - 160px) !important;
}

#notepad-window.fullscreen #notepad-content {
  height: calc(100vh - 107px) !important;
}

#chat-window.fullscreen #chat-messages {
  height: calc(100vh - 200px) !important;
}

#minesweeper-window.fullscreen #minesweeper-grid {
  margin: 20px auto;
  width: 280px;
  height: 280px;
}

#command-prompt-window.fullscreen #command-output {
  height: calc(100vh - 120px) !important;
}

#achievements-window.fullscreen #achievements-list {
  height: calc(100vh - 150px) !important;
}

#recycle-bin-window.fullscreen #recycle-bin-contents {
  height: calc(100vh - 102px) !important;
}

.reset-section {
  text-align: center;
  padding: 15px;
}

.reset-settings-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  border-radius: 0;
  padding: 12px 20px;
  font-family: 'JerryFont';
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reset-settings-button:hover {
  background: #d0d0d0;
}

.dark-mode .reset-settings-button {
  background: #404040;
  border: 2px outset #555;
  color: #fff;
}

.dark-mode .reset-settings-button:hover {
  background: #555;
}

.reset-settings-button:active {
  border: 2px inset #fff;
}

.dark-mode .reset-settings-button:active {
  border: 2px inset #555;
}

.reset-description {
  font-family: 'JerryFont';
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

.dark-mode .reset-description {
  color: #ccc;
}

#flash-player-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 15px;
  width: 640px;
  height: 520px;
  font-family: 'JerryFont';
  z-index: 100;
  resize: both;
  overflow: auto;
  min-width: 400px;
  min-height: 350px;
}

.dark-mode #flash-player-window {
  background: #2d2d2d;
  border: 2px outset #404040;
  color: #fff;
}

#flash-player-window .title-bar {
  background: #000080;
  color: #fff;
  padding: 5px;
  margin: -15px -15px 15px -15px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.flash-player-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: calc(100% - 30px);
}

.flash-upload-section {
  text-align: center;
  padding: 15px;
  background: #f0f0f0;
  border: 2px inset #fff;
}

.dark-mode .flash-upload-section {
  background: #404040;
  border: 2px inset #404040;
}

.flash-upload-section h3 {
  margin: 0 0 15px 0;
  font-family: 'JerryFont';
  font-size: 14px;
}

.flash-upload-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 8px 15px;
  font-family: 'JerryFont';
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dark-mode .flash-upload-button {
  background: #404040;
  border: 2px outset #555;
  color: #fff;
}

.flash-upload-button:hover {
  background: #d0d0d0;
}

.dark-mode .flash-upload-button:hover {
  background: #555;
}

.flash-upload-button:active {
  border: 2px inset #fff;
}

.dark-mode .flash-upload-button:active {
  border: 2px inset #555;
}

.flash-info {
  font-family: 'JerryFont';
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.dark-mode .flash-info {
  color: #ccc;
}

.flash-game-container {
  flex: 1;
  border: 2px inset #fff;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#flash-game-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-placeholder {
  text-align: center;
  color: #666;
  font-family: 'JerryFont';
  font-size: 14px;
}

.dark-mode .flash-placeholder {
  color: #ccc;
}

.flash-placeholder p {
  margin: 10px 0;
}

#flash-player-window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

#flash-player-window.fullscreen .flash-game-container {
  height: calc(100vh - 180px) !important;
}

#flash-player-window.fullscreen #flash-game-area ruffle-player {
  height: calc(100vh - 180px) !important;
}

#flash-player-window.fullscreen,
#jerry-skins-window.fullscreen {
  width: 100vw !important;
  height: calc(100vh - 42px) !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  z-index: 10000;
}

.flash-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-family: 'JerryFont';
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.dark-mode .flash-loading {
  color: #ccc;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #000080;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.dark-mode .loading-spinner {
  border: 5px solid #444;
  border-top: 5px solid #66b3ff;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-detail {
  font-size: 12px;
  color: #888;
  margin: 5px 0;
  font-style: italic;
}

.dark-mode .loading-detail {
  color: #aaa;
}

.flash-stop-button {
  background: #c0c0c0;
  border: 1px outset #fff;
  cursor: pointer;
  margin-right: 5px;
  background: #800000;
  color: #fff;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .flash-stop-button {
  background: #660000;
  border: 1px outset #404040;
  color: #fff;
}

.flash-stop-button:hover {
  background: #600000;
}

.dark-mode .flash-stop-button:hover {
  background: #440000;
}

.flash-stop-button:active {
  border: 1px inset #fff;
}

.dark-mode .flash-stop-button:active {
  border: 1px inset #404040;
}

.stop-btn {
  background: #c0c0c0;
  border: 1px outset #fff;
  cursor: pointer;
  margin-right: 5px;
  background: #800000;
  color: #fff;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .stop-btn {
  background: #660000;
  border: 1px outset #404040;
  color: #fff;
}

.stop-btn:hover {
  background: #600000;
}

.dark-mode .stop-btn:hover {
  background: #440000;
}

.stop-btn:active {
  border: 1px inset #fff;
}

.dark-mode .stop-btn:active {
  border: 1px inset #4040