* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #191919;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

/* CARROSSEL */
.carousel {
    margin: 50px auto;
    width: 100%;
    max-width: 900px;
    overflow-x: hidden; /* evita passar pra fora no celular */
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding-right: 1em;
}

/* CARTÃO */
.card {
    height: 5em;
    width: 5em; /* deixa quadrado e mais estável */
    padding: 1em;
    background: linear-gradient(45deg, #fa84d7, #e9db1c);
    border-radius: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* IMAGENS */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8em;
}

/* BOTÃO */
a {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(to bottom, #fa84d7, #e9db1c);
    color: #ffffff;
    border-radius: 25px;
    padding: 12px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

a:hover {
    background: linear-gradient(to bottom, #e9db1c, #fa84d7);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* ANIMAÇÕES */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* RESPONSIVO */
@media (max-width: 600px) {

    body {
        gap: 25px;
        padding: 10px 0;
    }

    .carousel {
        margin: 20px auto;
        max-width: 100%;
    }

    .group {
        gap: 0.8em;
        padding-right: 0.5em;
    }

    .card {
        height: 5em;
        width: 5em;
        padding: 0.8em;
        border-radius: 0.8em;
    }

    .card img {
        border-radius: 0.7em;
    }

    a {
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 18px;
    }

    .carousel-track {
        animation-duration: 22s;
    }
}
