* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: 'TheSansB', Arial, Helvetica, sans-serif;
  background: linear-gradient(to top, #040D33, #001155);
  background-attachment: fixed;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: clamp(16px, 1.2vw, 28px);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
}

p {
  font-size: 1.2rem;
}
.datetime {
  font-size: 2rem;
  opacity: .9;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1em solid;
  border-image: linear-gradient(to right,
  #F20505 10%,
  #0445C8 25%,
  #1FB9FF 65%,
  #033AAA 100%) 1;
}

.logo img {
  height: 4em;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 3fr 9fr;
  grid-template-rows: 1fr;
  height: 100%;
}

.events {
  padding: 2em;
  border-right: 1px solid #1e293b;
  overflow: hidden;
}

.events h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.event {
  display: flex;
  align-items: center;
  gap: 16px;
  /* background: #1e293b; */
  padding: 1em 0;
}

.event-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-info {
  flex: 1;
}

.event-title {
  font-weight: bold;
  margin-top: 4px;
}

.event-time {
  font-size: 0.9em;
  opacity: 0.8;
}

.announcement-area {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* animation:kenburns 20s ease-in-out infinite alternate; */
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0)
  }

  100% {
    transform: scale(1.15) translate(-2%, -2%)
  }
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.slide-content {
  position: relative;
  padding: 40px;
}

.slide h1 {
  margin: 0;
}

.slide p {
  margin-top: 20px;
  opacity: .95;
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: white;
  transition: width linear;
}

.qr-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-image {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 3840px) {
  h1 {
    font-size: 4em;
  }

  h2 {
    font-size: 1.8em;
  }

  p {
    font-size: 1.2em;
  }

  .small {
    font-size: 0.9rem;
  }

  .datetime {
    font-size: 5rem;
    opacity: .9;
  }

  .logo img {
    height: 6em;
    margin-top: 0.5em;
  }

  .events h2 {
    font-size: 2em;
  }

  .events {
    font-size: 3rem;
  }

  .event-thumb {
    width: 160px;
    height: 160px;
  }

  .qr-image {
    max-width: 20em;
    max-height: 20em;
  }
}

.ql-size-small {
  font-size: 0.7em;
}

.ql-size-large {
  font-size: 1.5em;
}

.ql-size-huge {
  font-size: 2em;
}

