/* Noir theme styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Playfair Display', serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(120, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(120, 0, 0, 0.05) 0%, transparent 50%);
}

.typewriter {
  max-width: 800px;
  width: 100%;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 10px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 
    0 2px 10px rgba(200, 0, 0, 0.5),
    0 0 30px rgba(200, 0, 0, 0.3);
  letter-spacing: 3px;
}

.story-container {
  min-height: 300px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #d0d0d0;
  font-family: 'Source Code Pro', monospace;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: #ff3333;
  font-weight: 600;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.controls {
  text-align: center;
}

.noir-btn {
  background: linear-gradient(135deg, #2a0000 0%, #1a0000 100%);
  color: #fff;
  border: 2px solid #400000;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.noir-btn:hover {
  background: linear-gradient(135deg, #400000 0%, #2a0000 100%);
  border-color: #600000;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.noir-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .typewriter {
    padding: 20px;
  }
  
  .story-text {
    font-size: 1rem;
  }
}

/* Typing animation for story text */
.typing {
  animation: typing 0.05s steps(1) forwards;
}

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