/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /*min-height: 100vh;*/
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Estilos para los tanques */
.tank {
  margin: 20px 0;
}

.tank-image {
  position: relative;
  width: 150px; /* Ajusta el tamaño según la imagen */
  margin: 0 auto;
}

.tank-image img {
  width: 100%;
  height: auto;
  display: block;
}

.water-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 10px 10px; /* Ajusta según la forma del tinaco */
}

.water {
  width: 100%;
  background-color: rgba(0, 188, 212, 0.6); /* Color del agua con transparencia */
  position: absolute;
  bottom: 0;
  transition: height 0.5s ease;
  animation: wave 2s infinite linear; /* Animación de olas */
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Estilos para el control de la bomba */
.pump-control {
  margin-top: 30px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #218838;
}

button:active {
  background-color: #1e7e34;
}

#pump-status {
  font-weight: bold;
  color: #dc3545;
  transition: color 0.3s ease;
}

/* Diseño responsive */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 20px;
  }

  .tank-image {
    width: 120px;
  }

  button {
    font-size: 14px;
    padding: 8px 16px;
  }
}