html {
  min-width: 300px;
  overflow-x: hidden;
}
body {
  /*background-color: #1b334b;*/
  background-image: linear-gradient(
      rgba(39, 34, 34, 0.5),
      rgba(39, 34, 34, 0.5)
    ),
    url("hatter.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content {
  width: 90%;
  margin: 10px;
  max-width: 100vw;
  overflow: hidden;
}

.navbar {
  background-color: #005688;
  padding: 0.5rem;
  border-radius: 5px;
  list-style-type: none;
  margin: 3px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-item {
  font-size: 1rem;
  font-weight: bold;
  color: #f4a900;
  text-align: center;
  margin: 5px;
  padding: 1px;
}

.nav-item a {
  text-decoration: none;
  color: #f4a900;
  padding: 4px 12px;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.nav-item a:hover {
  color: #f4a900;
  background-color: rgba(255, 255, 255, 0.2);
}

h1 {
  margin: auto;
  padding: 5px;
  font-size: clamp(32px, 7vw, 64px);
  text-align: center;
}

h2 {
  margin-left: 10px;
  padding: 5px;
  font-size: clamp(18px, 4vw, 36px);
  width: fit-content;
}

.title,
.filtertitle {
  background-color: #063971;
  border-radius: 5px;
  padding: 2px;
  margin: 3px;
}

.filterField {
  display: flex;
  gap: 1rem;
}

form {
  background-color: #5586b8;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: fit-content;
}

form label {
  display: block;
  font-size: 1rem;
  color: #f0ece1;
}

form input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 5px;
  background-color: #164e74;
  color: #ffffff;
}

form button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #f4a900;
  color: #0a0a0a;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #e0a800;
}

div#news {
  margin: 3px;
}

.nonews {
  width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #cc0605;
  border-radius: 5px;
  font-size: clamp(32px, 6vw, 50px);
  background-color: #d7d5ca;
}

.card {
  border: none;
  border-radius: 10px;
  background-color: #d7d5ca;
  box-shadow: 0px 4px 6px 4px #4ec8cc6e;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  justify-content: center;
}

.card-title a {
  text-decoration: none;
  color: #005688;
}

.card-title a:hover {
  color: #354d73;
  text-decoration: underline;
}

.col .card .card-body p a {
  color: #063971;
  cursor: pointer;
  text-decoration: none;
}

.col .card .card-body p a:hover {
  color: #354d73;
  cursor: pointer;
  text-decoration: underline;
}

.card-footer {
  background-color: #005688;
  border-top: none;
  text-align: right;
  font-size: 0.85rem;
}

.card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.card-footer small {
  color: #f0ece1;
}

footer {
  background-color: #0e3b75;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 5px 0;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0%;
  position: relative;
}

@media (max-width: 768px) {
  .content {
    padding: 1rem;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
  }

  .nav-item {
    text-align: center;
  }

  .nav-item a {
    width: 100%;
    padding: 2px;
    font-size: 1.1rem;
  }

  form {
    padding: 1rem;
    width: 100%;
  }
  .filterField {
    display: table-row;
  }
}
