:root {
  --primary: #6d5dfc;
  --secondary: #e4ebf5;
  --text: #44476a;
  --bg: #f0f2f5;
  --white: #ffffff;
  --shadow: 0.3rem 0.3rem 0.6rem #c8d0e7, -0.2rem -0.2rem 0.5rem #ffffff;
}

body {
  font-family: 'Nanum Gothic', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header {
  text-align: center;
  margin-bottom: 40px;
}

.storybook {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 100%;
  min-height: 500px;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.story-image-container {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: inset 0.2rem 0.2rem 0.5rem #c8d0e7;
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
}

.story-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.story-body {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.choices {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.choice-button, .restart-button {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.choice-button:hover {
  color: var(--white);
  background: var(--primary);
}

.vocabulary {
  margin-top: 30px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 0.95rem;
}

.story-card {
  background: var(--white);
  padding: 20px;
  margin: 10px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
}

.story-card:hover {
  transform: scale(1.05);
}
