body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #00247d;
  border-bottom: 5px solid #ff0000;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.header h1 img {
  height: 24px;
  margin-right: 0.5rem;
}

.dropdown {
  position: relative;
}

.dropdown button {
  background-color: white;
  color: black;
  padding: 10px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 240px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content .group {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.dropdown-content .group:last-child {
  border-bottom: none;
}

.dropdown-content a {
  color: black;
  padding: 8px 14px;
  font-size: 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.content {
  padding: 2rem 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.8rem;
}

.big {
  font-size: 4.5rem;
  margin: 1rem 0;
}

.pronunciation {
  margin: 1rem 0;
  font-size: 2rem;
}

.example {
  margin: 2rem auto;
  padding: 1rem 0;
  text-align: center;
}

.example strong {
  display: block;
  font-size: 2rem;
}

.romanized {
  font-size: 1.8rem;
  color: #333;
}

.english {
  font-size: 1.7rem;
  color: #666;
}

.controls {
  margin-top: 2rem;
}

button {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  margin: 0 0.5rem;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 1.2rem;
  }

  .dropdown button, .dropdown-content a {
    font-size: 0.9rem;
  }

  .big {
    font-size: 3rem;
  }

  .pronunciation, .example strong, .romanized, .english {
    font-size: 1.5rem;
  }
}