body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container{
    display: flex;
    gap: 40px;
    max-width: 1000px;
    padding: 30px 40px;
    border: 5px solid #b8b8b8;
    background: #f5f5f5;
}

h2{
    margin: 0;
}

.image-group{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-group.inline{
    display: none;
}

.image-group.desktop{
    display: flex;
}

.image-with-text-top{
    height: 230px;
    background: #37516b;
    border-radius: 10px;
    padding-bottom: 10px;
}

.image-with-text-bottom{
    height: 270px;
    background: #37516b;
    border-radius: 10px;
    padding-bottom: 15px;
}

img{
    width: 315px;
    height: 200px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.text-top{
    color: #ffffff;
    margin: 0;
    padding-left: 80px;
    padding-top: 5px;
    
}

.text-bottom{
    color: #ffffff;
    margin: 0;
    padding-left: 20px;
    padding-top: 5px;
    width: 270px;   
    text-align: right;
}


@media (max-width: 800px) and (min-width: 600px){
    .container{
        padding: 30px 25px;
        flex-direction: column;
    }

    .image-group.desktop{
        display: none;
    }

    .image-group.inline{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 25px 0;
    }

    .image-with-text-top{
        padding-bottom: 20px;
    }

    img{
        width: 350px;
        height: 210px;
    }

    .text-top{
        padding-left: 125px;
    }

    .image-with-text-bottom{
        padding-bottom: 25px;
    }

    .text-bottom{
        width: 320px;
        padding-left: 10px;
    }

}


@media (max-width: 600px){
    .container{
        padding: 30px 25px;
        flex-direction: column;
    }

    .image-group.desktop{
        display: none;
    }

    .image-group.inline{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .image-with-text-top{
        height: 370px;
        padding-bottom: 20px;
    }

    img{
        width: 530px;
        height: 350px;
    }

    .text-top{
        padding-left: 300px;
    }

    .image-with-text-bottom{
        height: 410px;
        padding-bottom: 5px;
    }

    .text-bottom{
        width: 470px;
        padding-left: 35px;
    }

}
