@keyframes backgroundAnimation {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: repeating-linear-gradient(
    45deg,
    #f8f8f8 0px,
    #f8f8f8 10px,
    #f5f5f5 10px,
    #f5f5f5 20px
  );
  background-size: 28.28px 28.28px;
  animation: backgroundAnimation 50s linear infinite;
}

@media (max-width: 768px) {
  body {
    animation: backgroundAnimation 200s linear infinite;
  }
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-container {
  width: 300px;
  height: 20px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  border: 2px solid #000;
}

.progress-bar {
  height: 100%;
  background-color: #000;
  animation: progress 15s linear infinite;
}


.cards-container > div:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.input-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cards-container {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  display: flex;
  justify-self: center;
}

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

.card-content {
  padding: 16px;
}

@media (max-width: 768px) {
  .input-container {
    padding: 20px;
    box-sizing: border-box;
    height: 100dvh;
  }

  .cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 16px;
  }

  .cards-container > div {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 150px;
    display: flex;
  }
}