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

body {
  background-color: #111111;
  color: white;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

#background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

#main-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

#game-title {
  font-size: 42px;
  color: #cc0000;
  margin-bottom: 5px;
  letter-spacing: 5px;
}

#subtitle {
  color: #888888;
  font-size: 13px;
  margin-bottom: 30px;
}

#location-text {
  color: #aaaaaa;
  font-size: 12px;
  margin-bottom: 20px;
  border: 1px solid #333333;
  padding: 5px 10px;
  display: inline-block;
}

#character-box {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 2;
  text-align: center;
}

#character-img {
  width: 180px;
  height: 360px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-color: transparent;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}

#character-name-text {
  color: #ffcc00;
  font-size: 12px;
  margin-top: 3px;
}

#dialogue-area {
  background-color: #1a1a1a;
  border: 1px solid #cc0000;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
}

#speaker-name {
  color: #ffcc00;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #333333;
  padding-bottom: 5px;
}

#dialogue-text {
  color: #dddddd;
  font-size: 15px;
  line-height: 1.6;
}

#story-box {
  background-color: rgba(0, 0, 0, 0.7);
  border-left: 3px solid #cc0000;
  padding: 15px 20px;
  margin-bottom: 20px;
  text-align: left;
}

#story-text {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}

#buttons-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

#buttons-area button {
  background-color: #1a1a1a;
  color: #cccccc;
  border: 1px solid #444444;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 3px;
  transition: background-color 0.2s;
}

#buttons-area button:hover {
  background-color: #cc0000;
  color: white;
  border-color: #cc0000;
}

#click-to-continue { display: none; }

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

.play-again-btn {
  background-color: #cc0000 !important;
  color: white !important;
  border-color: #cc0000 !important;
  text-align: center !important;
  margin-top: 10px;
}

.play-again-btn:hover {
  background-color: #aa0000 !important;
}
