@font-face {
    font-family: 'Area InkTrap';
    src: url("../fonts/AreaInktrapSemibold/AreaInktrap-Semibold.woff2") format('woff2'),
         url("../fonts/AreaInktrapSemibold/AreaInktrap-Semibold.woff") format('woff');
    font-weight: 400;
    font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Area InkTrap';
  background-color: #000;
  overflow: hidden; /* Ensure no scrolling */
  color: #00f256;
}

#slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/live_gradient_background01.png" );
  background-position: bottom left;
  background-repeat: no-repeat;
  pointer-events: none; /* Allow clicks to pass through to other elements */
  /* opacity: 0; */
  transition: opacity 1s ease-in-out; /* Smooth fade-in and fade-out */
}

#slide-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}




#vignette {
  z-index: 2;
  pointer-events: none;
  /* visibility: hidden; */

  position: absolute;
  z-index: 3;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  inset: 0; 

 

  /* fill this box with the gradient */
  background-image:
    linear-gradient(to top,    rgba(0,0,0,1), transparent 20%),
    linear-gradient(to bottom, rgba(0,0,0,1), transparent 20%),
    linear-gradient(to left,   rgba(0,0,0,1), transparent 20%),
    linear-gradient(to right,  rgba(0,0,0,1), transparent 20%);
  background-repeat: no-repeat;

  transition: opacity 1s ease-in-out, transform 20s ease-in-out;  /* Add transform for zoom effect */
  animation: zoom-in 19s ease-in-out forwards;  /* Apply zoom-in animation */
}

  /* #image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  

  background-image: 
    linear-gradient(to top,    rgba(255,0,0,1), transparent 20%),
    linear-gradient(to bottom, rgba(255,0,0,1), transparent 20%),
    linear-gradient(to left,   rgba(255,0,0,1), transparent 20%),
    linear-gradient(to right,  rgba(255,0,0,1), transparent 20%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;


  opacity: 1;

  transition: opacity 1s ease-in-out, transform 20s ease-in-out;
  animation: zoom-in 20s ease-in-out forwards;
} */


#slideshow-image {
  position: absolute;
  inset: 0;
  margin: 0; 
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0;  /* Start hidden for fade-in */
  transition: opacity 1s ease-in-out, transform 20s ease-in-out;  /* Add transform for zoom effect */
  animation: zoom-in 20s ease-in-out forwards;  /* Apply zoom-in animation */

}



:root {
  --zoom-from: 1.0;
  --zoom-to: 1.10;
  --y-offset: 0;         /* default; overridden in media query */
}

@keyframes zoom-in {
  from { transform: translateY(var(--y-offset)) scale(var(--zoom-from)); }
  to   { transform: translateY(var(--y-offset)) scale(var(--zoom-to)); }
}

h1, h2 {
  font-weight: normal;
}

#info {
  position: absolute;
  bottom: 5vh; /* Scales with viewport height */
  left: 4vw;  /* Scales with viewport width */
  width: clamp(150px, 12vw, 350px);
  z-index: 99;

}

#scenario_name {
  font-size: clamp(12px, 1.0vw, 20px);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top: clamp(20px, 1.7vw, 70px);
  width: 10vw;
}

#plant_name {
  /* font-size: 1.5vw;   */
  font-size: clamp(22px, 1.5vw, 70px);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top:clamp(20px, 1.7vw, 70px);
}

#plant_description {
  font-size: clamp(12px, 1.0vw, 15px);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top: clamp(20px, 1.7vw, 70px);
  width: clamp(200px, 12vw, 350px);
}

#player_name {
  font-size: 0.8vw;  /* Scales with viewport width */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top: 1.8vw;
  display: none;
}

#controls {
  position: absolute;
  bottom: 1vh;  /* Scales with viewport height */
  right: 1vw;   /* Scales with viewport width */
}

button {
  padding: 1vw; /* Scales with viewport width */
  font-size: 1vw; /* Scales with viewport width */
  background-color: rgba(0, 0, 0, 0.0);
  color: #666;
  border: none;
  cursor: pointer;
  display: none;
}

button:hover {
  /* background-color: #555; */
}



@media  (min-aspect-ratio: 9/17) and (max-aspect-ratio: 9/15) {


#info {
  bottom: 10vh; /* Scales with viewport height */
  left: 8vw;  /* Scales with viewport width */
  transform: scale(1.5);
}
 #slide-wrap { 
  /* transform: translateY(-200%);  */
  transform: scale(1.3) translateY(-0%) ;
}

}
