body { 
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #333;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.level-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 0 0.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  min-width: 80px;
  flex: 0 0 20%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.level-btn:hover {
  background-color: #777;
}

.level-btn.active {
  background-color: #3a8cf7;
  font-weight: bold;
}

.level-btn.completed {
  background-color: #4CAF50;
}

.level-btn.locked {
  background-color: #999;
  cursor: not-allowed;
}

.trophy {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

#pad-container {
  margin-top: 100px;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.circle {
  width: 30vmin;
  height: 30vmin;
  border-radius: 50%;
  margin: 1vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5vmin;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.circle.flash {
  background-color: yellow !important;
}

.circle::after, .circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 10;
}

.circle::after {
  width: 66%;
  height: 66%;
}

.circle::before {
  width: 33%;
  height: 33%;
}

@media (max-width: 768px) {
  .circle::after, .circle::before {
    display: none;
  }
}

.pattern {
  font-size: 24px;
  margin: 30px 0;
  padding: 15px;
  background-color: white;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: inline-block;
}

.pattern span {
  margin: 0 10px;
  transition: font-size 0.3s, color 0.3s;
}

.pattern span.flash {
  font-size: 48px;
  color: #3a8cf7;
}

#feedback {
  margin-top: 30px;
  font-size: 24px;
  font-weight: bold;
  color: green;
  height: 30px;
}

#bpm-display {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}

#level-display {
  margin: 15px 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.achievement-display {
  margin-top: 20px;
  font-size: 22px;
  font-weight: bold;
}

.achievement-gold {
  color: goldenrod;
}

.achievement-silver {
  color: silver;
}

.achievement-bronze {
  color: #cd7f32;
}

.achievement-icon {
  font-size: 40px;
  margin-top: 10px;
}

.trophy-gold {
  color: goldenrod;
}

.trophy-silver {
  color: silver;
}

.trophy-bronze {
  color: #cd7f32;
}

.controls-info {
  margin-top: 20px;
  padding: 10px;
  background-color: #e8f4ff;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
}

.key {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 3px;
  background-color: #ddd;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-family: monospace;
}

.level-notification {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 128, 0, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.level-notification.show {
  opacity: 1;
}

.level-nav-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.level-nav {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

.level-nav-arrow {
  flex: 0 0 auto;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.level-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.drum-circle {
  width: 30vmin;
  height: 30vmin;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  margin: 1vmin;
}

.drum-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  transition: background-color 0.1s ease;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

#overlay {
  position: absolute;
  width: 30vmin;
  height: 30vmin;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  z-index: 1000;
  transform: translate(-50%, -50%);
}

@keyframes flash-animation {
  0% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

.flash {
  animation: flash-animation 0.15s ease-out;
}

.hit-center {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

.hit-middle {
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.7);
}

.hit-edge {
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.7);
}

/* Only shrink drums that are already on the canvas when dragged */
.drum-circle.on-canvas.dragging {
    transform: scale(0.5) !important;   /* 50% size – try 0.4 or 0.6 if too small/big */
    opacity: 0.8;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 999;                       /* stay on top */
    border: 2px solid #e74c3c;         /* optional: red border to visually indicate "dragging to remove" */
}

/* Optional: make the trash bin even more forgiving for large drums */
#trash-bin {
    width: 280px;          /* wider target area */
    height: 90px;          /* taller */
    font-size: 18px;
    padding: 10px;
}

