/* ===== Responsive fixes ===== */

/* Images and cards never wider than their column */
.width {
    max-width: 100%;
    height: auto;
}

.photo-wraper,
.photo {
    max-width: 100%;
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .item {
        margin-top: 5.5rem;
    }

    .item h1:not(#color),
    #color {
        font-size: 3rem;
        line-height: 1.2;
    }

    .width {
        margin-top: 2.5rem;
    }

    .photo-wraper {
        width: 100%;
    }

    .photo {
        width: 100%;
    }

    .carousel-inner.w-75,
    .games-controls.w-75 {
        width: 90% !important;
    }

    .form-control {
        width: 100%;
    }
}

/* Phones */
@media (max-width: 767.98px) {
    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .item {
        align-items: center;
        text-align: center;
    }

    .item p {
        text-align: center;
    }

    .item h1:not(#color),
    #color {
        font-size: 2.25rem;
    }

    .our-games h1,
    .container-team h1,
    .section2 h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .carousel-inner.w-75,
    .games-controls.w-75 {
        width: 100% !important;
        padding: 0 1rem;
    }

    .games-controls {
        justify-content: center;
    }

    /* Big gutters (g-5) push rows wider than the screen on phones */
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .row.mx-5 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .form-control,
    .form-control1,
    .form-select,
    .form-control2 {
        width: 100%;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .item h1:not(#color),
    #color {
        font-size: 1.9rem;
    }

    .sign1,
    .sign2 {
        width: 100%;
        margin: .4rem 0;
    }
}
