.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  background-color: #eee;
  color: #303030;
  position: relative;
  flex-wrap: wrap;
}

.site-name {
  cursor: pointer;
  font-size: 3vw;
}

.site-name:hover {
  text-decoration: underline;
  color: black;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.icon {
  font-size: 1.5em;
  cursor: pointer;
}

.login-btn {
    font-size: 1vw;
    color: #bbb;
}

.dropdown-menu {
  color: black;
  position: absolute;
  right: 0;
  top: 30px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dropdown-menu div {
  padding: 10px;
  cursor: pointer;
}

.dropdown-menu div:hover {
  background: #f0f0f0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* Slightly darken the background */
  background-color: rgba(0, 0, 0, 0.4);

  /* Center modal using Flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  /* Add blur effect to the background */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari support */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
}

#newsModal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}
#newsModal .news-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 380px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
}
#newsModal .modal-buttons {
  margin-top: 1em;
  display: flex;
  justify-content: space-around;
}
#newsModal button {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.close {
  color: #888;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

#login-form,
#login-failed-form {
  display: flex;
  flex-direction: column;
}

#login-form label {
  margin-top: 10px;
}

#login-form input[type="text"],
#login-form input[type="password"] {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#login-form button,
#login-failed-form button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

#login-form button:hover,
#login-failed-form button:hover {
  background-color: #45a049;
}

#hint {
    border: 1px solid gray;
    border-radius: 6px;
    text-align: left;
    padding: 0.8em;
    width: 100%;
    overflow: auto;
    margin-top: 10px;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.remember-me label {
  margin-left: 5px;
}

.forgot-password {
  text-align: right;
  margin-top: 10px;
}

.forgot-password a {
  font-size: 0.9em;
  color: #007BFF;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Responsive modal layout for tablets and phones */
@media (max-width: 768px) {
  .modal-content {
    width: 80%;
    margin: 30% auto; /* move a bit lower for smaller screens */
    padding: 20px;
  }

  #login-form input[type="text"],
  #login-form input[type="password"] {
    font-size: 16px; /* better touch targets */
  }

  #login-form button {
    font-size: 16px;
  }

  .close {
    font-size: 28px;
  }
}

/* Very small screens (phones under ~480px) */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    margin: 40% auto;
    padding: 16px;
  }

  h2 {
    font-size: 1.3em;
    text-align: center;
  }

  #login-form label {
    font-size: 0.95em;
  }

  #login-form input[type="text"],
  #login-form input[type="password"] {
    padding: 10px;
  }

  .remember-me {
    font-size: 0.9em;
  }

  .forgot-password {
    font-size: 0.85em;
  }
}

/* Make sure modal scrolls on small screens if content doesn't fit */
@media (max-height: 600px) {
  .modal {
    overflow-y: auto;
   }

  .modal-content {
    margin: 10% auto;
  }
}

/* Overlay background */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#error-message {
    font-size: 0.85em;
}

/* Hidden state */
.hidden {
  display: none;
}

.menu-options {
  display: flex;
  justify-content: flex-end;
  color: #303030;
  flex: 1;
}

.menu-btn {
  font-size: 2vw;
  margin-left: 1.5vw;
  margin-right: 1.5vw;
  cursor: pointer;
}

.menu-btn:hover {
  color: black;
  text-decoration: underline;
}

.already-there {
  cursor: default;
  color: #666;
}

.already-there:hover {
  color: #666;
  text-decoration: none;
}

#banner {
  position: relative;
  width: 100%;
  height: 55vh;
  background-image: url('../images/banner.jpg');
  background-size: cover;          /* Stretch to fill the div while preserving aspect ratio */
  background-position: center;     /* Center the image */
  background-repeat: no-repeat;    /* Prevent tiling */
  background-attachment: scroll;   /* or 'fixed' if you want a parallax effect */
}

.banner-title {
position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: clamp(2.5rem, 6vw, 5rem); /* responsive size */
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;

  /* White text with gray outline via multiple text shadows */
  text-shadow:
    -1px -1px 2px #fff,
     1px -1px 2px #fff,
    -1px  1px 2px #fff,
     1px  1px 2px #fff;
}

.gallery-title {
  color: #333;
  font-size: 6vw;
  padding: 2vw;
  font-weight: bold;
}