/* General Styling */
body {
    text-align: center;
    background-color: #283149;
    margin: 0;
    padding: 0 1rem;
    font-family: "Arvo", cursive;
}

h1 {
    font-size: 4rem;
    color: #DBEDF3;
    margin-top: 2rem;
    text-shadow: 3px 0 #DA0463;
}

/* Drum Button Container */
.set {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default: 3 per row */
  gap: 1rem;
  justify-items: center;
  margin: 5% auto;
  max-width: 900px;
}

/* Drum Buttons */
.drum {
    outline: none;
    border: 8px solid #404B69;
    font-size: 3rem;
    font-weight: 900;
    color: #DA0463;
    text-shadow: 2px 0 #DBEDF3;
    border-radius: 15px;
    width: 100%;
    height: 18vh;
    background-color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.drum:active,
.pressed {
    box-shadow: 0 3px 5px rgba(255, 255, 255, 0.6);
    opacity: 0.6;
}

/* Individual Button Backgrounds */
.w { background-image: url("/images/drum-img/tom1.png"); }
.a { background-image: url("/images/drum-img/tom2.png"); }
.s { background-image: url("/images/drum-img/tom3.png"); }
.d { background-image: url("/images/drum-img/tom4.png"); }
.j { background-image: url("/images/drum-img/snare.png"); }
.k { background-image: url("/images/drum-img/crash.png"); }
.l { background-image: url("/images/drum-img/kick.png"); }

/* Back Button */
.drumkit-back {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 5rem;
    background-color: rgba(127, 127, 243, 0.9);
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
}

.drumkit-back:hover {
    background-color: #222;
    color: white;
}

/* Footer */
footer {
    color: #DBEDF3;
    font-size: 0.9rem;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 700px) {
  .set {
    grid-template-columns: repeat(3, 1fr); /* 4 per row on wider screens */
  }
  .set > :nth-child(7) {
    grid-column: 2; /* Center column of 3-column grid */
  }
}

@media (max-width: 600px) {
    .drum {
        width: 100%;
        height: 25vw;
        font-size: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .drumkit-back {
        position: static;
        margin: 2rem auto;
        display: block;
    }
}
