/* Base styles */
:root {
  --background-color: #121212;
  --text-color: #e0e0e0;
  --accent-green: rgba(0, 255, 0, 0.5);
  --crt-color: rgba(120, 120, 120, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Courier New', monospace;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

#app {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Background characters */
.background-characters {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.background-characters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.85)
  );
  z-index: 1;
}

.character {
  position: absolute;
  font-family: "MS Gothic", "Meiryo", monospace;
  font-size: 24px;
  color: rgba(180, 180, 180, 0.9);
  opacity: 0.5;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
  z-index: 0;
  transition: opacity 0.15s ease-in-out;
  animation: blink 1.5s infinite alternate;
}

@keyframes blink {
  0% { 
    opacity: 0.1; 
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.2);
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  }
  100% { 
    opacity: 0.3; 
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
  }
}

/* Central content */
.central-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  width: 100%;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.2));
}

.central-image {
  max-width: 85%;
  max-height: 60vh;
  filter: grayscale(100%) brightness(90%);
  opacity: 0.7;
  transition: all 0.5s ease;
}

.central-image:hover {
  filter: grayscale(0%);
}

/* Se quitó el efecto glitch de la imagen central */

/* Japanese quote */
.japanese-quote {
  margin: 20px 0;
  text-align: center;
  font-family: "MS Gothic", "Meiryo", monospace;
  font-size: 24px;
  letter-spacing: 2px;
  color: rgba(120, 120, 120, 0.8);
}

/* CRT effect */
.crt-effect {
  position: relative;
}

.crt-effect::before {
  content: "";
  position: absolute;
  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;
  z-index: 10;
}

/* Buttons */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 40px;
}

.retro-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  filter: brightness(85%) contrast(100%);
  opacity: 0.85;
}

.retro-button img {
  width: 88px;
  height: 31px;
  object-fit: cover;
}

.retro-button:hover {
  transform: translateY(2px);
  filter: brightness(100%) contrast(120%);
}

.retro-button:active {
  transform: translateY(4px);
}

/* Animations */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-5px, -5px); }
  60% { transform: translate(5px, 5px); }
  80% { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

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

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Media queries */
@media (max-width: 768px) {
  .japanese-quote {
    font-size: 18px;
  }
  
  .buttons-row {
    gap: 10px;
  }
  
  .retro-button img {
    width: 88px;
    height: 31px;
  }
}
