body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.login-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}
.login-btn:hover {
  background-color: #45a049;
}

.register-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 5px;
}
.register-btn:hover {
  background-color: #45a049;
}

main {
  padding-top: 2rem;
  text-align: center;
}
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  bottom: 0;
  width: 100%;
}


/* Ensure the dropdown content is hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0px;
}

/* When the dropdown has the class 'show', it will be displayed */
.show {
  display: block;
}

/* Optional: If you want to have the dropdown show above other content */
.dropdown-content {
  z-index: 1000;
}

/* Hover state for the dropdown links */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}


.profile-btn {
  height: 50px;
  width: 50px;
  border-radius: 100%;
  padding: 0px;
  margin-right: 5%;

}

/* Settings page styles */
.settings-form {
  max-width: 30%;
  margin: 0 auto;
  padding: 20px;
  background-color: #787878;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.settings-form .form-group {
  margin-bottom: 20px;
}

.settings-form label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #333;
}

.settings-form input[type="email"],
.settings-form input[type="password"] {
  width: 90%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.settings-form input[type="email"]:focus,
.settings-form input[type="password"]:focus {
  outline: none;
  border-color: #3498DB;
}

.settings-form .save-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

.settings-form .save-btn:hover {
  background-color: #45a049;
}

/* For responsiveness */
@media (max-width: 768px) {
  .settings-form {
    padding: 15px;
  }

  .settings-form input[type="email"],
  .settings-form input[type="password"] {
    padding: 8px;
  }

  .settings-form .save-btn {
    font-size: 1rem;
  }
}

/* Dialog Box Styling */
.dialog {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Transparent background */
  padding-top: 100px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dialog-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  margin: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dialog-content h3 {
  margin-bottom: 15px;
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
}

.dialog-actions button {
  background-color: #3498DB;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.dialog-actions button:hover {
  background-color: #2980B9;
}

/* Additional button styles for cancel and confirm */
.dialog-actions button:nth-child(1) {
  background-color: #f44336;
}

.dialog-actions button:nth-child(1):hover {
  background-color: #d32f2f;
}

.dialog-actions button:nth-child(2) {
  background-color: #4CAF50;
}

.dialog-actions button:nth-child(2):hover {
  background-color: #45a049;
}

/* Dialog styles */
.dialog-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: darkgray;
  justify-content: center;
  align-items: center;
}

.dialog {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.thumbnail {
  width: 80px;
  height: 80px;
  margin: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
}

.thumbnail:hover {
  border: 2px solid blue;
}

.selected {
  border: 2px solid green;
}

.close-btn {
  margin-top: 10px;
  padding: 5px 15px;
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.form-group {
  margin-bottom: 15px;
  
}

.form-group label {
  display: block;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.save-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #45a049;
}

.image-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-height: 500px; /* Limit the height */
  min-height: 300px;
  overflow-y: auto; /* Enable vertical scrolling */
  border: 2px solid #ddd; /* Optional border for container */
  padding: 10px;
  background-color: #2d2d2d; /* Optional background */
}

/* Thumbnail Styles */
.thumbnail {
  width: 60px; /* Adjusted size for more thumbnails per row */
  height: 60px; /* Maintain aspect ratio */
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border 0.3s;
}

/* Add a little spacing between thumbnails */
.image-container {
  gap: 8px; /* Reduced gap to fit more thumbnails */
}

/* Flexbox Adjustments */
.image-container {
  justify-content: flex-start; /* Align thumbnails to the left */
}

/* Custom Scrollbar */
.image-container::-webkit-scrollbar {
  width: 8px; /* Scrollbar width */
}

.image-container::-webkit-scrollbar-thumb {
  background-color: #888; /* Scrollbar thumb color */
  border-radius: 10px; /* Rounded corners */
  border: 2px solid #f7f7f7; /* Optional border around thumb */
}

.image-container::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker color on hover */
}

.image-container::-webkit-scrollbar-track {
  background-color: #f0f0f0; /* Track color */
  border-radius: 10px;
}

.image-container::-webkit-scrollbar-track:hover {
  background-color: #e0e0e0; /* Track hover color */
}

/* Custom scrollbar for Firefox */
.image-container {
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0; /* thumb and track colors */
}

.image-container:hover {
  scrollbar-color: #555 #e0e0e0; /* thumb and track hover colors */
}

#confirm_password_label{
  margin: auto;
  display: none;
}

#confirm_password{
  margin: auto;
  margin-top: 15px;
  display: none;
}

