body {
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  background-color: #2f2f2f;
  color: white;
}

h1 {
  margin: 0;
}

a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* Desktop Interface */
.desktop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.desktop-header {
  text-align: center;
}

.start-button {
  background-color: #00ff00;
  border: none;
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 5px;
}

.start-button:hover {
  background-color: #00cc00;
}

/* Terminal Interface */
.terminal-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-color: black;
  color: white;
  border: 2px solid #00ff00;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  overflow: hidden;
  z-index: 1000;
}

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

.terminal-header img {
  height: 30px;
}

.control-buttons {
  display: flex;
}

.control {
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
}

.control:hover {
  color: #00ff00;
}

.terminal-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #003300;
  padding: 10px;
}

.terminal-nav {
  display: flex;
  justify-content: space-around;
}

.terminal-nav-button {
  color: white;
  font-size: 16px;
  padding: 5px 10px;
}

.terminal-nav-button:hover {
  background-color: #00ff00;
}

/* Custom Scrollbar */
.output::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.output::-webkit-scrollbar-track {
  background: #003300;
  border-radius: 10px;
}

.output::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 10px;
  border: 2px solid #003300;
}

.output::-webkit-scrollbar-thumb:hover {
  background: #88ff88;
  border: 2px solid #005500;
}

.output::-webkit-scrollbar-thumb:active {
  background: #66ff66;
  border: 2px solid #004400;
}

/* Disable text selection */
* {
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -moz-user-select: none; /* For Firefox */
}

/* Audio */
audio {
  display: none;
}

/* Style for the mute button */
.mute-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.mute-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
} 

/* Terminal Container (Initially Hidden) */
.terminal-container {
  display: none;
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 50%;
  height: 80vh;
  background: linear-gradient(145deg, #000, #011f11);
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 20px #00ff00;
  overflow: hidden;
  flex-direction: column;
  z-index: 100;
  transition: all 0.3s ease-in-out;
}

/* Terminal Header */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #002200;
  padding: 10px;
  border-bottom: 2px solid #00ff00;
  color: #00ff00;
  font-size: 1rem;
}

/* Output Styles */
.output {
  font-family: 'Courier New', monospace;
  overflow-y: auto; /* Enables vertical scrolling */
  flex-grow: 1;
  padding: 10px;
  font-size: 1.2rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  max-height: 61vh;
  animation: flicker 1.5s infinite;
  scroll-behavior: smooth; /* Smooth scrolling behavior */
  position: relative;
  z-index: 1;
}


/* Ensure clickable links are styled correctly */
a.url-link {
  color: #1e90ff; /* Color for the link */
  text-decoration: underline; /* Underline links */
  cursor: pointer; /* Change cursor to indicate it's clickable */
  z-index: 10;
  position: relative;
}

a.url-link:hover {
  color: #00bfff; /* Optional: change color on hover */
  text-decoration: none; /* Optional: remove underline on hover */
  z-index: 10;
  position: relative;
}

.blinking-cursor {
  position: absolute;
  display: inline-block;
  width: 10px;
  height: 18px;
  background: #00ff00;
  animation: blink 1s steps(1, start) infinite;
  transform: translateX(0) translateY(-175%); /* Adjusted for visibility */
}

/* Terminal Footer */
.terminal-footer {
  background: #002200;
  padding: 5px;
  text-align: center;
}

.terminal-nav-button {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 16px;
  background: #002200;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-size: 1rem;
  font-family: 'Courier New', Monaco, monospace;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.terminal-nav-button:hover {
  background: #001700;
  color: #88ff88;
  box-shadow: 0 0 12px #88ff88;
  transform: scale(1.05);
}

.terminal-nav-button:active {
  transform: scale(0.95);
  background: #003300;
  box-shadow: 0 0 4px #006600;
}

/* Window Control Buttons */
.control {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  text-align: center;
  line-height: 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.minimize {
  background: yellow;
  color: #000;
}

.maximize {
  background: green;
  color: #fff;
}

.close {
  background: red;
  color: #fff;
}

.control:hover {
  opacity: 0.8;
  transform: scale(1.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Retro 8-bit terminal look for media elements */
.media-container {
  border: 3px solid #00FF00; /* Classic green border for terminal look */
  background-color: #000000; /* Black background */
  box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.6); /* Glowing effect */
  padding: 5px;
  font-family: 'Courier New', monospace; /* Monospace font for terminal feel */
  color: #00FF00; /* Green text color for a retro feel */
  display: inline-block; /* Wrap tightly around content */
  margin: 10px auto; /* Center horizontally */
  max-width: 90%; /* Prevent it from overflowing the container */
  text-align: center; /* Center the content inside */
}

/* Styles for media elements (images, videos, audio) */
.media-container img,
.media-container video,
.media-container audio {
  display: block; /* Ensure proper layout */
  margin: 0 auto; /* Center the media within the container */
  max-width: 90%; /* Limit the width to 90% of the container */
  max-height: 50vh; /* Limit the height to 50% of the viewport height */
  object-fit: contain; /* Scale proportionally without cropping */
}



/* Keyframes for Flicker Effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.5;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}