@import url('https://fonts.googleapis.com/css?family=Marck Script&display=swap');

body {
    margin-top: 300px;
    margin-bottom: 300px;
}


h1 {
    max-width: 500px;
    margin: 0 20px;
    font-family: "Marck Script", serif;
    font-weight: 350;
    font-style: normal;
    font-size: 50px;
    justify-content: center;
}

img {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    width: 450px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

video {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    width: 450px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.container1 {
    display: flex;
    align-items: center;
    /* Вертикальное выравнивание */
    justify-content: center;

    margin-top: 30px;
}

.text {
    max-width: 500px;
    margin: 0 20px;
    font-family: "Marck Script", serif;
    font-weight: 350;
    font-style: normal;
    font-size: 40px;
    text-align: center;
    color: rgb(194, 11, 185);

}

.reverse-container {
    display: flex;
    flex-direction: row;
    /* Меняет порядок на противоположный */
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.text-reverce {
    max-width: 500px;
    margin-left: 0 20px;
    font-family: "Marck Script", serif;
    font-weight: 350;
    font-style: normal;
    font-size: 50px;
}



@media (max-width: 1100px) {
    img {
        width: 350px;


    }

    .reverse-container {
        flex-direction: column;
    }

    .container1 {
        flex-direction: column-reverse;
        padding-right: 0;
        justify-content: center;
    }

    video {
        width: 350px;
    }

    body {
        margin-top: 200px;
        margin-bottom: 200px;
    }
}


@media (max-width: 500px) {
    img {
        width: 250px;


    }

    .reverse-container {
        flex-direction: column;
    }

    .container1 {
        flex-direction: column-reverse;
        padding-right: 0;
        justify-content: center;
    }

    .text {
        font-size: 37px;

    }

    video {
        width: 250px;
    }

    body {
        margin-top: 150px;
        margin-bottom: 150px;
    }
}


/* .image { */
/* width: 300px; */
/* height: auto; */
/* } */