/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #000;
  color: #00ff99;
  overflow: hidden;
}

/* Terminalfenster */
#screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

#terminal {
  font-size: 1.1rem;
  white-space: pre-wrap;
  max-width: 900px;
  line-height: 1.5;
  z-index: 2;
}

/* Scanline Effekt */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Klickbarer Trigger */
.clickable-archive {
  color: #ff0070;
  text-decoration: underline;
  cursor: pointer;
}

/* Endscreen */
#end-screen {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  z-index: 5;
}

#final-title .line {
  font-size: 3rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  letter-spacing: 0.15em;
  text-align: center;
}

#final-title .line.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Film Overlay */
#film-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  color: #fff;
  z-index: 10;
  display: none;
  flex-direction: column;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: #111;
  border-bottom: 1px solid #333;
  font-size: 1rem;
}

#closeOverlay {
  background: none;
  border: none;
  color: #ff0066;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

/* Film Grid */
.film-grid {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.film-grid div {
  background: #1a1a1a;
  padding: 0.8rem;
  border: 1px solid #333;
  font-size: 0.9rem;
  color: #00ffcc;
}