body {
  margin: 0;
  font-family: Arial;
  color: black;
}

/* formatting for latest image description bar */
.titlebar {
  color: #FFFFFF;
  text-align: left;
  background-color: #000000;
}
.timestamp {
  color: #FFFFFF;
  text-align: right;
  background-color: #000000;
}  

/* formatting for top navigation bar */
.topnav {
  overflow: hidden;
  background-color: black;
}

/* General link styling */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #4CAF50;
  color: white;
  
}

/* Mobile menu icon */
.topnav a.icon {
  display: none;  /* Hide icon by default */
  width: 100vw;
  padding: 14px;
  color: white;
  font-size: 17px; /* Make the text bigger */
  font-weight: bold; /* Make it bold */
  text-align: center;
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

/* Search Bar */
.search-container {
  width: 100%;
  text-align: center;
  padding: 20px;
  background: #FFFFFF;
}

#searchForm {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 5px;
  border-radius: 5px;
  border: 2px solid #000;
}

#searchInput {
  padding: 6px 10px;
  font-size: 16px;
  border: none;
  outline: none;
}

#searchForm button {
  background: #00CC00;
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
}

#searchForm button:hover {
  background: #006400;
}

#backToTop {
  position: fixed;
  bottom: 50px;
  right: 50px;
  background: #00CC00;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  font-size: 16px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
  background: #006400;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Show the icon as the toggle */
  .topnav a.icon {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Hide menu items by default on mobile */
  .topnav a {
    display: none;
    width: 100vw;
    text-align: left;
  }

  /* Show menu items when "responsive" class is added */
  .topnav.responsive a {
    display: block;
    width: 100vw;
  }

  /* Adjust back-to-top button */
  #backToTop {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }
}
