@media only screen and (min-width: 840px) { /* Screen which has a maximum width of 900px */
/* Общие настройки элементов в профиле и входе */
.profile_main_body{
    display: flex;
    justify-content: center;
}
.profile_entry{
    max-width: 400px;
    padding: 20px;
}
.profile_entry input{
    width: 100%;
    height: 30px;
    font-size: 18;
    padding-inline: 20px;
    margin-bottom: 10px;
    text-align: center;
}
.profile_reg_rep{
    display: flex;
    justify-content:space-between;
}
.profile_reg_rep a{
    font-size: 16;
    text-decoration: none;
    color: black;
}

/* Для авторизации */
.profile_entry_alert{
    justify-self: center;
    text-align: center;
    font-size: 20;
    padding-bottom: 10px;
}


/* Для регистрации */
.profile_welcome_text{
    justify-self: center;
    /* max-width: 400px; */
    text-align: center;
    font-size: 20;
    padding-bottom: 20px;
}
.profile_how_reg{
    padding-top: 10px;
}

/* Для профиля */
.profile_main_body_ready{
    display: flex;
    flex-direction: column;
}

/* Для создание статьи */
.profile_main_item form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile_main_item input{
    font-size: 20px;
    text-align: center;
    width: 50%;
    margin-bottom: 10px;
}
.profile_main_item textarea{
    width: 100%;
    height: 400px;
    resize: vertical;
    
}
.container {
    width: 100%;
    position: relative;
  }
.container textarea{
    width: 100%;
    height: 400px;
    resize: vertical;
    
}
.counter {
    position: absolute;
    bottom: 5px;
    right: 20px;
}
}


@media only screen and (max-width: 840px) { /* Screen which has a maximum width of 900px */
    /* Общие настройки элементов в профиле и входе */
    .profile_main_body{
        display: flex;
        justify-content: center;
    }
    .profile_entry{
        max-width: 400px;
        padding-bottom: 20px;
    }
    .profile_entry input{
        width: 100%;
        height: 30px;
        font-size: 18;
        padding-inline: 20px;
        margin-bottom: 10px;
        text-align: center;
    }
    .profile_reg_rep{
        display: flex;
        justify-content:space-between;
    }
    .profile_reg_rep a{
        font-size: 16;
        text-decoration: none;
        color: black;
    }

    /* Для авторизации */
    .profile_entry_alert{
        justify-self: center;
        text-align: center;
        font-size: 20;
        padding-bottom: 10px;
    }


    /* Для регистрации */
    .profile_welcome_text{
        justify-self: center;
        /* max-width: 400px; */
        text-align: center;
        font-size: 20;
        padding-bottom: 20px;
    }
    .profile_how_reg{
        padding-top: 10px;
    }

    /* Для профиля */
    .profile_main_body_ready{
        display: flex;
        flex-direction: column;
    }

    /* Для создание статьи */
    .profile_main_item form{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .profile_main_item input{
        font-size: 20px;
        text-align: center;
        width: 80%;
        margin-bottom: 10px;
    }
    .profile_main_item textarea{
        width: 100%;
        height: 400px;
        resize: vertical;
        
    }
}