*, *::before, *::after {padding: 0; margin: 0; box-sizing: border-box;}

@font-face {
  font-family: 'Inter';
  src: url(/src/fonts/Inter-VariableFont_opsz\,wght.ttf);
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url(/src/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf);
  font-style: italic;
}
@font-face {
  font-family: 'eb-garamond';
  src: url(/src/fonts/EBGaramond-Italic-VariableFont_wght.ttf);
  font-style: italic;
}


body {
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  width: 100dvw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.45em;
  background-image: url(/public/fiskars-shape.png)!important;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
  color: #000;
  text-align: center;
}

.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 79, 89, 0.9);  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.6s ease;
  font-family: 'Inter', sans-serif;
}

.countdown-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.countdown-overlay .welcome-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 60px;
  border-radius: 20px;

}

.countdown-overlay h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.countdown-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

#countdownTimer {
  display: flex;
  gap: 20px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px 20px;
  text-align: center;
  min-width: 60px;
}

.countdown-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.countdown-item small {
  display: block;
  font-size: 0.75rem;
  color: #ddd;
  margin-top: 4px;
}


.header {
  background-color: rgb(210, 219, 211);
  min-height: 80px;
  font-family: 'eb-garamond', serif;
  font-weight: 500;
  font-style: italic; 
}

.header-content {
  display: flex;
  justify-content: space-between;
  max-width: 1300px;
  margin: auto;
  padding: 5px 40px 5px;
  align-items: stretch;
}

.header-center {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.header h2 {
  font-size: 1.75em;
  margin: .75em 0;
  line-height: 1.35em;
}
.header a {
  filter: grayscale(1) contrast(2);
  text-decoration: none;
}
.header i {
  font-size: 26px;
  padding: 0 12px;
}

.title {
  padding: 10px;
}
.logo {
  max-width: 180px;
}

.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 10px 0 0;
}



.presentation,
.slider {
  flex: 1;
}

.presentation {
  position: relative;
  background-color: rgba(255, 255, 255, 0);
  padding: 20px;
  display: grid;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 100%;
}

.video {
  position: relative;
  padding: 1em;
  width: 80vw;
  max-width: 1600px;
  height: 100%;
}
.video .video-js {
  background-color: rgba(210, 219, 211, 0.2);
  position: relative;
  overflow: hidden;
  width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 16/9;
}
.slideshow {
  position: relative;
  display: inline-block;
  padding: 1em;
  max-width: 50%;
}
.slideshow .selected-image {
  position: relative;
  overflow: hidden;
  width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 16/9;
}


/* Slider */

.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 10vh;
}

.selected-image {
  object-fit: cover;
}
#fullscreenBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  display: none;
}
.slideshow:hover #fullscreenBtn {
  display: block;
}

.thumb-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.thumb-track {
  display: flex;
  width: max-content;
  transition: transform 0.4s ease;
  cursor: grab;
}
.thumb-track img {
  width: 110px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin: 0 2px;
  border-radius: 5px;
  user-select: none;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: 0.3s;
}
.thumb-track img:hover {
  transform: scale(1.05);
}
.thumb-track img.selected {
  opacity: 1;
  border-color: #007bff;
}

#syncButton {
  margin-top: 15px;
  background-color: #1F4F59;
  opacity: 0.8;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  visibility: hidden;
  transition: opacity 0.3s ease;
  align-self: center;
}
#syncButton:hover {
  opacity: 1;
}
#syncButton.visible {
  visibility: visible;
  opacity: 1;
}
.input-group {
  display: flex;
  justify-content: center;
}
#questionInput {
  width: auto;
  max-width: 800px;
}

#questionBtn {
  background-color: #1F4F59;
  opacity: 0.8;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  align-self: center;
}
#questionBtn:hover {
  opacity: 1;
}
#questionBtn.visible {
  visibility: visible;
  opacity: 1;
}



.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 2;
}

.arrow.left { left: 5px; }
.arrow.right { right: 5px; }


.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background-color: #1F4F59;
  color: white;
  padding: 10px 5px;
  font-size: 13px;
  gap: 5px;
}
.footer p {
  margin: 4px 0;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently */
}
.footer-break {
  display: inline;
}
.av-logo {
  height: 40px;
}
.streamkey-logo {
  height: 28px;
}




@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    gap: 8px;
  }

  .title {
    padding: 0;
    text-align: center;
  }

  .header h2 {
    font-size: 1.2em;
    margin: 0.5em 0;
  }

  .header-center {
    margin: 0;
    order: -1;
  }

  .logo {
    max-width: 140px;
  }

  .socials {
    flex-direction: row!important;
    justify-content: center;
    margin: 0;
    gap: 10px;
  }

  .header {
    min-height: auto;
  }
  
  .presentation {
    width: 100vw;
    max-width: 100%;
  }

  .video {
    width: 440px;
    min-width: 80%;
    max-width: 100%;
    padding: 0.5em;
  }

  .slider {
    height: auto;
    padding: 10px;
  }

  .thumb-track {
    justify-content: center;
    flex-wrap: wrap;
  }

  .thumb-track img {
    width: 90px;
    margin: 4px;
  }

  #syncButton {
    width: auto;
    margin: 10px auto 0;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .countdown-overlay h1 {
    font-size: 1.8rem;
  }

  .countdown-item span {
    font-size: 1.2rem;
  }

  .countdown-item small {
    font-size: 0.7rem;
  }

  .countdown-overlay p {
    font-size: 1.2rem;
  }

  #countdownTimer {
    font-size: 1.8rem;
  }

  .footer {
    position: relative;
  }
  .footer-break {
    display: none;
  }
}


@media (max-width: 600px) {
  .footer {
    font-size: 12px;
    padding: 8px 5px;
  }

  .av-logo {
    height: 30px;
  }

  .streamkey-logo {
    height: 15px;
  }
}


@media (max-width: 480px) {
  .socials {
    flex-direction: column;
    gap: 6px;
  }

  .logo {
    max-width: 140px;
  }
  .header i {
  font-size: 25px;
  }

  .header-title {
    font-size: 1.2em;
    text-align: center;
  }

  .countdown-overlay h1 {
    font-size: 1.2em;
  }

  .countdown-item {
    min-width: 50px;
    padding: 10px 12px;
  }

  .countdown-item span {
    font-size: 1rem;
  }

  .countdown-overlay p {
    font-size: 1rem;
  }

  #countdownTimer {
    font-size: 1.2rem;
  }
}