* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    list-style: none;
}

a {
    color: #ffffff;
    text-decoration: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    height: 70px;
}

.header img {
    width: 150px;
    margin: 5px 20px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    border-radius: 0.5rem;

}

.menu a {
    display: block;
    padding: 1rem;
    color: #ff0077;
}

.menu a:hover {
    color: #0067b8;
}

.btn-menu {
    display: none;
}

.carousel {
    margin-bottom: 50px;
}

.carousel-content {
    position: absolute;
    top: 50px;
    width: 30%;
    margin-left: 5%;
}

.carousel-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.carousel-content button {
    background-color: #0067b8;
    color: #fff;
    padding: 10px 12px;
    font-weight: 500;
    border: none;
}

.carousel-content a {
    font-size: 1.2rem;
    margin-left: 10px;
    font-weight: 600;
}

.carousel-control-prev,
.carousel-control-next {
    top: 300px;
}

.card-container {
    margin-bottom: 20px;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1900px;


}

.card {
    width: 100%;
    margin-bottom: 8px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

    gap: 20px;
    padding: 5px;


}

.btn-start {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    position: sticky;
    bottom: 20px;


    a {
        cursor: pointer;
        padding: 0.6rem 0.75rem;
        background: rgba(0, 0, 0, .15);
        color: #000;
        text-decoration: none;
    }
}

.footer {
    display: flex;
    background-color: #f2f2f2;


    ul {
        margin: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    ul .bold {
        font-size: 1.5rem;
        font-weight: 500;
    }

    li {
        color: #616161;
    }
}

/* Página Simpsons*/

section {
    width: 100vw;

}

.box {
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;


}



/* Estilo para Celular*/
@media (max-width: 768px) {

    .menu {
        display: block;
        position: absolute;
        top: 4.6875rem;
        left: 0;
        background: #ffff;
        text-align: center;
        width: 100%;
        height: 0;
        z-index: 1;
        overflow-y: hidden;
        transition: 0.5s;
        visibility: hidden;

    }

    .menu a {
        padding: 1rem 0;
        margin-inline: 1rem;
        border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.16);
        border-radius: none;
    }

    .btn-menu {
        background: none;
        border: none;
        font: inherit;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #ff0077;
        padding-block: 1rem;
        cursor: pointer;

    }

    .linha {
        border-top: 0.125rem solid;
        width: 1.25rem;
    }

    .linha::before,
    .linha::after {
        content: " ";
        display: block;
        width: 1.25rem;
        height: 0.125rem;
        background-color: #ff0077;
        margin-top: 0.3125rem;
        position: relative;
        transition: 0.3s;
    }

    .nav.active .menu {
        height: calc(100vh - 4.6875rem);
        visibility: visible;
        overflow-y: auto;
    }

    .nav.active .linha {
        border-top-color: transparent;
    }

    .nav.active.linha::before {
        /* Rotacionar 135º*/
        transform: rotate(135deg);

    }

    .nav.active .linha::after {
        transform: rotate(-135deg);
        top: -0.4375rem;
    }

    header img {
        width: 100px;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
    }



    .container-cards {
        display: flex;
        flex-direction: column;
        align-items: center;



        .card-container {
            grid-template-columns: 1fr;
            /* Estilo para visualização em dispositivos móveis */


        }
    }

    .footer ul li {
        display: flex;
        flex-direction: column;


    }

    .bold {
        display: flex;
        flex-direction: column;
    }

    /* Página simpsons*/
    .box {
        display: flex;
        flex-direction: column;
        width: auto;
        justify-content: center;
        align-items: center;


    }

}