/* ===================== 350px ===================== */
@media (max-width: 1300px) {

    nav {
        position: relative;
    }

    nav img {
        width: 60%;
    }

    #menu-toggle {
        display: none;
    }

    header nav .container .burger {
        border: 2px solid red;
        background-color: transparent;
        border-radius: 5px;
        width: 50px;
        height: 50px;
        padding: 5px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1px;
        float: right;
        cursor: pointer;
    }

    header nav .container .burger span {
        display: block;
        width: 70%;
        height: 3px;
        margin: 1px auto;
        background-color: red;
    }
    header:has(#color-toggle:checked) nav .container .burger {
        border-color: blue;
    }

    header:has(#color-toggle:checked) nav .container .burger span {
        background-color: blue;
    }

    header nav .container ul {
        position: absolute;
        bottom: -10px;
        left: 50%;
        background-color: black;
        transform: translate(-50%, 100%);
        width: 80%;
        height: 0;
        flex-direction: column;
        z-index: 3;
        border-radius: 10px;
        text-align: center;
        padding: 0;
        transition: 1s;
        overflow: hidden;
    }

    #menu-toggle:checked + .burger + ul {
        max-height: 300px;
        padding: 15px;
    }

    nav .content ul {
        gap: 10px;
        position: relative;
        z-index: 100;
    }

    nav {
        position: absolute;
    }

    #home {
        background-position: center;
    }

    #home .content {
        z-index: 1;
    }

    #home h1 {
        font-size: 2.2rem;
    }

    #home h2 {
        font-size: 1.5rem;
        margin: 20px 0px 30px;
    }

    #home button {
        padding: 10px 10px;
        font-size: 1.1rem;
    }

    #services .container {
        width: 90%;
    }

    #services .title h4 {
        font-size: 1.1rem;
        font-weight: 800;
    }

    #services .title h2 {
        font-size: 2.2rem;
        font-weight: 700;
    }

    #services p.info {
        width: 100%;
    }

    #services .boxes .box {
        width: 100%;
    }

    #services .boxes .box .item {
        margin-bottom: 40px;
        padding: 5px 5px;
        min-height: 220px;
    }

    #services .boxes .box .item img {
        width: 30%;
    }

    #classes .title h4 {
        font-size: 1.2rem;
    }

    #classes .title h2 {
        font-size: 2.9rem;
    }

    #classes p.info {
        width: 100%;
    }
    #classes .content .box {
        width: 100%;
    }

    #classes .content .box .item {
        margin: 0;
        width: 100%;
        margin-bottom: 50px;
        padding: 0;
    }
    #classes .content .box .item .informations{
        width: 95%;
    }
    #trainers .title h2 {
        font-size: 2.3rem;
    }

    #trainers p.info {
        width: 100%;
    }

    #trainers .content .box {
        width: 100%;
        margin: auto;
    }

    #trainers .content .box .item {
        margin: 0;
        margin: auto;
        margin-bottom: 20px;
    }

    #gallery .content {
        grid-template-columns: 1fr;
        grid-template-rows: 300px;
        grid-template-areas:
            "one"
            "two"
            "three"
            "four"
            "five"
            "six"
            "seven";
        margin: auto;
        max-width: 350px;
    }

    #gallery .title h4 {
        font-size: 1.1rem;
        font-weight: 800;
    }

    #gallery .title h2 {
        font-size: 2.2rem;
        font-weight: 700;
    }

    #gallery p.info {
        width: 100%;
    }

    #feedback .container {
        width: 95%;
    }

    #feedback .container .row1 {
        font-size: 1.7rem;
        width: 90%;
    }

    #feedback .container .row1 p.k {
        width: 100%;
    }

    #feedback .container .row2 {
        width: 100%;
    }

    #feedback .container .row3 .box {
        width: 100%;
        margin: auto;
    }

    #feedback .container .row3 .box .item {
        margin-right: 0px;
        margin-bottom: 30px;
    }

    #contact .container {
        width: 90%;
    }

    #contact .title h4 {
        font-size: 1.2rem;
    }

    #contact .title h2 {
        font-size: 2.7rem;
    }

    #contact p.info {
        width: 100%;
    }

    #contact .content .part {
        width: 100%;
        margin: auto;
        max-width: 350px;
    }

    #contact .content .part2 {
        order: 1;
    }

    #contact .content .part1 {
        order: 2;
    }

    #contact .content .part .item {
        margin: auto;
        margin-bottom: 15px;
        min-height: 550px;
    }

    #contact .content .part2 .item {
        min-height: 400px;
    }
}


/* ===================== 450px ===================== */

@media (min-width: 371px) and (max-width: 1300px) {

    nav img {
        width: 50%;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home h2 {
        font-size: 1.8rem;
    }

    #services .boxes .box {
        max-width: 280px;
    }

    #services .title h4 {
        font-size: 1.3em;
        font-weight: 800;
    }

    #services .title h2 {
        font-size: 2.6rem;
        font-weight: 700;
    }

    #services p.info {
        width: 100%;
    }

    #services .boxes .box {
        width: 100%;
    }

    #services .boxes .box .item {
        margin-right: 20px;
        padding: 5px 5px;
        min-height: 220px;
    }

    #trainers .title h2 {
        font-size: 2.5rem;
    }

    #trainers p.info {
        width: 80%;
    }

    #services .boxes .box .item img {
        width: 40%;
    }

    #trainers .content .box {
        max-width: 300px;
        margin: auto;
    }

    #gallery .title h2 {
        font-size: 2.5rem;
    }

    #gallery p.info {
        width: 80%;
    }

    #feedback .container {
        width: 95%;
    }

    #feedback .container .row1 {
        font-size: 2.2rem;
        width: 95%;
    }

    #feedback .container .row1 p.k {
        width: 100%;
    }

    #feedback .container .row2 {
        width: 95%;
    }

    #feedback .container .row3 .box {
        width: 100%;
        margin: auto;
        max-width: 350px;
    }

    #contact .content .part .item {
        min-height: initial;
    }

    #contact .content .part2 .item {
        min-height: initial;
    }
}


/* ===================== 650px ===================== */

@media (min-width: 577px) and (max-width: 1300px) {

    nav img {
        width: 35%;
    }

    #home h1 {
        font-size: 3rem;
    }

    #home h2 {
        font-size: 2rem;
        margin: 20px 0px 30px;
    }

    #home button {
        padding: 10px 15px;
        font-size: 1.2rem;
    }

    #services p.info {
        width: 70%;
    }

    #classes .title h4 {
        font-size: 1.3rem;
    }

    #classes .title h2 {
        font-size: 3.5rem;
    }

    #classes p.info {
        width: 80%;
    }

    #classes .content .box {
        width: 100%;
    }

    #classes .content .box .item {
        margin-bottom: 50px;
    }

    #trainers .title h2 {
        font-size: 3rem;
    }

    #gallery .title h4 {
        font-size: 1.3rem;
    }

    #gallery .title h2 {
        font-size: 3.5rem;
    }

    #gallery p.info {
        width: 80%;
    }

    #feedback .container .row2 {
        width: 80%;
    }

    #contact .container {
        width: 85%;
    }

    #contact .title h4 {
        font-size: 1.4rem;
    }

    #contact .title h2 {
        font-size: 3rem;
    }

    #contact p.info {
        width: 75%;
    }

    #contact .content .part {
        width: 100%;
        margin: auto;
        max-width: 450px;
    }
}


/* ===================== 850px ===================== */

@media (min-width: 769px) and (max-width: 1300px) {

    nav img {
        width: 30%;
    }

    #home h1 {
        font-size: 3.5rem;
    }

    #home h2 {
        font-size: 2rem;
        margin: 20px 0px 30px;
    }

    #home button {
        font-size: 1.3rem;
    }

    #services .title h2 {
        font-size: 3rem;
        font-weight: 700;
    }

    #services p.info {
        width: 50%;
    }

    #services .boxes .box {
        width: 33.33%;
    }

    #services .boxes .box .item {
        min-height: 230px;
        padding: 10px 15px;
    }

    #classes .title h4 {
        font-size: 1.3rem;
    }

    #classes .title h2 {
        font-size: 3.5rem;
    }

    #classes p.info {
        width: 80%;
    }

    #classes .content .box {
        width: 50%;
    }
    #classes .content .box .item{
        padding: 20px;
    }
    #classes .content .box .item .informations{
        width: 80%;
    }
    #classes p.info {
        width: 60%;
    }

    #classes .content .box .item {
        margin-bottom: 50px;
    }

    #classes .content .box .item .informations h3 {
        font-size: .9rem;
    }

    #classes .content .box .item .informations p {
        font-size: .5rem;
    }

    #trainers .content .box .item {
        margin-right: 15px;
    }

    #gallery .content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 300px 300px 300px;
        grid-template-areas:
            "one two three"
            "one four five"
            "six four seven";
        overflow: hidden;
        border-radius: 10px;
        max-width: initial;
    }
}


/* ===================== 1050px ===================== */

@media (min-width: 992px) and (max-width: 1300px) {

    nav img {
        width: 25%;
    }

    header nav .container ul {
        width: 60%;
    }

    #services .boxes .box .item {
        margin: 0px 5px;
        padding: 10px 15px;
        min-height: 220px;
        transition-duration: .5s;
        margin-bottom: 20px;
        margin-right: 20px;
    }

    #classes p.info {
        width: 50%;
    }

    #classes .content .box .item .informations h3 {
        font-size: 1rem;
    }

    #classes .content .box .item .informations p {
        font-size: .6rem;
    }

    #feedback .container .row3 .box {
        width: 33.33%;
    }

    #feedback .container .row3 .box .item {
        margin-right: 15px;
    }

    #feedback .container .row1 {
        font-size: 3rem;
    }

    #contact .title h4 {
        font-size: 1.6rem;
    }

    #contact .title h2 {
        font-size: 3.3rem;
    }

    #contact p.info {
        width: 75%;
    }

    #contact .content .part {
        width: 50%;
        margin: auto;
        max-width: initial;
    }

    #contact .content .part1 {
        order: initial;
    }

    #contact .content .part2 {
        order: initial;
    }

    #contact .content .part .item {
        margin: 0;
        margin-right: 50px;
    }

    #contact .content .part2 .item {
        height: 525px;
    }
}


/* ===================== Large Screens ===================== */

@media (min-width: 1181px) and (max-width: 1300px) {

    #home {
        background-position: initial;
    }

    #services .boxes .box {
        width: 20%;
    }

    #services .boxes .box .item {
        margin: 0px 5px;
        padding: 10px 15px;
        min-height: 260px;
        margin-bottom: 20px;
        margin-right: 20px;
    }

    #services .boxes .box .item img {
        width: 50%;
    }

    #classes .content .box {
        width: 33.33%;
    }

    #classes p.info {
        width: 50%;
    }

    #classes .content .box .item .informations h3 {
        font-size: 1rem;
    }

    #classes .content .box .item .informations p {
        font-size: .6rem;
    }
}