body {
  font-family: Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

nav ul li a {
  text-decoration: none;
  color: #ffff;
  font-size: 1em;
}

.card img {
  width: 70%;
  height: auto;
  margin: 0;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.card .overlay-text h2 {
  font-size: 1.5em;
}

.card .overlay-text p {
  font-size: 0.95em;
}

.container {
  margin-top: 200px;
}

form {
  margin-left: 800px;
}

@media (min-width: 640px) {
  .container {
    margin-top: 500px;
  }
  .card {
    width: 70%;
    margin: 10px;
  }
  .card img {
    width: 100%;
    height: auto;
  }
  .card .overlay-text h2 {
    font-size: .95em; /* Adjusted size for smaller screens */
  }
  .card .overlay-text p {
    font-size: 0.85em; /* Adjusted size for smaller screens */
  }
  nav h1 {
  width: 350px;
  color: white;
}

nav div {
  width: 25px;
}

nav ul li {
  list-style: none;
  display: inline-block;
  margin-left: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #ffff;
  font-size: 17px;
}
}

@media (min-width: 641px) and (max-width: 768px) {
  /* Add styles for this range if needed */
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    margin-top: 500px;
  }
  .card {
    width: 70%;
    margin: 10px;
  }
  .card img {
    width: 100%;
    height: auto;
  }
  .card .overlay-text h2 {
    font-size: .95em; /* Adjusted size for smaller screens */
  }
  .card .overlay-text p {
    font-size: 0.85em; /* Adjusted size for smaller screens */
  }
  nav h1 {
  width: 350px;
  color: white;
}

nav div {
  width: 25px;
}

nav ul li {
  list-style: none;
  display: inline-block;
  margin-left: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #ffff;
  font-size: 17px;
}
  #backButton {
    font-size: 12px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
    margin-top: 500px;
  }
  .card {
    width: 70%;
    margin: 10px;
  }
  .card img {
    width: 100%;
    height: auto;
  }
  .card .overlay-text h2 {
    font-size: .95em; /* Adjusted size for smaller screens */
  }
  .card .overlay-text p {
    font-size: 0.85em; /* Adjusted size for smaller screens */
  }
  nav h1 {
  width: 350px;
  color: white;
}

nav div {
  width: 25px;
}

nav ul li {
  list-style: none;
  display: inline-block;
  margin-left: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #ffff;
  font-size: 17px;
}

  #backButton {
    font-size: 12px;
    margin-left: 30px;
  }
}
