:root {
  --time-font-size: 45px;
}

body,
.main-container,
.bg-image {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out; /* Smooth transition */
}

/* --- BUTTON STYLES (Shared) --- */
#next-btn,
#shuffle-btn {
  position: fixed;
  top: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 30px;
  cursor: pointer;
  z-index: 100;
  opacity: 0.1; /* Almost invisible */
  transition: opacity 0.3s, transform 0.2s;
}

#next-btn:hover,
#shuffle-btn:hover {
  opacity: 1; /* Fully visible on hover */
  transform: scale(1.1);
}

/* Specific Positioning */
#next-btn {
  right: 20px;
}

#shuffle-btn {
  left: 20px;
}

/* --- EXISTING STYLES BELOW --- */

.info-container {
  width: 100%;
  max-width: fit-content;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateX(-50);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 15px;
  backdrop-filter: blur(5px);
  margin: auto;
  margin-bottom: 50px;
}

p, span {
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 0;
  margin: 0;
}

.time-container {
  display: flex;
  justify-content: center;
  font-size: var(--time-font-size);
}

#colon {
  animation: blink 2s infinite;
}

@keyframes blink {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.date-container {
  display: flex;
}

#date {
  font-size: calc(var(--time-font-size) / 2.5);
}

#comma, #space {
  margin-right: 5px;
}

.input-container {
  position: fixed;
  width: 40%;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 15px;
  margin: auto;
  margin-bottom: 50px;
  z-index: 10;
}

#img-url-input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  text-align: center;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: rgb(255, 255, 255);
  font-size: 130%;
  opacity: 0;
  transition: all 0.5s;
}