:root {
  --backgroundColor: rgb(255, 255, 255);
  --textColor: rgb(0, 0, 0);
  --accentColor: rgb(245, 245, 245);
  --activeColor: rgb(235, 235, 235);
}

@media (prefers-color-scheme: dark) {
  :root {
    --backgroundColor: rgb(0, 0, 0);
    --textColor: rgb(255, 255, 255);
    --accentColor: rgb(20, 20, 20);
    --activeColor: rgb(40, 40, 40);
  }
}

body {
  margin: 0;
  font-family: 'Comfortaa', sans-serif;
  display: none;
  overflow-x: hidden;
  background-color: var(--backgroundColor);
}

body.loaded {
  display: block;
}

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: no-repeat center center;
  background-size: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bg-layer.loaded {
  opacity: 1;
}

.generalContainer {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

div.open {
  background-color: transparent;
  font-family: 'Comfortaa';
  font-weight: 300;
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

div.open.exit-left {
  transform: translateX(-100vw);
}

div.open h1 {
  font-weight: 700;
  font-size: 24pt;
  margin: 0 0 4px 0;
}

div.open h2 {
  font-weight: 300;
  font-size: 11pt;
  margin: 0;
}

.glass {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease, background 0.5s ease;
}

.glass:hover {
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .glass:hover {
    background: rgba(0, 0, 0, 0.5);
    outline: none;
  }
}

.location-badge {
  position: fixed;
  bottom: 5px;
  left: 5px; /* Set to 5px from the left */
  padding: 10px 20px;
  z-index: 1000;
  color: var(--textColor);
  font-family: 'Comfortaa', sans-serif;
  font-size: 11pt;
  font-weight: 300;
}

#hourlyContainer, #deviceContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 125px;
  width: 100%;
  box-sizing: border-box;
}

.hourly-item, .device-item {
  flex: 1;
  height: 125px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
}

div.cycle {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--textColor);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  min-width: 350px;
  width: max-content;
  max-width: 90%;
  height: 125px;
  box-sizing: border-box;
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  animation-name: slowFadeSlide;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.glass-card-bottom {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  z-index: 1000;
  color: var(--textColor);
  font-family: 'Comfortaa', sans-serif;
  font-size: 11pt;
  font-weight: 300;
  cursor: pointer;
}

div.body {
  background-color: transparent;
  color: var(--textColor);
  transform: translateX(100vw);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  display: none;
}

div.body.active {
  display: block;
  transform: translateX(0);
}

#indexA {
  animation-delay: 0s;
}

#indexB {
  animation-delay: 3s;
}

#indexC {
  animation-delay: 6s;
}

@keyframes slowFadeSlide {
  0% {
    transform: translate(-50%, -75%);
    opacity: 0;
    visibility: hidden;
  }
  12% {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
  }
  24% {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
  }
  33.33% {
    transform: translate(-50%, -25%);
    opacity: 0;
    visibility: hidden;
  }
  100% {
    transform: translate(-50%, -25%);
    opacity: 0;
    visibility: hidden;
  }
}