* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.hamburger-menu:hover {
  transform: scale(1.1);
}

.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease;
  z-index: 999;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar h2 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 24px;
  text-align: center;
}

.instrument-list {
  list-style: none;
}

.instrument-list li {
  margin-bottom: 10px;
}

.instrument-btn {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-align: left;
}

.instrument-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.instrument-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-left: 4px solid #fff;
}

.instrument-name {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.instrument-container {
  padding: 20px;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instrument {
  display: flex;
  position: relative;
  background: #0a0a0a;
  padding: 20px;
  border-radius: 5px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    inset 0 -2px 5px rgba(0, 0, 0, 0.5);
}

.key {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.05s ease;
}

.key.white {
  width: 50px;
  height: 200px;
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #ddd;
  border-bottom: 1px solid #bbb;
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 5px 5px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.key.white:active,
.key.white.active {
  height: 198px;
  background: linear-gradient(to bottom, #eee 0%, #ddd 100%);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

.key.black {
  position: absolute;
  width: 30px;
  height: 120px;
  background: linear-gradient(to bottom, #333 0%, #000 100%);
  border: 1px solid #000;
  border-radius: 0 0 3px 3px;
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.5),
    inset 0 -1px 2px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.key.black:active,
.key.black.active {
  background: linear-gradient(to bottom, #222 0%, #000 100%);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(1px);
}

.key-label {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #999;
  pointer-events: none;
}

.key.white .key-label {
  color: #666;
}

.key.black .key-label {
  color: #ccc;
  bottom: 5px;
  font-size: 10px;
}

@media (max-width: 768px) {
  .instrument {
    transform: scale(0.8);
    transform-origin: center;
  }
}

/* Guitar Styles */
.guitar-fret {
  width: 80px;
  height: 240px;
  border-right: 2px solid #888;
  position: relative;
  background: linear-gradient(to bottom, #4a3a28 0%, #3a2a18 100%);
}

.guitar-fret:last-child {
  border-right: none;
}

.guitar-string {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ccc 0%, #999 100%);
  cursor: pointer;
  transition: all 0.1s ease;
}

.guitar-string:hover {
  background: #fff;
  height: 3px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.guitar-string.active {
  background: #ffeb3b;
  height: 4px;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}

/* Violin Styles */
.violin-body {
  width: 300px;
  height: 400px;
  background: linear-gradient(to bottom, #8b4513 0%, #654321 50%, #8b4513 100%);
  border-radius: 150px 150px 200px 200px / 200px 200px 250px 250px;
  position: relative;
  box-shadow:
    inset -5px -5px 20px rgba(0, 0, 0, 0.5),
    inset 5px 5px 20px rgba(255, 255, 255, 0.1);
}

.violin-strings {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 300px;
}

.violin-string {
  position: absolute;
  width: 2px;
  height: 100%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.1s ease;
}

.violin-string:nth-child(1) {
  left: 0;
}
.violin-string:nth-child(2) {
  left: 40px;
}
.violin-string:nth-child(3) {
  left: 80px;
}
.violin-string:nth-child(4) {
  left: 120px;
}

.violin-string:hover {
  background: #fff;
  width: 3px;
}

.violin-string.active {
  background: #ffeb3b;
  width: 4px;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}

/* Flute Styles */
.flute-body {
  width: 600px;
  height: 60px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #e0e0e0 100%);
  border-radius: 30px;
  position: relative;
  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.flute-hole {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.flute-hole:hover {
  background: #555;
}

.flute-hole.active {
  background: #ffeb3b;
  box-shadow:
    0 0 20px rgba(255, 235, 59, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Drums Styles */
.drums-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.drum {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.1s ease;
}

.drum.kick {
  background: radial-gradient(circle at 30% 30%, #5a4a3a 0%, #3a2a1a 100%);
  grid-column: 2;
  width: 180px;
  height: 180px;
}

.drum.snare {
  background: radial-gradient(circle at 30% 30%, #f0f0f0 0%, #d0d0d0 100%);
}

.drum.hihat {
  background: radial-gradient(circle at 30% 30%, #ffd700 0%, #ffb300 100%);
}

.drum.tom1,
.drum.tom2,
.drum.tom3 {
  background: radial-gradient(circle at 30% 30%, #8b4513 0%, #654321 100%);
}

.drum:hover {
  transform: scale(1.05);
}

.drum.active {
  transform: scale(0.95);
  box-shadow: 0 0 30px rgba(255, 235, 59, 0.8);
}

.drum-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-size: 14px;
  font-weight: bold;
}
