body {
  background-color: #000;
  color: #33ff33; /* Initial text color */
  font-family: 'Share Tech Mono', monospace;
  padding: 2rem;
  margin: 0;
  display:flex;
  justify-content: center;
  align-items: flex-start;
  height: calc(var(--vh, 1vh) * 100);
  overflow:hidden;
  text-shadow: 0 0 3px #33ff33, 0 0 6px #33ff33; /* Initial glow */
}

.terminal-wrapper {
  width: 100%;
  max-width: 800px;
  border: 1px solid #33ff33;
  padding: 1.5rem;
  background-color: #000;
  box-shadow: 0 0 10px #33ff33;
  height: 80vh;
  max-height: 80vh; /* Add max-height to prevent overflow when keyboard pops up */
  overflow-y: auto;  
  scroll-behavior: smooth;
  transition: height 0.3s ease; /* Smooth transition when keyboard appears */
}

@media (max-width: 600px) {
  .terminal-wrapper {
    height: 65vh; /* Adjust for smaller screens */
  }
}

#terminal-output {
  margin-bottom: 1rem;
}

.input-line {
  display: flex;
  align-items: center;
}

.input-line span {
  margin-right: 0.5rem;
}

.input-line input {
  background: transparent;
  border: none;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  flex-grow: 1;
}

a {
  color: #33ff33;
  text-decoration: underline;
}

body.alert {
  background-color: #300 !important;
  animation: flicker 0.2s infinite alternate;
}

@keyframes flicker {
  0%   { background-color: #100; }
  100% { background-color: #300; }
}

.glitch {
  color: red;
  animation: glitchFlash 0.2s infinite alternate;
}



@keyframes glitchFlash {
  from {
    text-shadow: 0 0 2px red, 0 0 5px darkred;
  }
  to {
    text-shadow: 0 0 4px red, 0 0 10px red;
  }
}

#logo-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 1;
  animation: fadeOut 3s ease-in-out 2.5s forwards;
}

#logo-text {
  font-family: 'Courier New', monospace;
  color: #33ff33;
  font-size: 2.5rem;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  text-shadow: 0 0 10px #33ff33, 0 0 20px #33ff33;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

#terminal {
  position: relative;
  overflow: hidden;
}


/* Enhanced scanlines */
#terminal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
}

/* More pronounced screen vignette */
#terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 3;
}


.flicker {
  animation: flicker 3.5s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0;
  }
}

.orangetext {
  color: orange;
  animation: orangeglitchFlash 0.2s infinite alternate;
}

.yellowtext {
  color: yellow;
  animation: yellowglitchFlash 0.2s infinite alternate;
}

@keyframes yellowglitchFlash {
  from {
    text-shadow: 0 0 2px yellow, 0 0 5px rgb(60, 81, 5);
  }
  to {
    text-shadow: 0 0 4px yellow, 0 0 10px yellow;
  }
}

@keyframes orangeglitchFlash {
  from {
    text-shadow: 0 0 2px orange, 0 0 5px rgb(179, 125, 9);
  }
  to {
    text-shadow: 0 0 4px orange, 0 0 10px orange;
  }
}

.terminal-audio-player {
  font-family: monospace;
  color: #33ff33;
  background: #000;
  padding: 1rem;
  border: 1px solid #33ff33;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 5;
  user-select: none;
  text-shadow: 0 0 3px #33ff33;
  margin-bottom: 15px;
}

.terminal-audio-player button {
  background: none;
  border: none;
  color: #33ff33;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-shadow: 0 0 3px #33ff33;
}

.terminal-audio-player button:hover {
  color: red;
  text-shadow: 0 0 5px red;
}

#audioStatus {
  font-size: 0.9rem;
}

/* Customize scrollbar for Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px; /* Vertical scrollbar width */
  height: 12px; /* Horizontal scrollbar height */

}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.8); /* Dark track with subtle opacity */
  border-radius: 10px; /* Rounded corners */

}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.6); /* Glitchy green thumb */
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.6); /* Dark border around thumb */
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.5); /* Glowing effect */

}

/* Thumb hover effect for added glitchy feel */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 1); /* Brighter green on hover */
  box-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.7); /* Stronger glow on hover */

}

/* Firefox scrollbar customization */
scrollbar {
  width: 12px;
}


scrollbar-color: rgba(0, 255, 0, 0.6) rgba(0, 0, 0, 0.8); /* Green thumb, dark track */
scrollbar-width: thin; /* Thin scrollbar */

.fullscreen-container {
  height: calc(var(--vh, 1vh) * 100);
  transition: height 0.3s ease;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: black; /* Optional fallback background */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
