body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background 0.5s ease-in-out;
  font-family: "IBM Plex Mono", serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  text-align: center;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

p {
  width: 500px;
}

#sun {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
  cursor: pointer;
}

#moon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 100px;
  cursor: pointer;
}

#izquierda {
  position: fixed;
  top: 50px;
  left: 8px;
  font-size: 40px;
  color: black;
  padding: 5px 10px;
}

#derecha {
  position: fixed;
  bottom: 50px;
  right: 8px;
  font-size: 40px;
  color: black;
  padding: 5px 10px;
}

#clock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  font-family: "IBM Plex Mono", monospace;
  color: white;
  background-color: rgba(0, 0, 0, 0.9); /* Más oscuro */
  padding: 20px 40px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  user-select: none;
  animation: vibrate 0.2s infinite alternate;
}

@keyframes vibrate {
  0% {
    transform: translate(-50%, -50%) rotate(-1deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(1deg);
  }
}
