/* Custom styles for WebP animations */

/* Update the layout to make the animation blocks stacked vertically */
.animation-blocks {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
  align-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.animation-block {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Make the animation content borderless and larger */
.animation-content {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  width: 100%;
}

.animation-content:hover {
  box-shadow: none;
  transform: none;
}

/* Style the demo images and videos */
.demo-image,
.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.demo-image:hover,
.demo-video:hover {
  transform: translateY(-5px);
}

/* Specific styling for animations demo section */
.animations-demo {
  padding: 80px 0;
}

.animations-demo .container {
  max-width: 1200px;
  padding: 0 40px;
}

.animations-demo .section-header {
  margin-bottom: 60px;
}

/* Make title elements appropriately sized for smaller videos */
.animation-title h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.animation-title p {
  font-size: 1rem;
  max-width: 80%;
}

/* Add extra margin to the second animation block (Area Selection) title */
.animation-block:nth-child(2) .animation-title {
  margin-top: 12px;
}

/* Dark mode adjustments */
.dark-mode .demo-image,
.dark-mode .demo-video {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .animation-blocks {
    gap: 50px;
  }
  
  .animations-demo .container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .animation-title p {
    max-width: 90%;
    font-size: 0.95rem;
  }
  
  .animation-title h3 {
    font-size: 1.4rem;
  }
  
  .animation-blocks {
    gap: 40px;
  }
}
