*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #0a0f18;
}

.logo-container img {
  width: 20vw;
  height: auto;
}

#display {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  min-height: 0;
}

#video-panel,
#info-panel {
  opacity: 1;
  transition: opacity 1.5s ease;
}

#video-panel {
  width: 60%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: #1a2a4a;
}

#weather-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#info-panel {
  display: flex;
  width: 40%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  background-color: #0d1524;
  background-image: url('assets/background/Background-OO.webp');
  background-size: cover;
  background-position: center;
}

#weather-icon {
  width: auto;
  height: 24vh;
  object-fit: contain;
}

#temperature {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.04em;
  position: relative;
}

#temperature img {
  height: 34vh;
  width: auto;
  display: block;
  object-fit: contain;
}

#temperature img.degree {
  height: 34vh;
  position: relative;
  left: 22px;
  top: 0;
}

#timeslot-label {
  margin-top: 0.5rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 6vmin, 3.5rem);
  font-weight: 600;
  color: #e8eef8;
  text-align: center;
  line-height: 1.1;
  min-height: 1.2em;
}

#timeslot-label img {
  max-width: 90vw;
  height: 15vh;
  display: block;
  margin: 0 auto;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

#dev-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0.5rem 0.75rem;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #c8d0e0;
  background: rgba(8, 12, 20, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
}

@media (orientation: portrait) {
  #display {
    flex-direction: column;
  }

  #video-panel {
    flex: 0 0 auto;
    width: 100%;
    height: 60%;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  #info-panel {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-between;
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    gap: 0 2vw;
  }

  #weather-icon {
    flex: 0 0 auto;
    width: auto;
    height: 18vh;
  }

  #temperature {
    flex: 0 0 auto;
  }

  #timeslot-label {
    flex: 0 0 100%;
    text-align: center;
  }

  #timeslot-label img {
    height: 10vh;
    width: auto;
  }

  .logo-container {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }

  .logo-container img {
    width: min(50vw, 280px);
  }

  #temperature img {
    height: 18vh;
  }

  #temperature img.degree {
    height: 18vh;
    left: 12px;
  }
}
