/*Tablets especifications*/
@media only screen and (max-width: 992px) {
    .navbar-container {
        flex-direction: column;
        align-items: center;
    }

    .list-group {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: black;
        width: 100%;
        text-align: center;
        display: none;
        z-index: 100;
    }

    .navbar-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        top: 40px;
    }

    #menu-toggle:checked ~ .list-group {
        display: flex;
    }

    /* MAIN */
    .main-container {
        flex-direction: column;
    }

    .box1 {
        max-width: 100%;
        padding: 50px;
    }

    .box2 {
        margin-left: 0;
        margin-top: 20px;
    }

    .box2 img {
        height: auto;
    }

    /* ABOUT */
    .galery__about {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 0 auto;
    }

    .about__buttongoa {
        width: 50%;
    }

    /* DRIVERS */
    .main__drivers {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .main__driverstitle {
        font-size: 2rem;
    }

    .Jenson_card,
    .Rubens_card {
        max-width: 100%;
        padding: 15px;
    }

    .Jenson_card img,
    .Rubens_card img {
        width: 100%;
        height: auto;
    }

    .Jenson_card h3,
    .Rubens_card h3 {
        font-size: 1.4rem;
    }

    .Jenson_card p,
    .Rubens_card p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    /* CARDS */
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        margin-bottom: 20px;
        border-bottom: none;
        border: 1px solid var(--primary-color);
        border-radius: 10px;
    }

    /* FOOTER */
    .footer-index {
        flex-direction: column;
        align-items: center;
    }

    .footer1 {
        text-align: center;
    }

    .list-links,
    .list-icons {
        justify-content: center;
        gap: 5px;
    }

    .footer2 img {
        width: 100%;
        height: auto;
    }

    /* BACK TO TOP */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Mobile specifications */
@media only screen and (max-width: 576px) {
    body {
        font-size: 1.5rem;
    }

    .logo {
        height: 5rem;
        margin: 10px;
    }

    .menu-toggle {
        right: 20px;
    }

    .list-item {
        margin: 20px;
        font-size: 22px;
    }

    .title-box1 {
        font-size: 36px;
    }

    .box1 {
        padding: 20px;
    }

    .box1 p {
        font-size: 18px;
    }

    .box-inside {
        flex-direction: column;
        gap: 15px;
    }

    .box-inside button {
        width: 100%;
    }

    .separador {
        margin: 20px;
    }

    .section-container {
        margin: 20px;
        padding: 20px;
    }

    .section-text {
        font-size: 16px;
    }

    .title-h2 {
        font-size: 32px;
    }

    .subtitle-cards {
        font-size: 1.2rem;
    }

    .card img {
        width: 150px;
        height: 150px;
    }

    .card p {
        font-size: 16px;
    }

    /* ABOUT */
    .main__about {
        padding: 1rem;
    }

    .main__about h1 {
        font-size: 2rem;
    }

    .main__about h2 {
        font-size: 1.5rem;
    }

    .main__about p {
        font-size: 1rem;
    }

    .galery__about {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .galery__about img {
        width: 100%;
    }

    .about__buttongoa {
        width: 80%;
        font-size: 14px;
    }

    /* DRIVERS */
    .main__driverstitle {
        font-size: 1.5rem;
    }

    .Jenson_card h3,
    .Rubens_card h3 {
        font-size: 1.2rem;
    }

    .Jenson_card p,
    .Rubens_card p {
        font-size: 1rem;
    }

    /* HISTORY */
    .main__history {
        padding: 15px;
    }

    .main__history h1 {
        font-size: 1.8rem;
    }

    .main__history h2 {
        font-size: 1.4rem;
    }

    .main__history p {
        font-size: 1rem;
    }

    .main__history img {
        max-width: 100%;
    }

    /* BGP001 */
    .main__car h1 {
        font-size: 2rem;
    }

    .main__car h2 {
        font-size: 1.5rem;
    }

    .main__car p {
        font-size: 1.2rem;
    }

    .list__bgp001 h2 {
        font-size: 1.5rem;
    }

    .list__bgp001 li {
        font-size: 1rem;
    }

    /* FOOTER */
    .footer1 {
        font-size: 16px;
    }

    .title-footer {
        font-size: 1.2rem;
    }

    .list-icons img {
        width: 30px;
        height: 30px;
    }

    /* BACK TO TOP */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
