:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --background-color: #faf3e2;
  --border-color: #ddd;
  --accent-color: #f0ad4e;
}

body {
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  max-width: 800px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-header {
  width: 100%;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.app-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  text-align: left;
  position: relative;
}



.app-title {
  font-family: 'Cherry Bomb One', cursive;
  color: black;
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
}

.app-icon {
  height: 50px;
  width: auto;
}

.note-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

.musical-note {
  font-size: 10rem;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.note-change {
  transform: scale(1.1);
  opacity: 0.7;
}

.info {
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

/* Settings section */
.controls {
  margin: 1rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

article {
  padding: 1.25rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #fafafa;
}

.controls > article:last-child {
  margin-top: 0;
}

h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.mode-toggle {
  margin-top: 1rem;
}

/* Tempo control */
.tempo-control {
  transition: all 0.3s ease;
  max-height: 100px;
  opacity: 1;
}

.tempo-control.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
}

#tempo {
  width: 100%;
  margin-top: 0.5rem;
}

#tempo-value {
  font-weight: bold;
  color: var(--accent-color);
}

/* Note selection grid */
.note-selection {
  margin-top: 1rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.note-cell {
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.note-cell:nth-child(4n) {
  border-right: none;
}

.note-cell.header {
  font-weight: bold;
  background-color: #f5f5f5;
}

.toggle-row, .toggle-column {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.toggle-row:hover {
  background-color: rgba(74, 111, 165, 0.1);
}

.toggle-column:hover {
  background-color: rgba(22, 96, 136, 0.1);
}

.selection-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.selection-buttons button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Guitar practice mode */
/* Floating practice container */
.floating-practice-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.floating-practice-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.practice-label {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.practice-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.practice-controls.minimal {
  padding: 0.5rem;
  background-color: transparent;
  border-radius: 0.5rem;
}

.detected-note-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background-color: #f8f9fa;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
}

#detected-note {
  font-weight: bold;
  font-size: 0.75rem;
  color: var(--primary-color);
}

.icon-button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
}

.circle {
  border-radius: 50%;
}

.feedback-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feedback-indicator.correct {
  background-color: rgba(76, 175, 80, 0.2);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  opacity: 1;
}

.feedback-indicator.incorrect {
  background-color: rgba(244, 67, 54, 0.2);
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
  opacity: 1;
}

.note-container {
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .musical-note {
    font-size: 8rem;
  }
  
  .note-container {
    height: 200px;
  }
  
  .note-grid {
    font-size: 0.9rem;
  }
  
  .practice-controls {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .musical-note {
    font-size: 6rem;
  }
  
  .note-container {
    height: 150px;
  }
  
  .note-grid {
    font-size: 0.8rem;
    gap: 0.25rem;
  }
  
  .practice-controls {
    flex-direction: column;
  }
  .note-cell {
    padding: 0.25rem;
  }
}
