html,
body {
  background-color: #8f6e49;
  color: white;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Red Hat Display", sans-serif;
}

.navbar {
  display: flex;
  height: 100px;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #af8c64;
}

.head-text {
  justify-self: flex-start;
  margin-left: 20px;
  font-size: 20px;
  font-family: "Pinyon Script", cursive;
}

.nav {
  display: flex;
  margin-left: auto;
  margin-right: 20px;
  align-items: center;
  gap: 80px;
}

.nav a {
  text-decoration: none;
  font-size: 25px;
  color: white;
  font-weight: bold;
}

.nav a:hover {
  transition: 0.3s ease-in-out;
  color: rgba(218, 135, 12, 0.7);
  font-size: 28px;
}

.title {
  text-align: center;
  display: flex;
  justify-content: center;
  height: 700px;
  width: 100%;
  position: relative;
  z-index: 0;
  background-color: rgb(116, 72, 8);
}

.title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imgs/500MainBackground.png");
  background-size: cover;
  background-position: bottom;
  opacity: 0.55;
  z-index: 0;
}

.title > * {
  position: relative;
  z-index: 1;
}

.title h1 {
  font-size: 120px;
  font-family: "Nothing You Could Do", cursive;
  color: white;
  width: 100%;
  margin-left: 60px;
  z-index: 2;
  display: flex;
  align-items: end;
  text-align: left;
  justify-content: start;
  margin-bottom: 25px;
}



.timeline {
  margin: 300px 20px;
}

#timeline-title {
  text-decoration: 4px black solid underline;
  font-size: 45px;
  margin-bottom: 100px;
  text-align: center;
}

.timeline-content {
  padding-left: 10px;
}

.timestamp {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-left: 20px;
}

.timestamp h1 {
  margin: 0;
}

.timestamp p {
  margin: 0;
}

.timestamp-year {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  width: fit-content;
  height: 60px;
  width: 60px;
  padding-left: 0px;
  z-index: 1;
  background-color: black;
  margin-bottom: 240px;
}

.timestamp-year h1 {
  font-size: 20px;
}

.timestamp-content {
  border-left: 8px solid white;
  margin-left: -45px;
  padding-left: 50px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timestamp-content h1 {
  font-size: 40px;
}

.timestamp-content p {
  margin-bottom: 200px;
  margin-top: 20px;
  font-size: 22px;
}

#before-last {
  margin-bottom: -100px;
}

#last {
  border: none;
}

.overview {
  margin: 150px 0; /* Remove left/right margin */
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.overview h1 {
  text-align: center;
  font-size: 50px;
  text-decoration: 4px black solid underline;
}

.overview p {
  font-size: 20px;

  line-height: 30px;
}

.newstamp-container {
  margin: 100px 20px;
}

.newstamp-container h1 {
  text-align: center;
  font-size: 50px;
  text-decoration: 4px black solid underline;
}

.newstamp-container h2 {
  font-size: 30px;
  text-align: center;
  margin: 40px 200px;
}


.newstamp-gallery {
  display: flex;
  align-items: start;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.newstamp {
  height: auto;
  width: fit-content;
  margin: 100px 40px;
  background-color: #6e5539;

}

.newstamp-image {
  height: 100%;
  width: auto;
  border: 6px solid white;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newstamp-image img {
  height: 100%;
  width: auto;
  margin: 0;
}

.newstamp-title {
  height: 100px;
  border-top: 6px solid white;
  border-left: 6px solid white;
  border-right: 6px solid white;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;

}

.newstamp-title h1 {
    font-size: 30px;
    text-decoration: none;
    margin: 0;
}

.newstamp-title p {
  font-size: 20px;
}

.history-point {
margin-bottom: 40px ;
}

.main-point {
    background-color: #634d34;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    outline: none;
    font-size: 25px;
    height: 80px;
    font-family: "Red Hat Display", sans-serif;
    font-weight: bold;

  }

  
  .main-point:hover {
    background-color: #413222;
    cursor: pointer;
  }

    .dropdown-content {
    display: none;
    width: 100%;
    color: white;
    background-color: #6e5539;
    border-top: 2px solid white;
  }

   .dropdown-content p {
    font-size: 22px;
    margin: 0 100px;
    background-color: #6e5539;
    padding: 20px;
  }


  #img-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#img-overlay-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1;
}

#img-overlay-img {
  max-width: 90vw;
  max-height: 85vh;
  border: 8px solid white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  z-index: 2;
  background: #fff;
  padding: 8px;
}

#img-overlay-close {
  position: absolute;
  top: 30px;
  right: 60px;
  z-index: 3;
  font-size: 54px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
  transition: color 0.2s;
}
#img-overlay-close:hover {
  color: #ffd700;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  border-top: 2px solid black;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3; 
}


#footer-r {
  margin-left: auto;
  margin-right: 20px;
}

#footer-l {
  margin-left: 20px;
}

footer a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}


#img-overlay {
  display: none;                
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

#img-overlay-close {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}

#img-overlay-bg {
  position: absolute;
  inset: 0;
}

#img-overlay-img {
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
  user-select: none;
  touch-action: none; 
}

#img-overlay.show #img-overlay-img {
  transform: scale(1);
  opacity: 1;
}

#img-overlay { cursor: default; }
#img-overlay.zoomed { cursor: zoom-out; }
#img-overlay:not(.zoomed) { cursor: zoom-in; }
#img-overlay.panning { cursor: grabbing; }

#img-overlay.zoomed #img-overlay-img { cursor: grab; }
#img-overlay.panning #img-overlay-img { cursor: grabbing; }

@media (max-width: 900px) {


    .navbar {
        height: 120px;
        flex-direction: column;
    }
    
    .head-text {
        font-size: 15px;
        margin: auto;
          margin-top: 5px;
          text-align: center;
          margin-bottom: 0;
    }

    .nav {
      margin: 0px 0px;
      gap: 40px;
      justify-content: center;
    }
    .nav a {
        font-size: 20px;
    }

    .nav a:hover {
      font-size: 22px;
    } 

    .title {
      height: calc(100vh - 120px);
    }
    .title::before {
      background-image: url('imgs/500MainBackgroundMobile.png')
    }

    .title h1 {
      font-size: 55px;
      margin-left: 10px;
    }

    .overview {
      margin-top: 40px;
      margin-bottom: 40px;
    }

    .overview h1 {
      font-size: 40px;
      margin-bottom: 40px;
    }

    .main-point {
      height: 40px;
      font-size: 15px;
    }



    .dropdown-content p {
      font-size: 17px;
      margin: 0 10px;
    }
    
    .timeline {
      margin-top: 60px;
      margin-bottom: 40px;

    }

    #timeline-title {
      font-size: 40px;
      margin-bottom: 50px;
    }

    .timestamp-year {
      height: 50px;
      width: 50px;
      margin-bottom: 260px;
      border-radius: 80%;
      margin-right: 25px;
    }

    .timestamp-year h1 {
      font-size: 15px;
    }

    .timestamp-content {
      margin-left: -65px;
      padding-left: 30px;
    }

    .timestamp-content h1 {
      font-size: 30px;
    }

    .timestamp-content p {
      font-size: 17px;
    }

    #before-last {
      margin-bottom: -100px;

    }

    .newstamp-container {
      margin-top: 0;
    }

    .newstamp-container h1 {
      font-size: 35px;
    }

    .newstamp-container h2 {
      font-size: 22px;
      margin: 40px 10px ;
    }

    .newstamp-gallery {
      justify-content: center
    }

    footer {
     display: none;
    }
  
    .newstamp-image img {
      max-width: 700px;
    }

  };