/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

body {
  background-color: rgb(15, 23, 42);
}

/* Infinite scroll animation for frameworks carousel */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.frameworks-carousel {
  display: flex;
  animation: scroll-left 40s linear infinite;
}

.frameworks-carousel:hover {
  animation-play-state: paused;
}

/* Faster animation for mobile devices */
@media (max-width: 768px) {
  .frameworks-carousel {
    animation: scroll-left 20s linear infinite;
  }
}

/* Ensure tooltips appear on hover */
.framework-item {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.framework-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(51, 65, 85);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
  pointer-events: none;
  white-space: nowrap;
  z-index: 50;
  margin-bottom: 0.5rem;
}

.framework-item:hover .framework-tooltip {
  opacity: 1;
  visibility: visible;
}