/* Top Navigation Bar */
.topnav {
  overflow: hidden;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: -64px; /* Initial position */
  transition: top 0.3s; 

  /* Glass effect */
  background: rgba(40, 40, 40, 0.60);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 95;
}

.topnav-right, .topnav-left {
  display: flex;
}

.topnav-right a{
  text-decoration: none;
  font-size: 20px;
  color: #a3a3a3;
  transition: 0.3s;
  height: 100%;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  cursor: pointer;
}

.topnav-right a:hover{
  color: #f1f1f1;
}

.topnav-left a img {
  height: 100%;
  padding: 5px;
}

/* Create a right-aligned (split) link inside the navigation bar */
.topnav a.split {
  height: 100%;
  background-color: #966868;
  display: flex;
  padding: 5px;
}



/* Side navigation blur*/
.dim {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
  display: none;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.8);
  transition: 1s;
  z-index: 98;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 99; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a{
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}
.sidenav a:hover{
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

/*---------------------------------------------------------------------- */


/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .7}
  to {opacity: 1}
}


/*------------------------------ About Section ------------------------------ */

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 5px;
  color: white;
  background: black;
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 0 2rem;
  text-align: center;
  min-height: 300px;
}

.about-overview{
   background:
        /* top, transparent black, faked with gradient */ 
        linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)
        ),
        /* bottom, image */
        url('../images/World\ Tree\ Meeting.JPG');
}

.about-intro{
  background:
        /* top, transparent black, faked with gradient */ 
        linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)
        ),
        /* bottom, image */
        url('../images/CAWG.png');
}

.about-works{
  background:
        /* top, transparent black, faked with gradient */ 
        linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)
        ),
        /* bottom, image */ url('../playerworks/Ni_hao.png');
}

.box {
  align-content: left;
  background-color: rgb(163, 146, 68, 0.5);
  padding: 20px;
  border-radius: 10px;

  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;

  /* Glass effect */
  background-color: rgba(40, 40, 40, 0.60);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
}

.box p{
  text-align: left;
  text-shadow: 2px 2px 4px #000000;
}

.map-section {
  padding-bottom: 30px;
}

/*------------------------------ Timeline Section ------------------------------ */
.timeline-section {
  background-color: black;
  color: white;
  padding: 5px 0px;
  z-index: 96;
  position: relative;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 30px;
  width: 100%;
  margin: auto;
}

.timeline-event {
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  background-color:#333333;
  scroll-margin-top: 200px;
  color: rgb(211, 211, 211);
}

.timeline-event p{
  text-align: left;
  padding-bottom: 10px;
}

.timeline-date {
  text-align: center;
}

.timeline-current {
  background-color:#3a2e24;;
}

/* Read-more button */
.read-more { 
  margin: 2px;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  background-color: rgb(93, 77, 109);
  color: white;
  border: none;
  font-size: 12px;
}

/*---------------------------------------------------------------------- */

@media (max-width: 800px) {
  .about-boxes {
    grid-template-columns: 1fr;
    place-items: center;
    height: 1200px;
    padding: 0 0rem;
    
  }
  .about-boxes div{
    width: 80%;
    height: 100%;
  }

  
}



