body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333; 
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

input[type="text"],
select,
button {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  min-width: 150px;
  max-width: 300px;
  width: 100%;
}

#controls p {
  width: 100%;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

#root {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  color: #333;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.card h2,
.card h3 {
  margin: 10px 0 5px 0;
  text-align: center;
}

.card p,
.card div {
  margin: 5px 0;
  line-height: 1.4;
  text-align: center;
}

a.view-button,
a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin: 10px 0;
  transition: background-color 0.3s;
}

a.view-button:hover,
a:hover {
  background-color: #0056b3;
}

button {
  cursor: pointer;
  background-color: #607184;
  color: #fff;
  border: none;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #495865;
}