@media screen and (min-width: 601px) {
.desktop-view{
    display: grid;
}

.mobile-view{
    display: none;
}

body {
    margin: auto;
    padding: 0 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    max-width: 1920px;
    width: 100%; 
    background-color:rgb(167, 167, 167);
    box-sizing: border-box;
}

.button-class {
    background-color: rgb(203, 202, 202);
    color: rgb(0, 0, 0);
    padding: 10px 0px;
    margin: 5px 0px;
    display: block;
    box-sizing: border-box;
    width: 100px;
    text-align: center;
    border-radius: 1em;
    text-decoration: none;
    position: absolute;
    margin-left: 15px;
    bottom: 0px;
}

.flex-container {
    display: flex;
    align-items: stretch;
    margin-top: 150px;
    margin-bottom: 50px;
    gap: 30px;
    padding-left: 100px;
    padding-right: 100px;
    
}

.flex-item {
    flex: 1; 
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    padding: 5px;
    border-radius: 1rem;
    position: relative;
    min-height: 450px;
    justify-content: space-between;
}

.image-container {
    flex: 0 0 30%; 
}

.image-container img {
    max-width: 100%;
    display: block;
    border-radius: 1em;
    width: 100%;
    object-fit: cover;

}

.text-container h1 {
    text-align: justify;
    padding: 10px 20px;
    margin-bottom: 40px;
    margin-top:20px;
    font-size: 22px;
    color: rgb(0, 0, 0);
    text-align: center;
}
}

@media screen and (max-width: 600px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: flex;
        align-items: center;
        width: 100%;
    }

    body {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        background-color:rgb(167, 167, 167);
    }

    .flex-container {
        width: 100%;
        padding: 0;
        gap: 20px;
        flex-direction: column;
        margin-top: 100px;
    }

    .flex-item {
        width: 100%; 
        min-height: 100px; 
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        color: white;
        font-size: 22px;
        font-weight: bold;
        border-radius: 0;
    }

    .flex-item a {
        color: white;
        text-decoration: none;
        padding: 20px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.888); 
    }

    
    .service-1 { background-image: url('/images/kurz.jpg'); opacity: 0.8; }
    .service-2 { background-image: url('/images/acupuncture.jpg');opacity: 0.8; }
    .service-3 { background-image: url('/images/kurz-copy.jpg'); opacity: 0.8;}
    .service-4 { background-image: url('/images/breastfeeding-services-2.jpg'); opacity: 0.8;}
    .service-5 { background-image: url('/images/kinesiotaping-copy.jpg');opacity: 0.8; }
    .service-6 { background-image: url('/images/kupanie.jpg');opacity: 0.8; }
}
