@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #f6f6f6;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

h1 {
  font-size: 2rem;
  color: #2f2f2f;
  margin-bottom: 1rem;
  text-align: center;
}

#results h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.result-item h4 a {
  color: #e53935;
  text-decoration: none;
}

.result-item h4 a:hover {
  text-decoration: underline;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0072ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.resultados {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.item {
  border: 1px solid #ccc;
  padding: 10px;
  width: 250px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnail {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#results p {
  color: #777;
  font-style: italic;
  margin-top: 10px;
}

.result-card {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 20px 0;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.result-card h4 {
  margin-bottom: 10px;
  color: #e63946;
}

p {
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

input[type="text"] {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

button {
  background-color: #ff4b4b;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.resultados .item {
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid #ff4b4b;
  background: #fafafa;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.resultados .item:hover {
  transform: translateX(4px);
}

.resultados .item a {
  color: #2f2f2f;
  font-weight: bold;
  text-decoration: none;
}

.resultados .item a:hover {
  text-decoration: underline;
}
