/* Lalumo App Styles */

:root {
  color-scheme: light only;
}

/* Force Portrait Mode */
@media screen and (orientation: landscape) {
  body {
    transform-origin: center center;
    position: fixed;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
    top: 0;
    left: 0;
  }
  
  /* Adjust viewport for rotated content */
  html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
}

/* Portrait mode notice overlay - fullscreen in landscape */
.portrait-notice {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  background-color: #000 !important;
  opacity: 0.9 !important;
  color: white !important;
  z-index: 3000 !important;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center;
  text-align: center;
  padding: 10px 40px 40px 40px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  font-family: Arial, sans-serif;
  overflow: hidden !important;
}

.portrait-notice h2 {
  font-size: 2.5rem;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  font-weight: bold;
}

.portrait-notice p {
  font-size: 1.5rem;
  margin: 10px 0;
  line-height: 1.4;
}

.portrait-notice-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  color: white !important;
  font-size: 2.2rem !important;
  font-weight: bold !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3001 !important;
  transition: all 0.3s ease !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.portrait-notice-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.portrait-notice-close:active {
  background: rgba(255, 255, 255, 0.4) !important;
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Show portrait notice on mobile devices in landscape mode */
@media screen and (orientation: landscape) {
  .portrait-notice {
    display: flex !important;
  }
}

/* Alternative check for mobile devices in landscape */
@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 768px) {
  .portrait-notice {
    display: flex !important;
  }
}

/* Android-specific fixes for fullscreen overlay */
@media screen and (orientation: landscape) {
  .portrait-notice {
    /* Use screen dimensions instead of viewport for Android */
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Ensure body doesn't scroll behind overlay */
  body:has(.portrait-notice[style*="flex"]) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Global Button Blocker - 2 second disable after click */
.activity-button-blocker {
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.activity-button-blocker:disabled {
  opacity: 0 !important;
  cursor: progress !important;
  transform: scale(0.98);
  user-select: none;
}

.activity-button-blocker.blocking {
  opacity: 0 !important;
  cursor: progress !important;
  transform: scale(0.98);
  user-select: none;
  /* Keep pointer-events but prevent actual clicks via JavaScript */
}


/* Locked activity styling */
.locked-activity {
  opacity: 0.9;
}

/* Debug-Element Sichtbarkeitskontrolle */
.debug-element {
  opacity: 0.2 !important;
  display: none !important; /* Standardmäßig ausgeblendet */
  visibility: hidden !important;
  pointer-events: none !important; /* Verhindert jegliche Klick-Interaktion */
}

/* Wenn die Entwicklungsumgebung aktiv ist (über body-Klasse steuerbar) */
html body.dev-mode .debug-element {
  /* Für Entwicklungsmodus anpassen */
  display: inline-block !important;
  opacity: 0.7 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Custom icon styles */
.custom-icon {
  color-scheme: light only;
}

/* Modal Overlay with welcome message */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: modal-pop 0.4s ease-out;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.melody-play-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

/* Styling für den Next-Melody-Button */
.next-melody-button {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  opacity: 0.3;
}

.next-melody-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.05);
}

.next-melody-button:active {
  transform: translateY(-50%) scale(0.95);
  background-color: #0277bd;
}

.welcome-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.welcome-message .intro-message {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

.welcome-message p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.8rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #ff8c2a;
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.note {
  font-style: italic;
  opacity: 0.8;
}

/* User profile */
.user-profile {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
}

.user-avatar, .profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.8rem;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-name {
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.settings-header {
  margin-top: 1.5rem;
}

/* Settings page */
.settings-page {
  padding: 20px;
  background-image: url(./images/settings.jpg);
  background-size: cover;
  background-position: top;
  color: #ffffff;
  position: relative;
}

/* Fügt einen abgedunkelten Overlay hinzu, damit der Text lesbar bleibt */
.settings-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.partial-content {
  margin-bottom: 30px;
}

.username-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
  gap: 10px;
}

.username-input {
  padding: 8px 12px;
  border: 2px solid var(--color-accent-light);
  border-radius: 8px;
  font-size: 1rem;
  flex-wrap: wrap;
  background: var(--color-background-lighter);
  color: var(--text-color-input);
}

/* Reset Progress Section */
.reset-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-accent-light);
}


.help-text {
  font-size: 0.9rem;
  color: var(--text-color-muted);
  margin-top: 8px;
}

.referral-actions {
  margin-top: 16px;
}

.locked-chapter {
  position: relative;
  opacity: 0.85;
}

/* Help Messages Settings Styles */
.help-messages-section {
  margin-bottom: 1.5rem;
}

.help-options {
  display: flex;
  justify-content: left;
  margin-top: 0.5rem;
}

.toggle-container {
  display: inline-block;
}

.toggle-button {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 5px 15px 5px 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-button:hover {
  background-color: #eaeaea;
}

.toggle-button.active {
  background-color: #e6f7ff;
}

.toggle-slider {
  display: inline-block;
  width: 30px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  position: relative;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle-slider.active {
  background-color: var(--primary-color);
}

.toggle-slider.active:before {
  left: 12px;
}

.toggle-text {
  font-size: 0.9rem;
}

.reset-buttons {
  margin-top: 15px;
}

.confirm-reset {
  background-color: rgba(255, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.confirm-reset p {
  margin-bottom: 15px;
  color: #ff3333;
  font-weight: bold;
}

.warning-button {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.warning-button:hover {
  background-color: #e68a00;
}

.danger-button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 10px;
}

.danger-button:hover {
  background-color: #d32f2f;
}

/* Settings */
.partial-content {
  margin-top: 2rem;
  position: relative;
  z-index: 900; /* Higher z-index to ensure settings are visible */
}

/* Player Settings - ensure they're not overlapped */
.settings-panel, 
.player-settings, 
.export-section {
  position: relative;
  z-index: 1000; /* Higher than menu */
  margin-left: auto; /* Center content away from menu width */
  margin-right: auto;
  width: calc(100% - 240px); /* Leave space for menu width */
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sett.pitch-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.sett.pitch-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.large-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-name h4 {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.profile-name p {
  margin: 0.3rem 0 0 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.save-code-container {
  margin-top: 1rem;
  animation: fade-slide-down 0.5s ease-out;
}

@keyframes fade-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Save game code display */
.save-code {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  overflow: auto;
  white-space: nowrap;
  margin: 1rem 0;
  max-width: 100%;
  word-break: break-all;
}

.export-textarea, .import-textarea {
  width: 100%;
  height: 80px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background-color: var(--color-background-lighter);
  font-family: monospace;
  color: var(--text-color);
  resize: vertical;
}

input, textarea {
  border: 2px solid var(--color-accent-light);
}

input {
  max-width: 360px;
}


.code-input {
  width: 100%;
  min-height: 80px;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.load-result {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-weight: bold;
  animation: fade-in 0.5s ease-out;
}

/* Help and speech bubble */
.welcome-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: #eec98f;
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-wrapper {
  animation: bob 3s infinite alternate ease-in-out;
  margin-right: 1rem;
}

.intro-message {
  width: 100px;
  height: auto; /* Let height adjust to maintain aspect ratio */
  cursor: pointer;
  position: relative;
  z-index: 10;
  display: block;
  border-radius: 1rem;
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

.speech-bubble {
  flex: 1;
  font-size: 1.1rem;
  animation: fade-in 0.5s ease-out;
  color: #333;
  font-weight: 500;
  padding-right: 1rem;
}

/* Remove the speech bubble triangle since it's in the same container */
.speech-bubble::before {
  display: none;
}

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

/* Progress garden visualization */
.progress-garden {
  margin: 1rem 0;
  background-color: #f0f9e8;
  border-radius: 0.5rem;
  padding: 0.5rem;
  position: relative;
  border: 2px solid #9de089;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #4b7a47;
  font-size: 1rem;
}

.garden-plants {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 80px;
  background: linear-gradient(to top, #a6d969, #f0f9e8);
  border-radius: 0.3rem;
  overflow: hidden;
  padding: 0 0.5rem;
}

.garden-plant {
  width: 40px;
  min-height: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.8s ease;
  cursor: pointer;
  position: relative;
}

.garden-plant span {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  transform-origin: bottom center;
  animation: sway 3s infinite alternate ease-in-out;
  display: block;
}

@keyframes sway {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}

.garden-plant:hover span {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

:root {
  --primary-color: #ff9f43; /* Navigation */
  --secondary-color: #6c5ce7; /* username circle background */
  --background-color: #ffffff; /* background of impressum, ...*/
  --text-color: #2d3436;
  --text-color-input: #2d3436;
  --accent-color: #fdcb6e; /* navigation highlight */
  --success-color: #00b894;
  --warning-color: #ff7675;
  --color-accent-light: #fdcb6e;
  --color-background-lighter: #f5f5f5;
  
  /* Tone color variables */
  --warm-color: #ff9f43;
  --cold-color: #74b9ff;
  --soft-color: #a29bfe;
  --sharp-color: #ff7675;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-x: hidden;
}

/* Hamburger Menu */
.hamburger-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.hamburger-button {
  margin-left: 30px;
  margin-top: 25px;
}

/* Menu Lock Button */
.menu-lock-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin-right: 0.75rem;
  margin-top: 60px;
  margin-left: 0.4rem;
  z-index: 2500; /* above main menu but below landscape warning layer */
  transition: all 0.3s ease;
}

/* Root-Level CSS Variable für den Entsperr-Fortschritt */
:root {
  --unlock-progress: 0;
}

/* Container für das Schloss-Icon und den Fortschrittsindikator */
.lock-icon-container {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lock-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

/* Fortschrittsindikator als Kreisanimation */
.lock-progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #3498db calc(var(--unlock-progress) * 360deg),
    transparent 0deg
  );
  opacity: 0.02;
  z-index: 1;
}

.menu-lock-button.locked .lock-icon {
  color: #e74c3c;
}

.menu-lock-button:hover .lock-icon {
  transform: scale(1.1);
}

.lock-hint {
  font-size: 0.7rem;
  position: absolute;
  white-space: nowrap;
  top: 100%;
  right: -170px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-lock-button:hover .lock-hint {
  opacity: 0.8;
}

/* Styling for the locked menu state */
.menu-locked .menu-content {
  pointer-events: none;
  opacity: 0.5;
}

.menu-locked .hamburger-button {
  opacity: 0.5;
  cursor: not-allowed;
}

.hamburger-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Transform hamburger to X when menu is open */
.menu-open .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 300px;
  height: 100%;
  background-color: white;
  padding: 5rem 1rem 2rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 90; /* Lower than lock button but higher than regular content */
  /* Ensure menu content doesn't cause layout issues */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.menu-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.menu-content h3 {
  color: var(--secondary-color);
  margin: 1rem 0;
  font-size: 1.2rem;
}

.menu-chapters, .menu-activities {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
}

.menu-spacer {
  flex-grow: 1;
  min-height: 40px;
}

/* Ensure the menu is scrollable when content exceeds the viewport height */
.hamburger-container {
  max-height: 100vh;
  position: relative;
  overflow: visible; /* Ensure container doesn't clip content */
  z-index: 1500; /* High enough but below lock button */
  max-width: 20px; /* TODO: warum ist dies so klein trotzdem ok? wenn breiter, dann überlappt der immer den home button , obwohl der einen höheren z-index hat */
}

/* Ensure scrolling container properly shows all content */
/* Ensure menu doesn't overlap with content */
.hamburger-container.menu-open .menu-content {
  max-height: 100vh; 
  overflow-y: auto;
  max-width: 90%;
  /* Make sure menu stays on the side and doesn't overlap center content */
  position: fixed;
  left: 0;
  top: 0;
}

.menu-settings, .menu-legal {
  margin-top: 10px;
  width: 100%;
  padding-bottom: 10px;
  min-height: fit-content;
}

/* Settings button with avatar */
.settings-button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 8px 12px !important;
  position: relative;
  z-index: 85; /* Higher than general player settings */
}

/* Language preference section */
.language-section {
  margin: 20px 0;
}

.language-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.language-button {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #f0f0f0;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-button.active {
  background-color: #e1f5fe;
  border-color: #29b6f6;
  color: #0277bd;
}

.settings-button .user-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: 0 !important;
}
.settings-button {
  width: 100%;
}

.settings-label {
  flex-grow: 1;
  text-align: left;
}

/* Make bottom buttons more prominent and ensure they're visible */
.menu-legal {
  margin-bottom: 100px; /* Force extra space after legal section */
}

.menu-legal button {
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  /* Make buttons stand out more */
  background-color: #f0f0f0;
  font-weight: 500;
  font-size: 1.1em;
}

.menu-legal button:last-child {
  margin-bottom: 150px; /* Force extra space after last button */
}

.legal-content {
  padding: 1rem 0;
}

.menu-content button {
  background-color: #f5f5f5;
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-content button:hover {
  background-color: var(--accent-color);
  transform: translateX(5px);
}

.menu-content button.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
}

.menu-open .hamburger-button {
  left: 10px; /* Fixed position at left corner */
  right: auto;
  top: 10px;
  max-width: calc(300px - 1.5rem);
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-button {
  left: -1.5rem;
  top: -1.5em;
}

/* Desktop Menu Styles */
@media (min-width: 1024px) {
  /* Container layout modifications */
  .container {
    padding-left: 325px; /* Increased space for the menu plus margin */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  
  /* Menu positioning on desktop */
  .desktop-menu {
    width: 300px;
  }
  
  .desktop-menu .menu-content {
    position: fixed;
    width: 300px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .desktop-menu .hamburger-button {
    /* Hide hamburger button on desktop */
    display: none;
  }
  
  /* Ensure sections take appropriate space */
  section {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Make activities take full available space */
  .activity-container {
    width: 100%;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu-open .hamburger-button {
    left: calc(300px - 4.8rem);
    top: -1em;
  }
  
  section {
    padding: 1rem;
  }
}

/* Main content adjustments */
main {
  padding-top: 5rem;
}

/* Legacy Navigation styles - can be removed if no longer needed */
.navigation {
  display: none; /* Hide the old navigation */
}


/* Section transitions */
section {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  position: relative;
  z-index: 95; /* Ensure sections appear above menu content */
}

section h2 {
  color: white;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#privacy_partial > h2, #credits_partial > h2, #imprint_partial > h2{
  margin-top: min(168px, 26vw);
}

/* Tone Colors Component */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tone-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tone-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.tone-icon.warm {
  background-color: var(--warm-color);
}

.tone-icon.cold {
  background-color: var(--cold-color);
}

.tone-icon.soft {
  background-color: var(--soft-color);
}

.tone-icon.sharp {
  background-color: var(--sharp-color);
}

.tone-card p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.feedback {
  background-color: var(--accent-color);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

@keyframes pulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Animation for section transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities and general styles */
.hidden {
  display: none !important;
}

/* Lazy-load Background Images */
.lazyload-bg {
  transition: background-image 0.3s ease-in-out;
}

/* Pitches Component Styles */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.mode-tabs button {
  background-color: #e0e0e0;
  color: var(--text-color);
  border: none;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tabs button.active {
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
}

.mode-tabs button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.activity-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 1rem;
  animation: fadeIn 0.5s ease;
  position: relative;
  background-position: top left !important;
  background-size: 100% auto !important;
  background-repeat: no-repeat;
  overflow-y: auto; /* Allow scrolling if content exceeds height */
  height: 154vw !important;
  max-height: 720px;
  overflow: hidden;
}

#\31 _1_pitches{
  height: 154vw !important;
  max-height: 803px;
}

#\31 _2_pitches{
  height: 161vw !important; 
}

#\31 _3_pitches{
  height: 154vw !important;
  max-height: min(936px, 152vw);
}

#\31 _4_pitches{
  height: 150vw !important;
  max-height: min(775px, 132vw);
}

#\31 _5_pitches{
  height: 174vw !important;
  max-height: min(999px, 163vw);
}

/* Styles werden bei Bedarf hier definiert
#\32 _2_chords_stable_unstable 

#\32 _5_chords_characters 
*/

.play-button_2_2, .replay-button_2_2 {
  opacity: 0;
  width: 100%;
  height: min(48vw, 320px);
  background-color: #fff;
  border-radius: 20%;
  position:absolute;
  top: 0px;
  z-index: 101;
  transition: opacity 0.2s ease;
}

.replay-button_2_2 {
  z-index: 100;
}

.play-button_2_2:hover, .replay-button_2_2:hover {
  opacity: 0.05;
}

/* Container positioning */
.button_2_2_grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px 0;
}

#button_2_2_stable,
#button_2_2_unstable {
  position: absolute;
  width: 50%;
  height: min(701px, 93vw);
  top: min(267px, 43vw);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: transparent;
  outline: none;
  color: transparent;
}

#button_2_2_stable {
  left:0;
}

#button_2_2_unstable {
  right:0;
}

#button_2_2_stable:hover,
#button_2_2_unstable:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1)
}

#button_2_2_stable:active,
#button_2_2_unstable:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* #\32 _5_chords_characters Styles werden bei Bedarf hier definiert */

.character-grid{
  position: absolute;
  height: 20px;
  width: 100%;
  left: 0;
  top: 0;
}

#play-chord-2_5, #start-game-mode-2_5{
  opacity: 0;
  width: 60%;
  height: min(48vw, 320px);
  background-color: #fff;
  border-radius: 20%;
  position:absolute;
  top: 0px;
  margin-left: 40%;
}

#play-chord-2_5:hover, #start-game-mode-2_5:hover{
  opacity: 0.05;
}

#button_2_5_1_major, #button_2_5_1_minor, #button_2_5_1_augmented, #button_2_5_1_diminished{
  opacity: 0.0;
  position: absolute;
  top: min(47vw, 320px);
  left: 0;
  width: min(37vw, 200px);
  height: min(50vw, 250px);
  background-color: #fff;
  border-radius: 20%;
  color:transparent;
  cursor: pointer;
}

#button_2_5_1_major:hover, #button_2_5_1_minor:hover, #button_2_5_1_augmented:hover, #button_2_5_1_diminished:hover{
  opacity: 0.05;
}

#button_2_5_1_major{
  top: min(31vw, 220px);
  height: min(70vw, 350px);
}

#button_2_5_1_minor{
  left: min(29vw, 205px);
  width: min(37vw, 180px);
}

#button_2_5_1_augmented{
  left: 70%;
  top: min(62vw, 356px);
}

#button_2_5_1_augmented.progress2 {
  top: min(44vw, 227px);
}

#button_2_5_1_diminished{
  top: min(97vw, 545px);
  width: 100%;
}


.activity-container h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

/* Pitch Grid - for listen and match modes */
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 100px;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pitch-card {
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  height: 100px;
}

/* Taller pitch cards when fewer options are unlocked */
.pitch-grid.limited-options .pitch-card {
  height: 135px;
}

/* Special case for 'down' card when frog is not unlocked yet */
.pitch-grid.no-frog .pitch-card.down-extended {
  grid-row: span 2;
  height: 210px; /* Etwas höher als 2 Zeilen für bessere Sichtbarkeit */
}

/* Up or Down Activity (1_2) specific styles */
.match-sounds-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Standard-Höhe für Pitch-Cards */
.match-sounds-container .pitch-card {
  height: 100px;
  margin: 0;
}

/* Wenn weder Welle noch Frosch freigeschaltet: alle Karten höher */
.match-sounds-container.no-unlocks .pitch-card {
  height: 200px; /* Alle Cards doppelt so hoch wenn nichts freigeschaltet ist */
}

/* Nur Rutsche über zwei Zeilen, wenn Frosch nicht freigeschaltet */
.match-sounds-container.no-frog .pitch-card.down-card {
  grid-row: span 2; /* Über zwei Reihen erstrecken */
  height: 210px; /* Etwas höher für bessere Sichtbarkeit */
}

/* Spezifische Positionierung der Cards */
.match-sounds-container .up-card { grid-column: 1; grid-row: 1; }
.match-sounds-container .down-card { grid-column: 2; grid-row: 1 / span 1; }
/* Standard 1 Zeile */
.match-sounds-container.no-frog .down-card { grid-row: 1 / span 2; }
/* Mit Frosch 2 Zeilen */
.match-sounds-container .wave-card { grid-column: 1; grid-row: 2; }
.match-sounds-container .jump-card { grid-column: 2; grid-row: 2; }

/* Wenn alle Patterns freigeschaltet sind: Untere Zeile (Wave & Jump) um 50% höher */
.match-sounds-container.all-unlocked .wave-card,
.match-sounds-container.all-unlocked .jump-card {
  height: 150px; /* 50% höher als Standard (100px) */
}

/* Erfordert keine Icon-Positionierung mehr */

/* Play buttons in pitch cards */
.pitch-card .play-button {
  display: block;
  margin: 1rem auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Progress Display Box */
.progress-display {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 93%;
  max-width: 400px;
  margin: 0 auto;
}

/* Specific positioning for 2_2 stable/unstable progress box */
.progress_2_2 {
  position: fixed;
  bottom: -12px;
  padding-bottom: 19px;
}

.melody-name {
  position: absolute;
  top: min(371px, 58vw);
  color: var(--text-color);
  padding: 0.5rem 1rem 1.5rem;
  border-radius: 0.8rem;
  text-align: center;
  margin-top: 25px;
  margin-bottom: -16px;
  max-width: 80%;
  font-weight: bold;
  animation: bounce 0.5s ease;
  opacity: 0.7;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
  /* SVG-Biegeeffekt wird durch JS hinzugefügt */
  font-size: min(3vw, 18px);
}

.feedback-message {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  padding: 0.8rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 0 0 1rem 1rem;
  text-align: center;
  width: auto;
  min-width: 50%;
  max-width: min(90%, 400px);
  font-weight: bold;
  animation: fade-in 0.3s ease;
  z-index: 1400; /* below main menu */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* on wide screens, feedback must be positioned from the right border */
@media (min-width: 1024px) {
  .feedback-message {
    left: auto;
    right: -236px;
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Sound Judgment Level Display - Spezialisierte Anzeige für Sound Judgment Level und Streak */
.sound-judgment-level {
  position: absolute;
  bottom: 0.5rem; /* Am oberen Rand statt am unteren */
  left: 50%;
  background-color: rgba(255, 255, 255, 0.5); /* Blauer Hintergrund für bessere Sichtbarkeit */
  color: rgb(0, 0, 0);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 5; /* Höherer z-index als andere Elemente */
  min-width: 180px; /* Mindestbreite für Lesbarkeit */
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.progress-display p {
  margin: 0.25rem 0;
  font-weight: 500;
}

/* New circular play button */
.circular-play-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  width:100%;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  height: min(330px,calc(32vw + (100vw - 360px) * 0.3));
  z-index: 100;
}

#\31 _1_pitches > .circular-play-button{
  height: min(36vw, 268px) !important;
  position: absolute;
  top: 0px;
}
.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 30px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  margin-left: 10px;
  display: inline-block;
}

.circular-play-button:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.circular-play-button:active {
  transform: scale(0.98);
  background-color: rgba(255, 255, 255, 0.15);
}

/* Animationen für die Pattern-Elemente */
@keyframes rocket-up {
  0% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

@keyframes slide-down {
  0% { transform: translateY(0); }
  50% { transform: translateY(30px); }
  100% { transform: translateY(0); }
}

/* Success Animation - Rainbow */
@keyframes rainbow-expand {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.5);
  }
  80% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(2.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.5);
  }
}

.rainbow-success {
  position: fixed;
  width: 400px;
  height: 200px;
  margin-left: -200px; /* Half width for centering */
  margin-top: -100px; /* Half height for centering */
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  
  /* Create proper rainbow with arc shape */
  background: none;
  box-shadow: none;
  animation: rainbow-expand 3s ease-out forwards;
}

.rainbow-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 20px solid transparent;
  border-bottom: none;
  box-shadow: 
    0 0 0 10px #ff0000,
    0 0 0 20px #ff7f00,
    0 0 0 30px #ffff00,
    0 0 0 40px #00ff00,
    0 0 0 50px #0000ff,
    0 0 0 60px #4b0082,
    0 0 0 70px #8b00ff;
  filter: blur(5px);
}

/* Error Animation - Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes jump-bounce {
  0% { transform: translateY(0); }
  20% { transform: translateY(-20px); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-10px); }
  80% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

.pitch-icon.up.animate-up {
  animation: rocket-up 1.5s ease-in-out;
}

.pitch-icon.down.animate-down {
  animation: slide-down 1.5s ease-in-out;
}

.pitch-icon.wave.animate-wave {
  animation: wave-move 1.5s ease-in-out;
}

.pitch-icon.jump.animate-jump {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
}

.pitch-card .play-button:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.pitch-card .play-button:active {
  transform: scale(0.95);
}

.pitch-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
}

.pitch-card.active {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  animation: pulse 1.5s infinite alternate;
  background-color: rgba(255, 255, 255, 0.2);
}

.pitch-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.pitch-card:active::after {
  animation: ripple 0.6s ease-out;
}

/* Animal card styles for Sound Judgment activity */
.sound-judgment-options {
  display: flex;
  justify-content: center;
  gap: max(1vw, 7px);
  margin-top: 20px;
  left: min(16vw, 72px);
  position: absolute;
  top: min(487px, 78vw);
}

.animal-card {
  cursor: pointer;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: min(26vw, 185px);
  border-radius: 50%;
}

.animal-card .animal-icon img {
  width: min(25vw, 106px);
  height: min(25vw, 106px);
  object-fit: contain;
  margin-top: 0px;
}

.animal-card.happy:active {
  transform: scale(0.95);
}

.animal-card.unhappy:active {
  transform: scale(0.95);
}



@keyframes pulse {
  0% {
    box-shadow: 0 0 15px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 25px var(--accent-color);
  }
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.pitch-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
}

/* Animations for the pitch icons when active */
.active .pitch-icon.up img {
  animation: fly-up 2s 1 forwards;
}

@keyframes fly-up {
  0% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-15px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.active .pitch-icon.down img {
  animation: slide-down 2s 1 forwards;
}

@keyframes slide-down {
  0% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(15px);
  }
  80% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.active .pitch-icon.wave img {
  animation: wave-motion 3s 1 forwards;
}

@keyframes wave-motion {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-10px);
  }
  30% {
    transform: translateX(10px);
  }
  45% {
    transform: translateX(-10px);
  }
  60% {
    transform: translateX(10px);
  }
  80% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.active .pitch-icon.jump img {
  animation: jump-bounce 1s 1 forwards;
}

@keyframes jump-bounce {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-20px);
  }
  20% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-20px);
  }
  40% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

/* Shake animation for error feedback */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake-animation {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Pitch icon classes maintained for JavaScript references, but no specific styling needed */

/* Drawing mode */
.drawing-container {
  position: absolute;
  margin: 38px auto;
  width: 88%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  top: min(429px, 68vw);
  height: min(48vw, 286px);
}

.drawing-canvas {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid rgba(51, 51, 51, 0);
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none; /* Prevent scrolling on touch devices */
}

.melody-feedback{
  position: fixed;
  bottom: 60px;
  left: max(-11px, min(30%, calc(-477px + 94vw)));
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Styles für die Melodie-Nachzeichnen-Funktion */
.reference-melody {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 35%;
  height: 22vw;
  max-height: 136px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 6px;
  z-index: 10;
  left: 30vw;
}

.reference-note {
  width: 22px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  top: max(-57px, calc(6px - 12vw));
}

.reference-note.playing {
  background-color: var(--secondary-color);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.8);
}

.challenge-toggle {
  display: flex;
  justify-content: left;
  position: absolute;
  width: 100%;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 20;
  padding: 0;
}

.challenge-toggle button, .clear-drawing-button {
  border: 0;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.0) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.0) !important;
  height: calc(-13px + 49vw);
  min-height: 33px;
  width: 49vw;
  position: relative;
  overflow: hidden;
  max-height: 337px;
  margin-top: 37px;
}

.challenge-toggle button:hover {
  background-color: rgba(255, 255, 255, 0) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0) !important;
  transform: translateY(-2px);
}

.challenge-toggle button.active {
  background-color: rgba(52, 152, 219, 0.1);
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.1);
}

.draw-melody-button {
  background-color: rgba(255, 255, 255, 0) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

.draw-melody-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0) !important;
}

#new-melody-button {
  background-color: #4CAF50;
  color: white;
}

#new-melody-button:hover {
  background-color: #388E3C;
}

.clear-drawing-button {
  position: absolute;
  top: min(42vw, 249px);
  left: 40%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 120px;
  height:120px;
}

.clear-drawing-button:hover {
  transform: translateX(-50%) translateY(-3px);
}

.clear-button {
  background-color: #dfe6e9;
  color: var(--text-color);
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: block;
  margin: 1rem auto;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background-color: #b2bec3;
}

/* Guessing mode */
.play-button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 0.7rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  margin: 1.5rem auto;
  transition: all 0.2s ease;
  font-weight: bold;
}

.play-button:hover {
  background-color: #5f50e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.guess-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.guess-button {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 0.7rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.guess-button.up {
  border-color: #ff9ff3;
  color: #ff9ff3;
}

.guess-button.down {
  border-color: #48dbfb;
  color: #48dbfb;
}

.guess-button.up:hover {
  background-color: #ff9ff3;
  color: white;
}

.guess-button.down:hover {
  background-color: #48dbfb;
  color: white;
}

/* Memory mode */
.piano-keyboard {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 90%;
  height: 120px;
  margin: 1.5rem auto;
  margin-top: 119px;
  position: relative;
  background-color: antiquewhite;
  padding: 21px;
  border:#333;
  border-radius:22px;
  box-shadow:0 5px 6px rgba(0, 0, 0, 0.2);
}

.piano-key {
  position: relative;
  height: 100%;
  border: 1px solid #333;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.piano-key.white {
  background-color: white;
  width: 15%;
  color: #333;
  z-index: 1;
  border-radius: 0 0 5px 5px;
}

.piano-key.white.active {
  background-color: #ffe066; /* Yellow glow */
  transform: translateY(2px);
  box-shadow: 0 0 15px rgba(255, 224, 102, 0.8);
}

.piano-key.black {
  background-color: #222;
  width: 5%;
  height: 60%;
  z-index: 2;
  margin: 0 -2.5%;
  border-radius: 0 0 3px 3px;
}

.piano-key.inactive {
  background-color: #e0e0e0;
  width: 9%;
  color: #999;
  z-index: 1;
  border-radius: 0 0 5px 5px;
  cursor: default;
  opacity: 0.7;
  pointer-events: none;
}

.piano-key.inactive.f4, .piano-key.inactive.b4 {
  background: repeating-linear-gradient(
    45deg,
    #e0e0e0,
    #e0e0e0 5px,
    #d5d5d5 5px,
    #d5d5d5 10px
  );
}

/* Class for shaking incorrect elements */
.shake-error {
  animation: shake-element 0.5s ease-in-out;
}

.memory-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.memory-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.memory-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.memory-button:active::after {
  animation: memory-ripple 0.6s ease-out;
}

@keyframes memory-ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.memory-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s;
}

.memory-button:hover::before {
  left: 100%;
}

/* Navigation menu reset button styling */
.menu-reset-btn {
  background-color: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-reset-btn:hover {
  background-color: #ff6b35;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.menu-reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-reset-btn:focus {
  outline: 3px solid rgba(255, 107, 53, 0.5);
  outline-offset: 2px;
}
/* Piano key coloring when active */
.piano-key.c4.active { background-color: #ff9ff3; }
.piano-key.d4.active { background-color: #feca57; }
.piano-key.e4.active { background-color: #1dd1a1; }
.piano-key.f4.active { background-color: #48dbfb; }
.piano-key.g4.active { background-color: #c8d6e5; }

.sequence-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dfe6e9;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background-color: var(--secondary-color);
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Responsive design */
@media (max-width: 768px) {
  .navigation {
    flex-direction: column;
    align-items: stretch;
  }
  
  .navigation button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .tone-grid, .pitch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mode-tabs {
    flex-direction: column;
  }
  
  .guess-options {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* High or Low mobile styles */
  .high-low-choices {
    gap: 30px;
  }
  
  .high-choice,
  .low-choice {
    width: 100px;
    height: 80px;
    font-size: 16px;
  }
  
  .pitch-icon img {
    width: 32px;
    height: 32px;
  }
  
  .choice-label {
    font-size: 14px;
  }
}

/* HIGH OR LOW ACTIVITY STYLES */
#\31 _1_pitches > button:nth-child(2){
  height:222px;
}

.high-low-choices {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 10;
}

.high-choice, .low-choice {
  width: 199px;
  height: 290px;
  position: relative;
  top: min(294px, 63vw);
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color:transparent;
  background-color: transparent;
}

.high-choice:hover,
.low-choice:hover {
  transform: scale(1.05);
}

.high-choice:active,
.low-choice:active {
  transform: scale(0.95);
}

.high-choice {
  background-color: transparent;
}

.low-choice {
  background-color: transparent;
}

.pitch-icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.choice-label {
  font-size: 16px;
  font-weight: bold;
}

/* Progress display for High or Low */
.high-low-progress, .progress_2_5 {
  position: fixed;
  bottom: -37px;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 4px 61px 4px;
  border-radius: 15px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 353px;
  height: 44px;
}

.high-low-progress p {
  margin: 2px 0;
}

.bottom_round_edge {
  position: fixed;
  bottom: calc(717px - 1vw * 133);
  z-index:90;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: yellowgreen; /* Gelber Hintergrund */
  z-index: 1000;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0px;
  margin: 0px;
}

/* Innerer Bereich des Footers mit weißem Hintergrund und abgerundeten Ecken */
.footer_inner {
  background-color: white;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Reset activity button styling */
.reset-activity-btn {
  background-color: rgba(255, 255, 255, 0.9);
  color: #ff6b35;
  border: 2px solid #ff6b35;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-left: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-activity-btn:hover {
  background-color: #ff6b35;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reset-activity-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-activity-btn:focus {
  outline: 3px solid rgba(255, 107, 53, 0.5);
  outline-offset: 2px;
}

/* Mode header layout to accommodate reset button */
.mode-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.back-to-main {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 2px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-to-main:hover {
  background-color: #333;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-to-main:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-to-main:focus {
  outline: 3px solid rgba(51, 51, 51, 0.5);
  outline-offset: 2px;
}
/* Chapters View - Fullscreen styles */
.chapters-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 90; /* Lower z-index to keep below the hamburger menu */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Limit width on larger screens */
@media (min-width: 1024px) {
  .chapters-view > div {
    width: 70%;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Clickable image map styles */
.pitch-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

/* Game mode sections - white background with image border */
.activity-container {
  border-radius: 20px;
  margin: 3% auto 5% auto;
  padding: 20px;
  position: relative;
  z-index: 10;
  width: 85%;
  max-width: 523px;
  height: 99vh;
  min-height: 71vh;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mode header with title and back button */
.mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.back-to-main {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: var(--color-accent-light);
  color: var(--text-color);
  border: none;
  border-radius: 0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 2500; /* above everything but Portrait mode notice overlay */
  margin-left: calc(38px - min(58px, 6vw));
  margin-top: -10px;
}

.back-to-main:hover {
  background-color: #d9d082;
}

.back-to-main.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-to-main.disabled:hover {
  background-color: var(--color-accent-light);
  color: var(--text-color);
}

.back-to-main svg {
  width: 16px;
  height: 16px;

}

.image-map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.clickable-background {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from contain to cover to stretch and fill */
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.clickable-area {
  position: absolute;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
  border-radius: 10px;
}

.clickable-area:hover, .clickable-area:active {
  background-color: rgba(255, 255, 255, 0.25);
}

.area-label {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.clickable-area:hover .area-label {
  display: block;
}

/* Position the clickable areas - responsive to screen width */
@media (max-width: 550px) {
  .listen-area {
    top: 25%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .match-area {
    top: 25%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .guess-area {
    top: 45%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .memory-area {
    top: 45%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .draw-area {
    top: 65%;
    left: 40%;
    width: 20%;
    height: 15%;
  }
}

@media (min-width: 551px) and (max-width: 767px) {
  .listen-area {
    top: 30%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .match-area {
    top: 30%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .guess-area {
    top: 50%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .memory-area {
    top: 50%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .draw-area {
    top: 70%;
    left: 40%;
    width: 20%;
    height: 15%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .listen-area {
    top: 35%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .match-area {
    top: 35%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .guess-area {
    top: 55%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .memory-area {
    top: 55%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .draw-area {
    top: 75%;
    left: 40%;
    width: 20%;
    height: 15%;
  }
}

@media (min-width: 1024px) {
  .listen-area {
    top: 40%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .match-area {
    top: 40%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .guess-area {
    top: 60%;
    left: 15%;
    width: 20%;
    height: 15%;
  }
  
  .memory-area {
    top: 60%;
    right: 15%;
    width: 20%;
    height: 15%;
  }
  
  .draw-area {
    top: 80%;
    left: 40%;
    width: 20%;
    height: 15%;
  }
}

.mode-instructions {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
  text-align: center;
}

/* Sound Judgment (1_4) Activity CSS */

/* Practice Mode Styles */
.practice-mode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 90%;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 15px;
  position: absolute;
  top: min(200px, 17vw);
}

/* Instrument Selection Buttons */
.instrument-buttons {
  position: absolute;
  width: min(65vw, 427px);
  top: min(115px, 20vw);
  color:transparent;
  text-align: center;
  font-size: 0; /* Removes whitespace between inline-block elements */
}

.instrument-button {
  display: inline-block;
  vertical-align: top;
  width: 33.33%;
  height: 27vw;
  border: none;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
  color:transparent;
  text-align: center;
}

.instrument-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.instrument-button:active {
  transform: translateY(-2px);
}

.instrument-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.instrument-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

/* Specific instrument styles */
.violin {
  background-color: transparent;
  border: 0;
}

.violin:hover:not(.disabled) {
  background-color: transparent;
}

.flute {
  background-color: transparent;
  border: 0;
}

.flute:hover:not(.disabled) {
  background-color: transparent;
}

.doublebass {
  background-color: transparent;
  border: 0;
}

.doublebass:hover:not(.disabled) {
  background-color: transparent;
}

/* Disabled state for all instruments */
.instrument-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.instrument-button.disabled:hover {
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Start Game Button */
.start-game-container {
  position: fixed;
  top: min(400px, 78vw);
  height: 30vw;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  color: transparent;
  background-color: transparent;
}

.play-icon {
  font-size: 24px;
  margin-right: 10px;
}

.play-text {
  font-weight: bold;
}

/* Game Mode Button (kept for reference) */
.large-play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.large-play-button:hover {
  transform: scale(1.05);
  background-color: #ff9f43;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.large-play-button:active {
  transform: scale(0.98);
}

/* Game Mode Styles */
.sound-judgment-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .large-play-button {
    padding: 12px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sound-judgment-options {
    gap: 15px;
  }
}

/* Menu background styles */

/* Settings page styling */
.settings-page {
  position: relative;
  z-index: 1;
  padding-left: calc(27vw - 60px);
}

@media (max-width: 900px) {
  .settings-page {
    padding-left: 6vw;
  }
}

.settings-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(./images/settings.jpg);
  background-size: cover;
  background-position: top;
  opacity: 0.9;
  z-index: -2;
}

.settings-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Text color for all settings content */
.settings-page h2,
.settings-page h3,
.settings-page p,
.settings-page label,
.settings-page .profile-details {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* Credits page styling */
#credits_partial {
  position: relative;
  padding: 20px;
  color: #ffffff;
  z-index: 1;
  padding-left: calc(27vw - 60px);
}

@media (max-width: 900px) {
  #credits_partial {
    padding-left: 6vw;
  }
}

#credits_partial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(./images/credits.jpg);
  background-size: cover;
  background-position: top;
  opacity: 0.9;
  z-index: -2;
}

#credits_partial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Impressum page styling */
#imprint_partial {
  position: relative;
  padding: 20px;
  color: #ffffff;
  z-index: 1;
  padding-left: calc(27vw - 60px);
}

#imprint_partial h2{
  color: white;
  margin-bottom: 55px;
  text-align: left;
}

@media (max-width: 900px) {
  #imprint_partial {
    padding-left: 27vw;
  }
}

#imprint_partial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(./images/impressum.jpg);
  background-size: cover;
  background-position: top;
  opacity: 0.9;
  z-index: -2;
}

#imprint_partial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Datenschutz page styling */
#privacy_partial {
  position: relative;
  padding: 20px;
  color: #ffffff;
  z-index: 1;
  padding-left: calc(27vw - 60px);
}

@media (max-width: 900px) {
  #privacy_partial {
    padding-left: 6vw;
  }
}

#privacy_partial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(./images/impressum.jpg);
  background-size: cover;
  background-position: top;
  opacity: 0.9;
  z-index: -2;
}

#privacy_partial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Links in menu pages */
#credits_partial a,
#imprint_partial a,
#privacy_partial a,
#referral_code_partial a {
  color: #fdcb6e;
  text-decoration: underline;
}

#credits_partial a:hover,
#imprint_partial a:hover,
#privacy_partial a:hover,
#referral_code_partial a:hover {
  color: #ffeaa7;
}


/* Referral Code Section Styles */
.referral-code-page h2 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.referral-section {
  background-color: rgba(67, 67, 67, 0.5);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.referral-info {
  background-color: var(--color-success-light);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}

.referral-highlight {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-right: 8px;
}

.referral-code-container, .friend-code-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  max-width: 100%;
}

.referral-code-input, .friend-code-input {
  flex: 1;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: 2px solid var(--color-accent-light);
  border-radius: 8px;
  background: rgb(67, 67, 67, 0.5);
  color: var(--text-color-dark);
  max-width: 88%;
}

.referral-link-input{
  min-width: min(360px, 80%);
}

.warning-text {
  color: var(--color-warning);
  font-style: italic;
  margin: 8px 0;
}

.referral-status {
  margin: 16px 0;
  font-weight: bold;
}

.username-lock-section, .registered-user-section {
  background-color: var(--color-background);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--color-accent-light);
}

.current-username-display, .registered-username {
  margin: 12px 0;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}
/* Chords module styles */

/* Play buttons container */
.play-buttons-container-2_2 {
  position: absolute;
  top: 0px;
  z-index: 100;
  width: 100%;
}

/* Start Game button */

.start-game-button {
  color: transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  margin-top: 8vw;
  width: 90%;
  height: 32vw;
  background-color: transparent;
  font-size: 16px;
  opacity: 0;
  border: none;
}

.start-game-button:hover {
  background-color: transparent;
  transform: translateY(-2px);
  opacity: 0.5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Replay button */
.replay-chord-button {
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.replay-chord-button:hover {
  background-color: #0b7dda;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Full-height containers for all chord activities */
.chord-activity-container, 
.color-matching-container,
.chords-stable-unstable-container,
.chord-building-container,
.missing-note-container,
.chord-character-container,
.harmony-gardens-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 80px; /* Extra space for buttons at bottom */
}

/* Set specific height for chord chapters view */
.chord-chapters-view {
}

/* Play chord button styles */
.play-chord-button {
  margin: 15px auto;
  padding: 12px 20px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  /* Make button stand out */
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}

.play-chord-button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.play-chord-button:active {
  transform: translateY(1px);
}

/* Fixed Play button for chord building */
#play-full-chord-button-container {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  background-color: rgba(255,255,255,0.9);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.chord-blocks {
  margin-bottom: 60px; /* Make space for the play button */
  position: relative;
  z-index: 10;
}

/* Make Tone.js buttons large and clear */
button.chord-button, 
button.mood-button {
  padding: 10px 15px;
  margin: 5px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

button.chord-button:hover,
button.mood-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/*# sourceMappingURL=main.2524229d966a04827a9f.css.map*/