.catdog1-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.catdog1-img {
    display: block;
    width: 100%;
    height: auto;
}

.catdog1-title {
    position: absolute;
    top: 16px;
    left: 50%;
    color: #FBF5DA;
    margin: 0;
    padding: 4px 16px;
}

.colorfile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25%;
    margin: 50px 0;
    justify-content: center;
    align-items: flex-start;

}

.colorfile-block {
    position: relative;
    box-sizing: border-box;
    height: 310px;
    cursor: pointer;
}

.colorfile-img {
    height: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;

}

.colorfile-img.green {
    background-image: url('../img/healthy&behavior/filegreen1.png');
}

.colorfile-img.green:hover {
    background-image: url('../img/healthy&behavior/filegreen2.png');
}

.colorfile-img.blue {
    background-image: url('../img/healthy&behavior/fileblue1.png');
}

.colorfile-img.pink {
    background-image: url('../img/healthy&behavior/filepink1.png');
}

.colorfile-img.orange {
    background-image: url('../img/healthy&behavior/fileorange1.png');
}

.colorfile-img:hover {
    filter: brightness(1.2) saturate(1.2);

}

.colorfile-title {
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    max-width: 70%;

    text-align: center;

}

.colorfile-block-link {
    display: block;
    width: 30%;
    margin-bottom: 16px;

}

.cathand1 {
    position: absolute;
    left: 5%;
    top: 100%;
    transform: translate(-50%, -5px);
    width: 8%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.cathand2 {
    position: absolute;
    left: 80%;
    top: 0;
    transform: translate(-50%, -80px);
    width: 80px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.fish1 {
    position: absolute;
    left: 90%;
    width: 10%;
    height: auto;
    z-index: 2;

}

.fish2 {
    position: absolute;
    top: 1200px;
    left: 1%;
    width: 1%;
    height: auto;
    z-index: 2;
}

@media screen and (max-width: 1150px) {

    h5,
    .catdog1-title {
        font-size: 42px;
    }

    h3,
    .colorfile-title {
        font-size: 32px;

    }

    .colorfile-block-link {
        width: 38%;
    }

    .fish2 .fish1 {
        width: 20%;

    }
}

@media screen and (max-width: 1100px) {
    .green-flex-row {
        display: flex;
        flex-direction: row;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        overflow-x: hidden;
        align-items: flex-start;
        position: relative;
    }

    .green-rectangle {
        width: 15%;
        min-width: 60px;
        height: 100vh;
        background: #A8BF89;
        position: relative;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .grooming {
        width: 85vw;
        margin: 0 auto;
        padding: 32px 16px;
        background: #FBF5DA;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}

@media screen and (max-width: 900px) {

    h5,
    .catdog1-title {
        font-size: 30px;
    }

    h3,
    .colorfile-title {
        font-size: 28px;
    }

    .colorfile-block {
        height: 250px;
    }

}

@media screen and (max-width: 700px) {

    h5,
    .catdog1-title {
        font-size: 26px;
    }

    h3,
    .colorfile-title {
        font-size: 22px;
    }

    .colorfile-block-link {
        margin-bottom: 0;
    }


    .colorfile-img {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {

    h5,
    .catdog1-title {
        font-size: 18px;
    }

    .colorfile-block {
        height: 200px;
        margin-bottom: 16px;
    }

}


@media screen and (max-width: 470px) {

    h5,
    .catdog1-title {
        font-size: 18px;
    }

    h3,
    .colorfile-title {
        font-size: 16px;
    }

    .colorfile-block {
        height: 130px;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 414px) {


    .colorfile-block {
        height: 150px;
    }


}