body {
  font-family: 'Arial', sans-serif;
  background-color: #FFFFF0;
  /* Ivory */
  color: #333;
}

.App {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #7CB342;
  /* Light Green */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.App-header h1 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 28px;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.home-page h2,
.sub-page h2 {
  text-align: center;
  color: #7CB342;
  margin-top: 30px;
  margin-bottom: 20px;
}

.subpage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.subpage-button {
  background-color: #FFFFF0;
  border: 2px solid #7CB342;
  padding: 12px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  color: #7CB342;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.subpage-button:hover {
  transform: translateY(-3px);
  background-color: #7CB342;
  color: #FFFFF0;
}

.file-count {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
  color: #555;
}

.audio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.audio-item {
  background-color: #FFFFF0;
  /* Match the page background color */
  border-radius: 10px;
  padding: 20px;
  /* Further increased padding */
  margin-bottom: 15px;
  /* Reduced from 25px to 15px */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-item.played {
  background-color: #f0f0f0;
  /* Dimmed background for played songs */
}

.audio-item.currently-playing {
  background-color: #e8f5e9;
  border: 2px solid #7CB342;
}

.audio-item:hover {
  transform: translateY(-5px);
}

.audio-item h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #7CB342;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

audio {
  width: 100%;
}

.back-button {
  display: block;
  margin: 30px auto 0;
  background-color: #7CB342;
  color: #FFFFF0;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease-in-out;
}

.back-button:hover {
  background-color: #8BC34A;
  /* Slightly Lighter Green */
}

@media (max-width: 600px) {
  .App {
    padding: 10px;
  }

  .audio-list {
    grid-template-columns: 1fr;
  }
}

.clock {
  font-size: 24px;
  font-weight: bold;
  color: #7CB342;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #FFFFF0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-time-display {
  font-size: 14px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
}

.date-time-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 179, 66, 0.3);
}

.custom-audio-player {
  display: flex;
  align-items: center;
  background-color: #FFFFF0;
  /* Match this with your song bar background */
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn {
  background-color: #7CB342;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  /* Reduced from 4px to 2px */
  transition: opacity 0.2s ease-in-out;
  padding: 0;
}

.play-pause-btn {
  width: 36px;
  /* Slightly increased size */
  height: 36px;
  font-size: 18px;
}

.prev-btn,
.next-btn {
  width: 28px;
  /* Slightly increased size */
  height: 28px;
  font-size: 14px;
}

.control-btn:hover {
  opacity: 0.8;
}

.play-pause-btn,
.nav-btn {
  background-color: #7CB342;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease-in-out;
}

.nav-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
  margin: 0 2px;
  padding: 0;
}

.nav-btn:hover,
.play-pause-btn:hover {
  opacity: 0.8;
}

.progress-bar-wrapper {
  flex-grow: 1;
  background-color: #E0E0E0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  background-color: #7CB342;
  height: 100%;
  transition: width 0.1s linear;
  position: absolute;
  top: 0;
  left: 0;
}

.time-display {
  font-size: 10px;
  color: #7CB342;
  min-width: 60px;
  text-align: right;
  margin-right: 5px;
}

.download-btn {
  color: #7CB342;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-in-out;
}

.download-btn:hover {
  color: #8BC34A;
}

.download-btn svg {
  width: 14px;
  height: 14px;
}

/* You might also want to adjust the audio-item styles */
.audio-item {
  background-color: #FFFFF0;
  /* This should match the custom-audio-player background */
  border-radius: 8px;
  padding: 20px;
  /* Further increased padding */
  margin-bottom: 20px;
  /* Further increased margin between items */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.audio-item h3 {
  margin-bottom: 25px;
  /* Significantly increased margin below the title */
  font-size: 18px;
  /* Slightly increased font size */
  color: #7CB342;
}

audio {
  width: 100%;
}

.back-button {
  display: block;
  margin: 30px auto 0;
  background-color: #7CB342;
  color: #FFFFF0;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease-in-out;
}

.back-button:hover {
  background-color: #8BC34A;
  /* Slightly Lighter Green */
}

@media (max-width: 600px) {
  .App {
    padding: 10px;
  }

  .audio-list {
    grid-template-columns: 1fr;
  }
}

.clock {
  font-size: 24px;
  font-weight: bold;
  color: #7CB342;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #FFFFF0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-time-display {
  font-size: 14px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
}

.date-time-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 179, 66, 0.3);
}

.custom-audio-player {
  display: flex;
  align-items: center;
  background-color: #FFFFF0;
  /* Match this with your song bar background */
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn {
  background-color: #7CB342;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  /* Reduced from 4px to 2px */
  transition: opacity 0.2s ease-in-out;
  padding: 0;
}

.play-pause-btn {
  width: 36px;
  /* Slightly increased size */
  height: 36px;
  font-size: 18px;
}

.prev-btn,
.next-btn {
  width: 28px;
  /* Slightly increased size */
  height: 28px;
  font-size: 14px;
}

.control-btn:hover {
  opacity: 0.8;
}

.play-pause-btn,
.nav-btn {
  background-color: #7CB342;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease-in-out;
}

.nav-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
  margin: 0 2px;
  padding: 0;
}

.nav-btn:hover,
.play-pause-btn:hover {
  opacity: 0.8;
}

.progress-bar-wrapper {
  flex-grow: 1;
  background-color: #E0E0E0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  background-color: #7CB342;
  height: 100%;
  transition: width 0.1s linear;
  position: absolute;
  top: 0;
  left: 0;
}

.time-display {
  font-size: 10px;
  color: #7CB342;
  min-width: 60px;
  text-align: right;
  margin-right: 5px;
}

.download-btn {
  color: #7CB342;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-in-out;
}

.download-btn:hover {
  color: #8BC34A;
}

.download-btn svg {
  width: 14px;
  height: 14px;
}

/* You might also want to adjust the audio-item styles */
.audio-item {
  background-color: #FFFFF0;
  /* This should match the custom-audio-player background */
  border-radius: 8px;
  padding: 20px;
  /* Further increased padding */
  margin-bottom: 20px;
  /* Further increased margin between items */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.audio-item h3 {
  margin-bottom: 25px;
  /* Significantly increased margin below the title */
  font-size: 18px;
  /* Slightly increased font size */
  color: #7CB342;
}

.clickable-title {
  cursor: pointer;
  transition: color 0.3s ease;
}

.clickable-title:hover {
  color: #7CB342;
}

.gradient-animation {
  background: linear-gradient(90deg,
      #a5d6a7, #7CB342, #66bb6a, #7CB342, #a5d6a7);
  background-size: 200% 100%;
  animation: gradientAnimation 3s linear infinite;
}

.gradient-animation h3,
.gradient-animation .time-display {
  color: #1b5e20;
  /* Dark green for better contrast */
  text-shadow: none;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.rpg-button {
  position: relative;
  overflow: hidden;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.rpg-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.group-section {
  margin-bottom: 20px;
}

.group-name {
  color: #7CB342;
  /* Light green color */
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.confucius-quote {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(144, 238, 144, 0.1);
  border-radius: 8px;
  text-align: center;
  color: #7CB342;
}

.chinese-quote {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.english-quote {
  font-style: italic;
  margin-bottom: 10px;
}

.quote-author {
  font-weight: bold;
}