@font-face {
  font-family: 'VT323';
  src: url('/fonts/VT323-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: black;
  color: #00ff55;
  font-family: 'VT323', monospace;
  margin: 0;
  padding: 0;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.scanlines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 2;
}

.screen {
  height: 100vh;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5em 1em;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 0 2px #00ff55, 0 0 5px #00ff55;
  animation: flicker 2s infinite;
  gap: 0.4em;
}

.hidden {
  display: none;
}

.cursor {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.85;
  }
  22% {
    opacity: 0.4;
  }
  57% {
    opacity: 0.7;
  }
}

h1 {
  font-size: 3.5rem;
  margin: 0.2em 0 0.3em 0;
}

.divider {
  font-size: 2rem;
  margin: 0.2em 0 0.6em 0;
  letter-spacing: 0.25em;
}

.menu-item {
  font-size: 1.6rem;
  margin: 0.2em 0;
}

.footer {
  margin-top: 1.5em;
  font-size: 0.95rem;
  text-align: center;
}

.enter-button {
  border: 1px solid #00ff55;
  padding: 0.4em 1.2em;
  font-size: 1.6rem;
  cursor: pointer;
  background: black;
  color: #00ff55;
  text-shadow: 0 0 1px #00ff55;
}

.fade-out {
  animation: fadeOutUp 2s forwards;
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
  }
}

.access-denied {
  font-size: 2.5rem;
  color: red;
  text-shadow: 0 0 3px red, 0 0 8px red;
  margin-top: 2em;
}

#password {
  background: none;
  border: none;
  border-bottom: 1px solid #00ff55;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: #00ff55;
  width: 60%;
  text-align: center;
  outline: none;
  animation: blink 1s steps(1) infinite;
  margin-top: 0.8em;
}

.terminal {
  white-space: pre;
  font-size: 1rem;
  text-align: left;
}

.log-output {
  margin-top: 1.2em;
  font-size: 0.95rem;
  min-height: 1.2em;
}

/* Mobil finomítás */
@media (max-width: 480px) {
  h1 {
    font-size: 3.2rem;
  }

  .divider {
    font-size: 2rem;
  }

  .menu-item {
    font-size: 1.8rem;
  }

  .enter-button {
    font-size: 1.8rem;
  }

  #password {
    font-size: 1.4rem;
    width: 80%;
  }

  .access-denied {
    font-size: 2.5rem;
  }

  .terminal {
    font-size: 1.1rem;
  }

  .footer {
    font-size: 1rem;
  }
}
