/* Background and overlay */
body {
  background-image: url('simon says 1.png');
  background-size: 100% 100%; /* Stretch to fill screen */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

body.overRed::before {
  background-color: red;
}

/* Typography */
h1, h2, p {
  text-align: center;
  color: white;
  margin: 10px 0;
}

/* Button layout */
.boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.set1, .set2 {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

/* Buttons */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  height: 10rem;
  margin: 1rem;
  border-radius: 15%;
  touch-action: manipulation;
  cursor: pointer;
  box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.4);
}

.red {
  background-color: rgb(192, 68, 68);
  border: 8px solid rgb(99, 13, 13);
}

.yellow {
  background-color: rgb(206, 206, 80);
  border: 8px solid rgb(137, 137, 69);
}

.green {
  background-color: rgb(101, 186, 192);
  border: 8px solid rgb(53, 91, 94);
}

.blue {
  background-color: rgb(130, 130, 169);
  border: 8px solid rgb(71, 71, 100);
}

/* Effects */
.flash {
  background-color: white !important;
}

.shadow {
  box-shadow: 15px 15px 10px black;
  background-color: rgb(46, 43, 43);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2, p {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .btn {
    width: 6rem;
    height: 6rem;
    margin: 0.8rem;
  }

  .set1, .set2 {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2, p {
    font-size: 1rem;
  }

  .btn {
    width: 5rem;
    height: 5rem;
    margin: 0.5rem;
  }
}