/* Base Styles */

:root {
  --neon-blue: #00f3ff;
  --neon-purple: #bc13fe;
  --glow-strength: 8px;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: 'Press Start 2P', cursive;
  overflow: hidden;
}

/* Game Container */
.game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.room-container {
  position: relative;
  width: auto;
  height: 100vh;
  aspect-ratio: 1/1;
  background-image: url('../assets/images/digital%20dreamers%204.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* Interactive Elements Layer */
.interactive-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Interactive Items Base Style */
.interactive-item {
  position: absolute;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 1s ease;
  background-color: rgba(255, 0, 0, 0.2);
}

/* Posters - Exact positioning from your CSS */
.poster-doom {
  top: 7.5%;
  left: 13.5%;
  width: 14.8%;
  height: 23%;
}

.poster-mario {
  top: 8.3%;
  left: 33.5%;
  width: 14%;
  height: 22.5%;
}

.poster-alien-logic {
  top: 8.8%;
  left: 52.2%;
  width: 14.4%;
  height: 21.0%;
}

.poster-lords-magic {
  top: 8%;
  left: 70.5%;
  width: 14.5%;
  height: 23.2%;
  transform: rotate(2deg);
}

/* ALF Figurine - Exact positioning */
.alf-figurine {
  top: 57.5%;
  left: 30.5%;
  width: 3%;
  height: 6%;
  z-index: 2;
}

/* OP Figurine - Exact positioning */
.MDL {
  top: 57.5%;
  left: 63.5%;
  width: 3%;
  height: 6%;
  z-index: 2;
}

/* Monitors - Exact positioning */
.left-tv {
  top: 48.5%;
  left: 6.5%;
  width: 15%;
  height: 11.0%;
}

.center-monitor {
  top: 37%;
  left: 34.7%;
  width: 28.5%;
  height: 17.8%;
}

.right-tv {
  top: 44%;
  right: 12%;
  width: 11%;
  height: 11%;
}

/* Computers - Exact positioning */
.left-computer {
  bottom: 25%;
  left: 3%;
  width: 22%;
  height: 6%;
}

.center-computer {
  bottom: 25%;
  left: 31.5%;
  width: 33%;
  height: 7.5%;
}

.right-computer {
  bottom: 26%;
  right: 3.5%;
  width: 23%;
  height: 8%;
}

/* Comic Book - Exact positioning */
.comic-book {
  bottom: 3.0%;
  left: 50.5%;
  width: 6%;
  height: 8%;
  transform: rotate(40deg);
}

/* Lamp */
.lamp {
  top: 27.5%;
  right: 2%;
  width: 4%;
  height: 10%;
  transform: rotate(0deg);
}

/* Hover Effects */
.interactive-item:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 var(--glow-strength) var(--neon-blue);
}

/* Content Container */
.container-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--neon-blue);
  font-size: 8px;
  text-align: center;
}

/* Tooltip */
.tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--neon-blue);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interactive-item:hover .tooltip {
  opacity: 1;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background: #000;
  border: 2px solid #33ff33;
  box-shadow: 0 0 20px rgba(51, 255, 51, 0.4), 0 0 40px rgba(51, 255, 51, 0.2);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  color: #33ff33;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.modal-title {
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  font-size: 14px;
  border-bottom: 1px solid rgba(51, 255, 51, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-text {
  margin: 0 0 24px 0;
  line-height: 1.8;
  font-size: 11px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  flex-grow: 1;
}

.modal-text p {
  margin: 0 0 12px 0;
}

/* Choices container inside modal */
.choices-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.choice-btn, .retro-btn, .modal-choice-btn {
  background: transparent;
  border: 2px solid #33ff33;
  color: #33ff33;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.choice-btn:hover, .retro-btn:hover, .modal-choice-btn:hover {
  background: #33ff33;
  color: #000;
  box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
}

.modal-close {
  background: transparent;
  border: 2px solid #33ff33;
  color: #33ff33;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close:hover {
  background: #33ff33;
  color: #000;
  box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
}

/* CRT Effects */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 51%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 15;
}

.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 0, 0, 0.2) 90%
  );
  pointer-events: none;
  z-index: 10;
}

/* Responsive Adjustments */
@media (min-aspect-ratio: 1/1) {
  .room-container {
    height: 100vh;
    width: auto;
  }
}

@media (max-aspect-ratio: 1/1) {
  .room-container {
    width: 100vw;
    height: auto;
  }
}
/* Boot Sequence Container */
#boot-sequence {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Press Start 2P', monospace;
}

/* CRT Effects */
.crt-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

.crt-flicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  animation: flicker 0.15s infinite;
  pointer-events: none;
}

.boot-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Studio Logo */
.studio-logo {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.logo-text {
  font-size: 3rem;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.logo-subtext {
  color: #666;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

/* Loading Screen */
.loading-screen {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: #333;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--neon-blue);
  animation: loadProgress 2s ease-in-out;
}

.loading-text {
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.loading-details {
  color: #666;
  font-size: 0.8rem;
  height: 1em;
}

/* Warning Screen */
.warning-screen {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.warning-symbol {
  font-size: 5rem;
  color: #ff0000;
  animation: warningPulse 0.5s infinite;
}

.warning-title {
  color: #ff0000;
  margin: 1rem 0;
}

.warning-text {
  color: #ff3333;
  font-family: monospace;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Portal Effect */
.portal-effect {
  position: relative;
  width: 300px;
  height: 300px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.portal-outer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-purple), var(--neon-blue));
  animation: portalSpin 4s linear infinite;
  filter: blur(10px);
}

.portal-inner {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(to right, var(--neon-purple), var(--neon-blue), var(--neon-purple));
  animation: portalSpin 3s linear infinite reverse;
  filter: blur(5px);
}

.portal-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes flicker {
  0% { opacity: 0.1; }
  50% { opacity: 0.05; }
  100% { opacity: 0.1; }
}

@keyframes loadProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes warningPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes portalSpin {
  from { transform: rotate(0deg) scale(0.9); }
  to { transform: rotate(360deg) scale(1.1); }
}

/* Fade out animation */
.fade-out {
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}