#card-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}
body{background-color: #E3E6E6;}
#card-container2{
    animation: changeBackground 50s infinite;
    background-size: cover;
    background-repeat: no-repeat;
    height: 400px;
}
@keyframes changeBackground {
    0% {
      background-image: url('resource/1.jpg');
    }
    33% {
      background-image: url('resource/2.jpg');
    }
    66% {
      background-image: url('resource/3.jpg');
    }
    100% {
      background-image: url('resource/1.jpg'); /* Loop back to the first image */
    }
  }
#nav-container{
  position: sticky;
  top: 0; /* Sticks to the top when scrolling */
}
.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 5px;
  width: 50%;
  max-width: 400px;
}

.search-input {
  flex: 1;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
}

.search-input:focus {
  outline: none;
}

.search-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  margin-left: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #0056b3;
}

@media (max-width: 500px) {
  .search-button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .search-form{width: 65%;}
  .search-input {
    font-size: 14px;
    width: 50%;
  }
}
.bodyofsearch{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background-color: transparent;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}