/* Scoped CSS to prevent Bootstrap conflicts */
.anim-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  border: 1px solid #e5e7eb;
}

.anim-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: bold;
}

.anim-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

/* Responsive fallback for the grid layout */
@media (max-width: 768px) {
  .anim-layout {
    grid-template-columns: 1fr;
  }
}

.anim-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.anim-controls label {
  font-size: 14px;
  font-weight: bold;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

.anim-controls select,
.anim-controls input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  font-size: 14px;
}

/* Slider styling */
.anim-controls input[type="range"] {
  padding: 0;
  height: 6px;
  background: #e2e8f0;
  border-radius: 5px;
  outline: none;
}

.anim-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.anim-box {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f46e5;
  color: white;
  font-size: 22px;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.anim-textarea {
  width: 100%;
  height: 240px;
  font-family: monospace;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #1e293b;
  color: #10b981;
  margin-bottom: 15px;
  resize: vertical;
}

.anim-btn {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.anim-btn:hover {
  background: #1d4ed8;
}

/* Explanation & SEO Content Styles */
.anim-explanation {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0284c7;
  font-size: 14px;
  color: #0369a1;
}

.seo-content {
  margin-top: 40px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.seo-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 10px;
}

.seo-content p {
  color: #4b5563;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
  color: #111827;
  margin-bottom: 5px;
}

/* Animation Keyframes Definition (Global) */
@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide {
  from {
    transform: translateX(-150px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scale {
  from {
    transform: scale(0.5);
  }

  to {
    transform: scale(1);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-60px);
  }

  100% {
    transform: translateY(0);
  }
}
