.paper {
  background-image: url("../image/paper.jpeg");
  background-size: cover;         
  background-repeat: no-repeat;   
  background-position: center;    
  min-height: 100vh;              
}

.overlaybox {
  background-color: rgba(176, 155, 91,0.7);  
  color: #eee;                                 
  padding: 20px;
  border-radius: 10px;
  width: 95%;
  max-width: 400px;
  margin: 50px auto;                           
  text-align: left;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.brownbar{
  background-color: rgba(196, 163, 71,0.6);
}

.footer {
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 1500px;
}

.footer-content p {
  margin: 8px 0;
}

.font {
  font-family: "Brygada 1918";
}

h2 {
  font-family: "Brygada 1918";
}

.w3-button {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.w3-button:hover {
  background-color: rgba(160,115,77,0.6)!important;
  color: antiquewhite !important;
  border-radius: 10px !important;
}


.icon-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 100%;
  position: relative;
}

.icon-bar img {
  height: 32px;
  width: 32px;
  transition: transform 0.3s ease;
}

.icon-bar img:hover {
  transform: scale(1.1);
}

.school-logo {
  height: 48px;
  width: auto;
}

.brownbutton {
  background-color: rgba(245,217,140,0.6);
  border-radius: 10px;
  color: black;
}

.changingimage{
  display: block;
  margin: auto;
  max-width:400px;
  width:95%;
  height:auto;
  border-radius:8px;
  margin-top:20px;
  transition: left 1s ease,opacity 1s ease;
}

.dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  height: 48px;
  width:64px;
}

.dropdown {
  position: relative;
  display: inline-block;
  height: 48px;
}

.dropdown-content {
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  right: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 8px;
  top: 100%;
  left: 0%;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #ddd;
  border-radius: 8px;
}

.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.w3-bar{
  overflow: visible !important;
}

.slideshow-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: 95%;
  margin: auto;
  border-radius: 8px;
  margin-top: 20px;
  height: 250px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: white;
  border: none;
  padding: 12px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  text-align: center;
  justify-content: center;
  display: flex;
  transition: all 1s
}

.slide-btn.left {
  left: 10px;
}

.slide-btn.right {
  right: 10px;
}

.slide-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-slide {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-slide.show {
  animation: slideUp 0.6s ease-out forwards;
}

/* Fade-in Only */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-fade {
  opacity: 0;
}

.scroll-fade.show {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-zoom {
  opacity: 0;
  transform: scale(0.8);
}

.scroll-zoom.show {
  animation: zoomIn 0.6s ease-out forwards;
}

.changingimage-tall {
  display: block;
  margin: 0 auto;
  max-height: 90vh;        /* Fit vertically within viewport */
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: contain; 
  height: auto;
  transition: left 1s ease, opacity 1s ease;
}

.slideshow-wrapper-tall {
  position: relative;             /* required for absolute images inside */
  overflow: hidden;
  max-width: 600px;
  width: 95%;
  margin: auto;
  border-radius: 8px;
  margin-top: 20px;
  height: auto;
  min-height: 500px;              /* ensures space to display image */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#demo {
  animation: fadeIn 1.2s ease forwards;
}