/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Coral+Pixels&family=Underdog&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* Base body styles */
body {
  background-color: black;
  color: green;
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 350;
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

/* Headings */
h1 {
  color: green;
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 525;
  font-size: 2rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Wrapper for centering content */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  width: 100vw;
}

/* Button container */

#options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Button styles (options buttons) */
#options button,
button:not(.icon-button):not(.social-button) {
  flex: 1 1 200px; /* grow/shrink, min width 200px */
  max-width: 300px;
  border: 0.1rem solid green;
  font-family: "Funnel Sans", sans-serif;
  font-size: 1.25rem; /* roughly 20px */
  color: green;
  padding: 1rem;
  margin: 0.5rem;
  background-color: black;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

/* Icon button styles */
.icon-button, .social-button {
  background-color: transparent;
  border: none !important;
  cursor: pointer;
  padding: 0;
  transition: none;
}

/* Icon styles */
.icon {
  font-size: 1.5rem;
  color: green;
  border: none !important;
  transition: font-size 0.2s;
}

/* Options button hover effect */
#options button:hover,
button:not(.icon-button):not(.social-button):hover {
  background-color: green;
  color: black;
  box-shadow: 0 0 8px green, 0 0 16px green;
}

/* Icon button hover effect: only icon grows, cursor stays pointer */
.icon-button:hover .icon,
.social-button:hover .icon {
  font-size: 1.8rem;
}

.icon-button:hover,
.social-button:hover {
  background-color: transparent;
  box-shadow: none;
}

/* ASCII art block
#ascii-art {
  font-family: 'Courier Prime', monospace;
  white-space: pre;
  overflow: auto;
  max-width: 250ch;
  max-height: 80vh;
  font-size: 4px;
  line-height: .53px;
  margin: 0 auto;
  display: block;
  padding: 1rem;
  border: 1px solid green;
} */

/* CRT overlay */
#foreground-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('crt-overlay.gif'); /* or .webm with <video> tag */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1000;
}

/* Scanline overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.03) 0px,
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 999;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

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

/* Typewriter effect */
.typewriter {
  font-size: 1.2rem;
  white-space: pre-wrap;
  overflow: hidden;
  display: inline-block;
}
