body {
  font-family: Arial, sans-serif;
  text-align: center;
}

form {
  margin: 20px;
}

.pantalla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px auto;
  width: 450px;             /* Reducimos el ancho */
  height: 180px;
  padding: 10px;
  position: relative;
}

.tambor {
  height: 150px;
}

.compas-btn {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
}

.compas-btn.selected {
  background-color: #007bff;
  color: white;
  border: 2px solid #0056b3;
}

.mano {
  height: 150px;
  position: absolute;
  right: 15px;               /* Más cerca del tambor */
  transform: translateX(0);
}

button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.explosion {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 150px;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 10;
}

.explosion.activa {
  opacity: 1;
}

.efecto-golpe {
  position: absolute;
  top: 10%; 
  left: 35%;
  width: 100px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease-out;
  z-index: 20;
}

.efecto-golpe.activo {
  opacity: 2;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  width: 360px;
  max-width: 90%;
  text-align: center;
}

h1 {
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 28px;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #34495e;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

#bpmValue {
  margin-top: 5px;
  font-size: 20px;
  font-weight: bold;
  color: #2980b9;
}

input[type="number"] {
  width: 80px;
  padding: 8px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.compas-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.compas-btn {
  padding: 10px 20px;
  border: none;
  background: #dcdde1;
  color: #2f3640;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.compas-btn:hover {
  background: #bdc3c7;
  transform: scale(1.05);
}

.compas-btn.selected {
  background: #27ae60;
  color: white;
  transform: scale(1.05);
}

button[type="submit"],
#iniciarBtn {
  margin-top: 30px;
  background-color: #3498db;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

button[type="submit"]:hover,
#iniciarBtn:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

#efectoGolpe.activo {
  opacity: 1;
}

#cuentaRegresiva {
  position: absolute;
  top: 50%;               /* Posición vertical central */
  left: 50%;              /* Posición horizontal central */
  transform: translate(-50%, -50%); /* Alineación exacta al centro */
  font-size: 10vw;        /* Tamaño más grande */
  font-weight: bold;
  color: red;
  z-index: 4;
  pointer-events: none;   /* Para que no interfiera con clics */
}

#fullscreenBtn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  font-size: 1.5rem;
  background: #222;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

.pantalla.zoom {
  transform: scale(2.4);        
  transform-origin: center; 
}
