
 * {
  margin: 0;
  padding: 0;
 }

 /*font */

  @font-face {
    font-family:PixelifySans-VariableFont_wght ;
    src: url(../fonts/PixelifySans-VariableFont_wght.ttf);
  }
 

 body {
background: #000;
 }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes slide {
  45%,
  100% {
    transform: scale(0.5);
    border-radius: 20px;
    filter: blur(6px) brightness(0.8);
  }

  50% {
    transform: scale(1);
    border-radius: 4px;
    filter: none;
  }
}

@layer base, layout;

@layer layout {
  .carousel {
    width: max(480px, 50vw);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;

    .carousel-slide {
      flex-shrink: 0;
      width: calc(100% / 3);
      aspect-ratio: 0.8;
      scroll-snap-align: center;
      animation: slide;
      animation-timeline: view(inline);
      img {
        width: 100%;
        border-radius: inherit;
      }
    }
  }
}

@layer base {
  body {
    height: 100vh;
    margin: 0;
    display: grid;
    place-content: center;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    text-align: center;
  }

  h1 {
    color: rgb(255, 255, 255);

    width: 500px;
    font-family: PixelifySans-VariableFont_wght;
  }

  footer {
    position: fixed;
    inset: auto 0 0 0;
  }
}
.carousel {
  overflow-x: auto ;
  scrollbar-width: thin ;
scrollbar-color: rgb(174, 255, 229) rgb(255, 255, 255);
}