html, body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F7E600;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}


header {
  background-color:#FFFCF2;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filters */
#filters {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

#filters label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: #444;
}

#filters select,
#filters input {
  width: 100%; 
  padding: 0.75rem; 
  font-size: 1rem; 
  border: 1px solid #ddd; 
  border-radius: 6px; 
  background-color: #fafafa;
  height: 42px;
  box-sizing: border-box; 
}

/* Card container */
#card-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  color: #555;
  flex: 1;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #222;
}

.card-content p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

button {
  background-color: #ffce00;
  border: none;
  width: 110px;
  height: 38px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #ffd700;
  transform: scale(1.05);
}

button:active {
  background-color: #e6b800;
  transform: scale(0.95);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #777;
}

/* Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; 
  background-color: rgba(0, 0, 0, 0.5); 
  justify-content: center; 
  align-items: center; 
}

.modal-content {
  background-color: #fff;
  margin: 5% auto; 
  padding: 2rem;
  border-radius: 10px;
  width: 90%;        
  max-width: 600px;  
  max-height: 90vh;  
  overflow-y: auto; 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center; 
}

#modal-content img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

#modal-content h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #222;
  text-align: center;
}

#modal-content p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  text-align: center;
}

#modal-content button {
  width: 100%;
  margin-top: 0.5rem;
  height: 36px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background-color: #222;
  color: #fff;
  font-size: 0.9rem;
}
