header{
position: fixed; /* Fix the navbar at the top of the page */
 top: 0; /* Ensure it stays at the top */
 width: 100%; /* Make it span the entire width */
 padding: 1;
}
/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: #333;
  font-family: Arial;
  margin: 0;
  padding: 0;
  top: 0; /* Ensure it stays at the top */
  width: 100%; /* Make it span the entire width */
  z-index: 1000; /* Ensures it appears on top of other elements */
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute; /* Required for proper placement under the button */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001; /* Higher than the navbar to prevent clipping */
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 60px;
  margin-bottom: 20px;
  object-fit: contain;
  cursor: pointer;
}

/* EXIF Data Box */
.exif-info {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin-top: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  text-align: center;
}

.modal img {
  max-width: 100%;
  max-height: 80vh;
  transform: scale(1);
  transition: transform 0.2s ease-in-out; /* Smooth zoom transitions */
}

.modal-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.modal-controls button {
  padding: 10px 15px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-controls button:hover {
  background-color: #f0f0f0;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  img {
    max-width: 90%;
  }

  .exif-info {
    max-width: 100%;
    margin-top: 10px;
  }

  .modal img {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .exif-info {
    font-size: 14px;
  }

  img {
    max-width: 100%;
  }

  .modal img {
    max-height: 60vh;
  }
}
