/* --- LOADER STYLES --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background-image: url("https://i.imgur.com/o64BmSi.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  font-family: "Tahoma", sans-serif;
}

#loading-screen .panel {
  position: fixed;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  background: #c0c0c0;
  padding: 20px 28px 28px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  box-shadow: 0 0 0 1px #808080 inset, 0 0 0 2px #000 inset;
  text-align: center;
  min-width: 340px;
}

#loading-screen .loading-label {
  font-size: 20px;
  margin-bottom: 10px;
}

#loading-screen .progress {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: #000;
  width: max-content;
  margin: 0 auto;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

#loading-screen .segment {
  width: 28px;
  height: 28px;
  background: #dcdcdc;
}

#loading-screen .segment.filled {
  background: #ffffff;
}

@media (max-width: 480px) {
  #loading-screen .panel {
    min-width: 260px;
    padding: 16px 20px 24px;
  }
  #loading-screen .loading-label {
    font-size: 16px;
  }
  #loading-screen .segment {
    width: 20px;
    height: 20px;
  }
}

/* --- APP CONTAINER --- */
.app-container.hidden {
  visibility: hidden;
  opacity: 0;
}
.app-container {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #008080; /* Teal background */
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrollbars */
  color: black;
}

/* Desktop styles */
.desktop {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative; /* For absolute positioning of icons and windows */
  cursor: default; /* Default desktop cursor */
  padding-top: 10px; /* Add some space at the top */
  padding-left: 10px;
}

/* Icon styles */
.icon {
  visibility: hidden; /* Hide until positioned by JS */
  position: absolute; /* Enable free positioning */
  z-index: 4; /* Above desktop, below windows */
  display: flex; /* keep flex for alignment of img and span */
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none; /* Prevent text selection */
  width: 100px; /* Give icons a fixed width for wrapping */
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  /* Add a subtle transition for the snapping effect */
  transition: top 0.1s ease-out, left 0.1s ease-out;
}

.icon img {
  width: 48px; /* Icon size */
  height: 48px;
  margin-bottom: 8px;
}

.icon span {
  color: white;
  font-size: 0.75rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for better visibility */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Allow text to use full icon width */
  text-align: center;
}

/* Window styles */
.window {
  background-color: #c0c0c0; /* Window background color - Changed to match Win95 better */
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4); /* More subtle shadow */
  position: absolute; /* Absolute positioning within the desktop */
  top: 50px;
  left: 100px;
  width: 320px; /* Default width */
  height: 240px; /* Default height */
  display: none; /* Initially hidden */
  flex-direction: column; /* Use flexbox for layout */
  z-index: 10; /* Ensure windows are above desktop icons */
  box-sizing: border-box; /* Include border in width/height */
}

.window.active {
  display: flex; /* Show the window when active */
  z-index: 20; /* Bring active window to the front */
}

.window.resizable {
  resize: both; /* Enable resizing in both directions */
  overflow: hidden; /* Hide overflow by default, content area will handle scroll */
  min-width: 200px; /* Set minimum width */
  min-height: 150px; /* Set minimum height */
}

.window-titlebar {
  background-color: #000080; /* Title bar color */
  color: white;
  padding: 3px 4px; /* Adjusted padding */
  font-size: 0.8rem;
  font-weight: bold; /* Bold title */
  display: flex;
  justify-content: space-between; /* Space between title and buttons */
  align-items: center; /* Vertically center title and buttons */
  cursor: grab; /* Show a grab cursor */
  height: 22px; /* Consistent height */
  box-sizing: border-box;
}
.window-titlebar:active {
  cursor: grabbing; /* Show a grabbing cursor */
}

.window-title {
  margin-right: auto; /* Push title to the left */
  margin-left: 2px;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Add ellipsis (...) if title is too long */
  max-width: calc(100% - 60px); /* Adjust max-width based on button size */
}

.window-controls {
  display: flex;
  gap: 3px; /* Space between buttons */
}

.window-control-button {
  width: 16px; /* Button size */
  height: 16px;
  background-color: #c0c0c0; /* Button background */
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5); /* Inner highlight */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: 'Times New Roman', serif; /* More classic font for symbols */
  font-size: 0.8rem; /* Adjust font size as needed */
  font-weight: bold;
  line-height: 0; /* Important for vertical centering of symbols */
  padding: 0; /* Reset padding */
  color: black;
}

.window-control-button:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none; /* Remove shadow on press */
}

.window-minimize {
  /* Uses text symbol */
}
.window-close {
  /* Uses text symbol */
}

.window-content {
  padding: 2px; /* Minimal padding inside window */
  font-size: 0.9rem;
  flex-grow: 1; /* Allow content to fill remaining space */
  overflow: auto; /* Add scrollbars ONLY if content overflows */
  background-color: white; /* Standard content background */
  border: 1px inset #808080; /* Inset border for content area */
  margin: 2px; /* Margin around the content area */
  position: relative; /* Needed for absolute positioned elements inside */
  display: flex; /* Make content a flex container for easier layout */
  flex-direction: column; /* Stack children vertically */
}

/* Specific app content styling */
.window-content textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  padding: 5px;
  box-sizing: border-box;
}
.window-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
#dosbox-container,
#wolf3d-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.jsdos {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  background-color: black;
}

.jsdos canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

#wolf3d .window-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: black;
}

/* Start Menu styles */
.start-menu {
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 180px;
  display: none;
  flex-direction: column;
  z-index: 50;
  padding: 2px;
}

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

.start-menu-item {
  padding: 5px 10px 5px 25px;
  font-size: 0.8rem;
  color: black;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

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

/* Taskbar styles */
#taskbar {
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 3px;
  z-index: 40;
  box-sizing: border-box;
}

#start-button {
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 2px 8px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  box-sizing: border-box;
}

#start-button:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 3px 7px 1px 9px;
}

#start-button img {
  width: 20px;
  height: 20px;
}

#taskbar-apps {
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
  overflow: hidden;
}

.taskbar-app {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 2px 6px;
  margin: 0 2px;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.taskbar-app img {
  width: 16px;
  height: 16px;
}

.taskbar-app.active,
.taskbar-app:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  background-color: #e0e0e0;
  box-shadow: none;
  padding: 3px 5px 1px 7px;
}

/* --- Guestbook / Shoutbox Styles --- */
#notepad .window-content {
  background-color: #c0c0c0;
  padding: 8px;
  border: none;
  margin: 0;
  flex-direction: column;
}

.guestbook-form {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.guestbook-fieldset {
  border: 1px inset #808080;
  padding: 10px;
}

.guestbook-field {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.guestbook-field-message {
  align-items: flex-start;
}

.guestbook-field label {
  width: 110px;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding-right: 5px;
}

.guestbook-field input,
.guestbook-field textarea {
  flex-grow: 1;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 2px #808080;
  background-color: white;
  padding: 3px;
  font-size: 0.8rem;
  min-width: 0; /* Fix for flexbox overflow */
}

.guestbook-field textarea {
  resize: vertical;
  min-height: 60px;
  font-family: 'Courier New', Courier, monospace;
}

.guestbook-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.guestbook-actions button {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.guestbook-actions button:active,
.guestbook-actions button:disabled {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
}

.guestbook-actions button:disabled {
  color: #808080;
  cursor: not-allowed;
}

.guestbook-entries-container {
  flex-grow: 1;
  border: 1px inset #808080;
  background-color: white;
  padding: 2px;
  overflow-y: auto;
  min-height: 100px;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.guestbook-entry {
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 8px;
}

.guestbook-entry:last-child {
  border-bottom: none;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.guestbook-entry-name {
  font-weight: bold;
  font-size: 0.85rem;
  color: #000080;
}

.guestbook-entry-date {
  font-size: 0.7rem;
  color: #808080;
}

.guestbook-entry-message {
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Browser styles */
#chrome .window-content {
  padding: 0;
  margin: 0;
  border: none;
}
.browser-toolbar {
  background-color: #c0c0c0;
  padding: 5px;
  border-bottom: 1px solid #808080;
  display: flex;
  align-items: center;
  height: 30px;
  flex-shrink: 0;
}

.address-bar-container {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.browser-address-bar {
  flex-grow: 1;
  height: 22px;
  border: 1px inset #808080;
  background-color: white;
  padding: 2px 5px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.8rem;
}

.browser-go-button {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
  padding: 2px 8px;
  font-size: 0.8rem;
  margin-left: 5px;
  height: 22px;
  cursor: pointer;
}

.browser-go-button:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
  padding: 3px 7px 1px 9px;
}

.browser-viewport {
  position: relative;
  flex-grow: 1;
  background-color: white;
  overflow: hidden;
}

.browser-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #c0c0c0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-family: 'Times New Roman', Times, serif;
  z-index: 5;
  display: none;
}

/* --- Paint Assistant Styles --- */
#paint-assistant {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 100px;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: -1;
  transition: opacity 0.3s ease-in-out;
}

#paint-assistant.visible {
  display: flex;
  z-index: 1;
}

.assistant-image {
  width: 80px;
  height: auto;
  display: block;
}

.assistant-bubble {
  background-color: #ffffe1;
  border: 1px solid black;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: black;
  margin-bottom: 8px;
  position: relative;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
  max-width: 200px;
  word-wrap: break-word;
  text-align: center;
}

.assistant-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffe1;
}

.assistant-bubble::before {
  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 black;
  z-index: -1;
}

/* --- Simple Paint App Styles --- */
#paint .window-content {
  padding: 0;
  margin: 0;
  background-color: #c0c0c0;
  border: none;
}

.paint-toolbar {
  background-color: #c0c0c0;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #808080;
  height: 30px;
  flex-shrink: 0;
}

.paint-colors,
.paint-brush-sizes {
  display: flex;
  gap: 3px;
  border: 1px inset #808080;
  padding: 2px;
}

.paint-color-swatch {
  width: 20px;
  height: 20px;
  border: 1px solid black;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.paint-color-swatch.active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
}

.paint-size-button,
.paint-clear-button {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
  padding: 2px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 25px;
  text-align: center;
}

.paint-size-button.active,
.paint-size-button:active,
.paint-clear-button:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
  padding: 3px 5px 1px 7px;
}

#paint-canvas {
  border-top: 1px solid #808080;
  flex-grow: 1;
  background-color: white;
  cursor: crosshair;
  display: block;
}

/* --- Minesweeper Styles --- */
#minesweeper .window-content {
  padding: 0;
  margin: 0;
  background-color: #c0c0c0;
  border: none;
}

.minesweeper-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background-color: #c0c0c0;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  margin: 5px;
  flex-shrink: 0;
}

.minesweeper-info {
  background-color: black;
  color: red;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 2px 5px;
  border: 1px inset #808080;
  min-width: 60px;
  text-align: center;
}

.minesweeper-reset-button {
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  cursor: pointer;
}

.minesweeper-reset-button:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.minesweeper-grid-container {
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px inset #808080;
  margin: 0 5px 5px 5px;
  overflow: auto;
  background-color: #c0c0c0;
  flex-grow: 1;
}

.minesweeper-grid {
  display: grid;
  border: 1px solid #808080;
}

.minesweeper-cell {
  width: 20px;
  height: 20px;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.minesweeper-cell.revealed {
  background-color: #bdbdbd;
  border: 1px solid #808080;
  cursor: default;
}

.minesweeper-cell.mine {
}
.minesweeper-cell.exploded {
  background-color: red;
}

.minesweeper-cell[data-number='1'] {
  color: blue;
}
.minesweeper-cell[data-number='2'] {
  color: green;
}
.minesweeper-cell[data-number='3'] {
  color: red;
}
.minesweeper-cell[data-number='4'] {
  color: #000080;
}
.minesweeper-cell[data-number='5'] {
  color: #800000;
}
.minesweeper-cell[data-number='6'] {
  color: #008080;
}
.minesweeper-cell[data-number='7'] {
  color: black;
}
.minesweeper-cell[data-number='8'] {
  color: gray;
}

.minesweeper-hint-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 5px 8px;
  background-color: #c0c0c0;
  flex-shrink: 0;
}

.minesweeper-hint-button {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
  padding: 2px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  height: 24px;
}

.minesweeper-hint-button:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
  padding: 3px 7px 1px 9px;
}

.minesweeper-commentary {
  font-size: 0.75rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #000080;
  text-align: right;
  flex-grow: 1;
  margin-left: 10px;
  height: auto;
  min-height: 24px;
  line-height: 1.3;
  word-wrap: break-word;
}

/* --- Icons Inside Windows --- */
.window-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 10px;
  margin: 5px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  vertical-align: top;
}

.window-icon:hover {
  background-color: #000080;
  color: white;
}

.window-icon:hover span {
  background-color: #000080;
  color: white;
}

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

.window-icon span {
  font-size: 0.7rem;
  color: black;
  max-height: 2.4em;
  overflow: hidden;
  line-height: 1.2em;
}

/* --- Image Viewer Styles --- */
#imageViewer .window-content {
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #808080;
  border: none;
  margin: 0;
}

#imageViewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- GemMail Styles --- */
#gemMail .window-content {
  background-color: #c0c0c0;
  padding: 8px;
  border: none;
  margin: 0;
}
.gemmail-field {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.gemmail-field label {
  width: 60px;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding-right: 5px;
}
.gemmail-input {
  flex-grow: 1;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 2px #808080;
  background-color: white;
  padding: 3px;
  font-size: 0.8rem;
}
.gemmail-textarea {
  width: 100%;
  flex-grow: 1;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 2px #808080;
  background-color: white;
  padding: 3px;
  font-size: 0.8rem;
  font-family: 'Courier New', Courier, monospace;
  resize: none;
  margin-top: 5px;
  box-sizing: border-box;
}
.gemmail-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.gemmail-actions button {
  background-color: #c0c0c0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}
.gemmail-actions button:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
}

#myComputer .window-content,
#notepad .window-content,
#imageViewer .window-content,
#gemMail .window-content {
  flex-direction: column;
}

#paint .window-content,
#minesweeper .window-content,
#chrome .window-content,
#imageViewer .window-content {
  padding: 0;
  margin: 0;
  border: none;
}