body {
font-family: "adobe-song-std", sans-serif;
font-weight: 300;
font-style: normal;
color: #124521;
}


.content {
    display: flex; 
    flex-direction: column;
    column-gap: 50px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin-left: 20px;
    margin-top: 0;
    padding: 5px;
    background: #fefdf4;
    max-height: 90vh;      /* changed from min-height */
    width: 60vw;
    border: 10px solid #124521;
    border-radius: 15px;
    border-style: double;
    overflow-y: auto;      /* allow scrolling inside the box */
    scrollbar-color: #124521 #fefdf4; /* thumb and track colors */
}


.header {
    margin-top: 0;
    width: 100%;
    min-height: 100vh;      /* fill the content box, but allow scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}

#countdown {
  text-align: center;
  font-size: 60px;
}

.form {
    margin-top: 0;
    width: 50%;
    scrollbar-color: #124521 #fefdf4; /* thumb and track colors */

}

iframe {
    border: none;
    width: 100%;
    min-height: 100vh; /* or adjust as needed */
    scrollbar-color: #124521 #fefdf4; /* thumb and track colors */
}

#mydiv {
  position: absolute;
  z-index: 9;
  text-align: center;
  border: 10px solid #124521;
  border-radius: 10px;
  border-style: double;
  right: 100px;
  top: 50px;
  width: 300px;
  background-color: #fefdf4;

}

#mydivheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #fefdf4;
  
}

#divimg {
  width: 100%;
  height: 400px; /* set to match #mydiv height */
  overflow: hidden;
  position: relative;
  display: flex;
  /* remove flex-direction if present */
  border-radius: 3px;
}

.slideshow-vertical {
  display: flex;
  flex-direction: column;
  animation: slideUp 16s infinite;
  height: 1600px; /* 4 images x 400px each */
  
}

.slideshow-vertical img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  
}

@keyframes slideUp {
  0% { transform: translateY(0); }
  20% { transform: translateY(0); }
  25% { transform: translateY(-400px); }
  45% { transform: translateY(-400px); }
  50% { transform: translateY(-800px); }
  70% { transform: translateY(-800px); }
  75% { transform: translateY(-1200px); }
  95% { transform: translateY(-1200px); }
  100% { transform: translateY(0); }
}

@media (max-width: 700px) {
  .content {
    width: 90vw;
    max-height: 100vh;
    min-height: 100vh;
    border-width: 5px;
    border-radius: 0;
    margin-left: 0;
    padding: 0;
    overflow-x: hidden;
  }


  #mydiv {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin: 0 auto;
    width: 90vw;
    border-radius: 0;
    border-width: 5px;
    z-index: 99;
  }
    .header {
    max-height: 100vh;
    width: 100vw;
    padding: 0 10px;
  }

  .form {
    width: 80vw;
    padding: 0 5px;
  }
    .header h1 {
    font-size: 1.6em;
    line-height: 1.1;
  }

  #countdown {
    font-size: 2em;
  }

  #divimg {
    height: 400px; /* adjust as needed for smaller screens */
  }

  .slideshow-vertical {
    height: 400px; 
    width: 100%;
  }
}

a {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-color: #124521;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: #124521;
}
