*{
 margin: 0;
 padding: 0;
}

 body{
 background-image: url('images/codioful-formerly-gradienta-vzA7K76Zmaw-unsplash.jpg');
 background-position: center;
 background-size: 138.5%;
}

 .header {
  display: flex;
  height: 5px;
 width: 98.7%;
 background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/QQQQQQ.jpg);
 background-position: 0 395px;
 background-size: 50%;
 align-items: center;
 justify-content: space-between;
 padding: 0 10px;
 font-size:  10px;
}

section.header {
  height: 63px;
  display: flex;
  align-items: flex-start;
}

.header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

 ul {
 color: #4a4b4b;
 display: flex;
 justify-content: space-evenly;
 flex-direction: row-reverse;
}

section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 1.8em;
  color: #d0e6ff;
  position: static;
  top: 10%;
  text-align: center;
  transform: none;
 
  padding: 16px;
 margin: 1px 40px 3px 693px; 
}


#introduction {
 width: 60%; 
 max-width: 800px; 
 height: 80vh; 
 margin: auto; 
 margin-bottom: 160px; 
 display: flex; 
 flex-direction: column; 
 justify-content: center; 
 align-items: center; 
 text-align: center; 
}

#history {
 width: 60%; 
 max-width: 800px; 
 margin: auto; 
 margin-top: 60px; 
 margin-bottom: 89px; 
 text-align: center;
 display: flex; 
 justify-content: center; 
 align-items: center; 
 height: 70vh;
}

.box {
 width: 100%; 
 background: #eff6e0;
 border: 1px solid #eff6e0;
 border-radius: 13px;
 padding: 30px;
 line-height: 2;
 font-size: 18px;
 height: 40vh; 
 display: flex; 
 justify-content: center; 
 align-items: center; 
}

nav {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding: 10px 20px;
  align-items: center;
}

nav img{
 width: 60px;
 height: auto;
}

.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 0;
}

.nav-links ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  text-align: right;
  padding: 0;
 
}

.nav-links a {
  color: #aec3b0;
  font-size: 18px;
  text-decoration: none;
}

.nav-link ul li{
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li::after {
 content: '';
 width: 0%;
 height: 2px;
 background: #838282;
 display: block;
 margin: auto;
 transition: 0.5s;
}

.nav-links ul li:hover::after {
 width: 100%;
}

nav:nth-of-type(2) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

nav:nth-of-type(2) a {
  color: #4a3d3d;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.container {
  border-radius: 5px;
  background-color: #eff6e0;
  padding: 20px;

}
  
section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h4 {
  font-size: 2em;
  color: #598392;
  margin: 0.83em 0;
  font-weight: bold;
  text-align: center;
  margin-bottom:  10px ;
}

#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding:10px 15px;
  background: #b0c4b1;
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-nav a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background 0.3s;
  font-size: 20px;
}

#main-nav a:hover {
  background: #52796f;
}

#main-nav img {
  height: 40px;
}



.overlay-text {
    position: absolute;
    top: 10px; /* Position near the top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center alignment */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    color: white; /* Text color */
    padding: 5px 10px; /* Padding around the text */
    border-radius: 5px; /* Rounded corners */
    font-size: 18px; /* Font size */
    text-align: center; /* Center the text */
    font-family: Arial, sans-serif; /* Change this to your preferred font */
}


.gif-container {
    position: relative;
    width: 300px; /* Set width */
    margin: auto; /* Center the container */
}

.static-image {
    display: block;
    width: 100%; /* Ensure responsive design */
    height: auto; /* Maintain aspect ratio */
}

.gifImage {
    display: none; /* Initially hidden */
    width: 100%; /* Ensure responsive design */
    height: auto; /* Maintain aspect ratio */
}

.gif-control {
    position: absolute;
    bottom: 10px; /* Position the button 10px from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center the button */
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%; /* Make it round */
    width: 50px; /* Set width for a round button */
    height: 50px; /* Set height for a round button */
    display: flex; /* Center icon */
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth transition for fading */
}

.gif-control.visible {
    opacity: 1; /* Fully visible */
}

.gif-control.hidden {
    opacity: 0; /* Fade out */
    pointer-events: none; /* Prevent interaction when hidden */
}

.gif-control:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker on hover */
}

.fa {
    font-size: 20px; /* Adjust icon size */
}

.fa-play.hidden,
.fa-pause.hidden {
    display: none; /* Hide the icons */
}

.fa-play.visible,
.fa-pause.visible {
    display: inline; /* Show the icons */
}

.fa-play:hover,
.fa-pause:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker on hover */
}

/* Optional: Add transition effects for static image visibility */
.static-image, .gifImage {
    transition: opacity 0.3s ease; /* Smooth transition for fading */
}

/* Ensure overall gallery looks good */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center align items */
}

.campus-col {
    margin: 10px; /* Add space between columns */
    flex: 1 1 300px; /* Ensure responsiveness */
    max-width: 300px; /* Set a maximum width */
}


.main {
    background-color: #eef4ed;
    margin: 20px 0;
    display: block;
}

.hidden {
    display: none;
}

#main1 {
    display: none;
    text-align: right;
    max-width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Center the container */
}


button {
  display: block;
    margin-right: 10px ; /* Push button to the right */
    padding: 10px 20px;
    background-color: #748cab;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 20px;
   
}

button:hover {
    background-color: #a3b18a ;
    transition: 1s;
}   
.container {
  text-align: left;
}   

#main2 {
  display: none;
    text-align: right;
    max-width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Center the container */
}

#main3 {
  display: none;
    text-align: right;
    max-width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Center the container */
}
#main1, #main1, #main3 * {
    font-size: 20px;
}   

.scroll-to-top {
  position: fixed; /* Keep it in a fixed position */
  bottom: 20px; /* Distance from the bottom of the page */
  right: 20px; /* Distance from the right of the page */
  display: none; /* Hidden by default */
  background-color: #005f73; /* Button background color */
  color: white; /* Button text color */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  padding: 10px; /* Padding for button */
  cursor: pointer; /* Changes mouse cursor to pointer */
  z-index: 1000; /* Make sure it's on top of other elements */
  font-size: 18px; /* Font size */
}

.scroll-to-top:hover {
  background-color: #004a54; /* Darker shade on hover */
}
html {
  scroll-behavior: smooth;
}

#yourElementId {
  display: none;
}