/* General reset and styling for the entire page */
body,
html {
  width: 100%; /* Explicitly define 100% width */
  height: 100%;
  margin: 0;
  padding: 0; /* Remove padding to use full viewport */
  font-family: "Courier New", Courier, monospace;
  background-color: #222; /* Dark gray background */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #339966;
}

#terminalIcon {
  padding-bottom: 5px;
  padding-left: 3px;
  padding-right: 3px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 80px;
  text-align: center;
  color: #aaa;
  font-family: "MS Sans Serif", Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  border-radius: 5px;
}

#terminalIcon img {
  width: 60px;
}

#terminalIcon > div:last-child {
  font-size: 14px;
  margin-top: 2px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

#terminalIcon:active {
  background-color: #aaa;
  color: white;
}

#minimizedBar {
  /* Your existing styles, adjusted for better alignment with the desktop */
  background-color: #222;
  border: 2px solid #aaa;
  color: #fff;
  text-align: center;
  line-height: 25px;
}

/* Container that mimics the Unix terminal appearance */
#terminal {
  display: flex;
  position: absolute;
  width: 80%;
  height: 80%;
  max-width: 1020px;
  max-height: 750px;
  border-radius: 5px;
  border: 2px solid #aaa;
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1); /* Soft shadow with low opacity */
}

.terminal-bar {
  background-color: #222;
  padding: 10px;
  padding-left: 5px;
  display: flex;
  align-items: center;
  cursor: grab;
}

/* Invisible resize handles */
.handle.bottom-right {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
  width: 10px;
  height: 10px;
  position: absolute;
  background-color: transparent;
  z-index: 999;
}

/* Area where game output is shown */
#gameOutput {
  flex-grow: 1;
  padding: 15px;
  margin: 5px;
  background-color: transparent;
  border: none;
  color: #b2f0b2; /* Updated to a paler green */
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 16px;
  overflow-y: auto;
  text-shadow: 0 0 10px rgba(51, 153, 102, 0.7);
  outline: none;
  resize: none;
}

.terminal-button {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  margin-left: 5px;
  filter: brightness(0.5);
  cursor: pointer;
}

.terminal-button.red {
  background-color: #ff4500; /* Neon orange-red, also known as "OrangeRed" */
}

.terminal-button.yellow {
  background-color: #ffff00; /* Purely bright yellow */
}

.terminal-button.green {
  background-color: #00ff00; /* Electric lime green, neon-like */
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px; /* Height of the taskbar */
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none; /* Standard syntax */
  -webkit-user-select: none; /* WebKit browsers */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

#minimizedBar {
  display: flex;
  width: 160px;
  height: 25px;
  background-color: #222;
  border: 2px solid #aaa;
  color: #aaa;
  justify-content: center; /* Horizontally center the content */
  align-items: center; /* Vertically center the content */
  line-height: 25px;
  cursor: pointer;
  visibility: hidden;
}

#systemTray {
  color: #aaa;
  font-family: "MS Sans Serif", Arial, sans-serif; /* Typical font for Windows 95 */
  margin-right: 20px;
}

/* When maximized, ensure border is visible */
#terminal.maximized {
  box-sizing: border-box;
}
