body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.weather-container {
  position: relative;
  height: 100%;
  width: 100%;
  color: white;
  box-sizing: border-box; 
  z-index: 1; 
}

.top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  text-align: left;
  z-index: 2; 
}

.temperature {
  font-size: 64px; 
  font-weight: bold;
  margin: 0;
  color: rgba(255, 255, 255, 0.7); 
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
}

.location {
  font-size: 24px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bottom {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 2; 
}

.time-bar-container {
  max-width: 700px;
  margin: 0 auto; 
  text-align: center;
}

.time-bar {
  display: flex;
  height: 80px;
  justify-content: flex-start; 
  align-items: flex-end; 
  width: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap; 
  cursor: pointer;
  position: relative;
  padding-bottom: 10px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.line {
  width: 2px;
  height: 30px;
  background-color: white;
  margin-right: 20px;
  transition: transform 0.3s ease, scale 0.3s ease;
}

.medium-line {
  height: 45px;
}

.big-line {
  height: 60px;
}

.time {
  font-size: 16px;
  margin-top: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.label-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
}

.image-label {
  font-size: 16px;
  margin-top: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.image-link {
  position: absolute;
  top: 3%;
  right: 1.75%;
  font-size: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
  color: rgba(255, 255, 255, 1);
}

.fade {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.fade.show {
  opacity: 1;
}

.big-line.zoomed {
  transform: scale(1.5);
}

.medium-line.zoomed {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .line {
    margin-right: calc(100vw / 31 - 2px);
  }
}

@media screen and (max-width: 480px) {
  .line {
    margin-right: calc(100vw / 31 - 2px);
  }
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: 5;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay .content {
  text-align: center;
  color: white;
  font-size: 20px;
  padding: 20px;
}

@media (max-width: 600px) {
  .overlay .content {
    font-size: 6vw;
  }
}
