* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.background {
    width: 100%;
    height: 100vh;
    background-color: #f6c2f4;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main>img {
    margin-top: 2%;
    width: 45em;
    height: 35em;
}

.links {
    background-color: #fff;
    padding: 10px 0;
}

.links a,
.links p {
    color: #000;
    font-size: 1.2em;
    margin: 0 1em;
    text-decoration: none;
    transition: .5s;
}

.links p {
    font-size: 1em;
    margin: 1em;
}

.links a:hover {
    transition: .5s;
    border-bottom: 2px solid #000;
    color: #3096da;
    border-color: #3096da;
}

@media only screen and (min-width: 600px) {
    .links {
        display: flex;
        flex-direction: column;
        width: 35em;
    }
    .links a {
        margin-bottom: 0.3em;
        border-bottom: 1px solid #000;
    }
    .main>img {
        width: 35em;
        height: 35em;
    }
}


/* Телефон */

@media only screen and (max-width: 600px) {
    /* Ваши стили для мобильных устройств */
    .links {
        display: flex;
        flex-direction: column;
    }
    .links a {
        margin-bottom: 0.3em;
        border-bottom: 1px solid #000;
    }
    .main>img {
        width: 21em;
        height: 15em;
    }
}

@media screen and (min-width: 280px) and (max-width: 440px) {
    /* Ваши стили для мобильных устройств */
    .links {
        display: flex;
        flex-direction: column;
    }
    .links a {
        margin-bottom: 0.3em;
        border-bottom: 1px solid #000;
    }
    .main>img {
        width: 15em;
        height: 15em;
    }
    .links {
        background-color: #fff;
        padding: 0.5em;
        font-size: 0.76em;
    }
}


/* Планшет */


/* @media only screen and (min-width: 601px) and (max-width: 1024px) {} */