body {
  padding: 10px;
  background-color: #f0f8ff;
  line-height: 1.4;
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  color: #727272;
  height: calc(100vh - 60px);
}

.container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: transparent !important;
  margin-top: 8px;
  padding-top: 8px;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: #1e90ff !important;
}

.navbar {
  background-color: #1e90ff !important;
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #f7f6f5;
  margin-right: 1rem;
}

.navbar-brand:hover {
  color: #f7f6f5;
  opacity: 0.8;
}

.quiz-container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 5px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button-group button {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background-color: #1e90ff;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30,144,255,0.10);
  position: relative;
}

.button-group button:hover {
  background-color: #187bcd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,144,255,0.20);
}

.button-group button:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
}

h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
}

#result {
  font-size: 18px;
  color: #666;
  margin: 15px 0;
  text-align: center;
}

#hints {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

#hints p {
  font-size: 18px;
  color: #333;
  margin: 8px 0;
  padding: 8px;
  border-left: 3px solid #1e90ff;
  background-color: white;
  border-radius: 4px;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hints p.show {
  opacity: 1;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #666;
}

ul li {
  margin: 10px 0;
  font-size: 16px;
}

@media (max-width: 600px) {
  .quiz-container {
    padding: 15px;
    margin-top: 10px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  #result {
    font-size: 16px;
  }
  
  .button-group {
    gap: 10px;
  }
  .button-group button {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  ul li {
    font-size: 14px;
  }
  
  #hints p {
    font-size: 16px;
    padding: 6px;
  }
  
  .button-group button:hover::after {
    font-size: 12px;
    bottom: -25px;
  }
}

.hidden-eng {
  display: none;
  color: #1e90ff;
  font-weight: 500;
}

.visible {
  display: block !important;
}

.highlighted-dialogue {
  color: #1e90ff !important;
  font-weight: bold !important;
}

.number-highlight {
  color: #1e90ff;
  font-weight: bold;
  margin-right: 8px;
}

.indented {
  display: block;
  margin-left: 20px;
  margin-top: 5px;
}

.dialogue-paragraph {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
}

.daniel-dialogue {
  background-color: #f0f8ff;
}

.olivia-dialogue {
  background-color: #fff0f5;
}

.speaker-name {
  font-weight: bold;
  color: #1e90ff;
}

.dialogue-text {
  margin-left: 5px;
}

.summary-title {
  color: #1e90ff;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.summary-item {
  margin-bottom: 8px;
  color: #666;
}

.word-list-title {
  color: #1e90ff;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.vocab-item {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.korean-text {
  color: #333;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.vocab-english {
  color: #666;
  font-size: 0.9em;
}
