main{
    max-width: 600px;
    margin: 8px  auto;
    font-size: 24px;
}

html{
    margin: 0px 16px;
}

h2{
    text-align: left;
}

a{
    text-decoration: underline;
}

.carousel {
    margin: 0 auto;
    max-width: 700px;
    overflow: hidden;
    display: flex;
    flex: 0 0 100%;

    &:hover .group {
      animation-play-state: paused;
    }
}

.card {
    width: 100%;
    color: white;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 10px;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
}


.group {
    display: flex;
    gap: 10px;
    padding-right: 10px;

    will-change: transform; 
    animation: scrolling 35s linear infinite;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}



.subtitle{
    color: gray;
    margin: 0px 2px;
    font-size: 22px;
}


/* MOBILE RESPONSIVE DESIGN */
@media screen and (max-width:769px){
    main{
        font-size:21px;
    }
    .subtitle{
        font-size: 19px;
    }
}