/* ---------------------------------------------
   General
--------------------------------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
  margin: 0;
  padding: 20px;
}

/* ---------------------------------------------
   Título
--------------------------------------------- */
h1 {
  font-size: 40px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* ---------------------------------------------
   Info: tiempo y puntuación
--------------------------------------------- */
#info {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ---------------------------------------------
   Zona del juego
--------------------------------------------- */
#game {
  width: 500px;
  height: 400px;
  margin: 20px auto;
  background-color: rgba(255,255,255,0.1);
  position: relative;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* ---------------------------------------------
   Cuadrado
--------------------------------------------- */
#square {
  width: 50px;
  height: 50px;
  background-color: #ffdd59;
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#square:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* ---------------------------------------------
   Botón reiniciar
--------------------------------------------- */
#restart {
  background-color: #ff6b6b;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.2s;
}

#restart:hover {
  transform: scale(1.1);
  background-color: #ff4b4b;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 600px) {
  #game {
    width: 90%;
    height: 300px;
  }

  #square {
    width: 40px;
    height: 40px;
  }
}
