.topmenu {
    clear: both;
}

.page-content {
    margin-bottom: 15px;
}

#resSearch a {
    display: block;
    padding-left: 20px;
    position: relative;
}

#resSearch a:first-child {
    margin-top: 10px;
}

#resSearch a:before {
    width: 6px;
    height: 6px;
    border-radius: 7px;
    background-color: #f70d28;

    left: 0;
    top: 8px;

    position: absolute;
    content: "";
    display: block;
}

.show-ten {
    text-align: center;
}

a#show {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    display: inline-block;
    padding: 9px 15px;
    text-decoration: none;
    border: none;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background: #f70d28;
    color: #fff;
    text-decoration: none;
    margin-top: 8px;
}

/*chat 2.0*/

/*страница личного кабинета - цифры сообщений*/

/*в хедере*/

/*в хедере*/

ul.personal .mesage {
    position: relative;
    padding: 0;
}

ul.personal .mesage i {
    display: inline-block;
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 5px 0 0 0;
    background-color: #f5f5f5;
    color: #5d5d5d;
    border: 1px solid #de1829;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    border-radius: 50%;
    right: -10px;
    top: -10px;
    font-size: 15px;
}


/*сетка страницы чата*/
.left_block {
    float: left;
    width: 28%;
    margin-right: 4%;
    padding: 20px;

    background-color: #efefef;
    border: 1px solid lightgray;

    overflow-y: scroll;
    max-height: 773px;
}

.right_block {
    float: left;
    width: 68%;
}

.right_block h1 {
    position: relative;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
}

.right_block h1:after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 45px;
    height: 1px;
    background-color: #fa1933;
}

.left_block a {
    display: block;
    padding: 12px 15px;
    margin: 0 0 17px 0;
    background-color: #fff;
    border-radius: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: 250ms;
}

.left_block a:last-child {
    margin: 0 0 0 0;
}

.left_block a:hover {
    text-decoration: none;
    background-color: #fa1933;
    color: #fff;
}



/*написание и отправка сообщений*/
.chat-controls {
    /*display: flex;*/
    /*flex-direction: row;*/
    /*align-items: center;*/
    /*justify-content: space-between;*/
    /*flex-wrap: wrap;*/
    position: relative;
    padding: 30px 30px 60px 30px;
    background: #efefef;
    margin: 0 0 0 0;
    border-radius: 30px;
    /*border: 1px solid #d4d4d4;*/
    /*overflow: hidden;*/
}


.chat-controls span {
    display: block;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.chat-controls textarea {
    display: block;
    width: 100%;
    /* flex: 1 1 50%; */
    margin: 0 0 10px 0;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 15px;
}

	/*.chat-controls input {*/
	/*	display: block;*/
	/*	position: absolute;	*/
	/*	bottom: 0;*/
	/*	left: 0;*/
	/*	right: 0;	*/
	/*	height: 40px;*/
	/*	width: 100%;	*/

	/*	!*flex: 0 0 130px;*!*/
	/*    background: url(/img/i-submit.png) #fa1933 no-repeat 30% center;*/
	/*    background-size: 15px;*/
	/*    !* border: 4px solid #fff; *!*/
	/*    color: #fff;*/
	/*    !*border-radius: 35px;*!*/
	/*    padding: 5px 15px 5px 30px;*/
	/*    transition: 0.2s all ease;*/
	/*    font-weight: bold;*/
	/*    border: 0;*/
	/*}*/

	/*.chat-controls input:hover {*/
	/*	background-color: #d90a22;*/
	/*}*/


.message-number {
    display: inline-block;
    margin: 0 5px 0 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dadada;
    color: #545454;
    line-height: 30px;
    text-align: center;
    font-style: normal;
}

#messages {
    margin: 0 0 40px 0;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 20px;
    overflow-y: scroll;
    max-height: 500px;
    display: block;
}

#messages:empty {
    display: none !important;
}

#mesage_send_podlozka #mesage {
    display: block !important;
    background-color: #fff;
    position: relative;
    margin: auto;
    text-align: center;
    top: 100px;
    color: #000;
    width: 600px;
    padding: 30px 0 0;
    border-radius: 30px;
}

#mesage_send_podlozka #mesage #messages {
    border: 0;
}

#mesage_send_podlozka #mesage .chat-controls {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

#mesage_send_podlozka .close {
    background-color: #fff;
    opacity: 1;
    padding: 10px 25px;
}

.mesage {
    position: relative;
    padding: 10px 20px;

}

.mesage p {
    margin: 0;
    font-size: 16px;
}

.mesage p.name {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-align: right;
    color: gray;
    opacity: .6;
}

/*.mesage::before {
    position: absolute;
    content: '';
    right: -24px;
    top: 20px;
    border-top: 15px solid transparent;
    border-left: 15px solid #efefef;
    border-bottom: 15px solid transparent;
}*/

.mesage.all_mesage {
    margin: 0 20% 15px 0;
    background-color: #efefef;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.mesage.my_mesage {
    margin: 0 0 10px 20%;
    background-color: #e8f5ff;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.appear-from-left {
    animation: slideInLeft .2s ease;
}

.appear-from-right {
    animation: slideInRight .2s ease;
}

.left_block a.no_read {
    position: relative;
    border: 1px solid #f70d28;
}

/*.left_block a.no_read:hover::after {
		display: none;
}*/

.no_read::after {
	    position: absolute;
	    content: 'Не прочитано';
	    left: 50%;
	    transform: translateX(-50%);
	    top: -10px;
	    width: 90px;
	    height: 18px;
	    font-size: 11px;
	    background: #ffffff;
	    color: #464545;
	    border-radius: 10px;
	    line-height: 18px;
	    border: 1px solid gray;
	    transition: 250ms;
}


#mesage {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    /* height: 300px; */
    margin: 0 auto.;
    background: #fff;
    border-radius: 35px;
    /* padding-top: 30px; */
    padding: 30px;
}

#mesage #messages {
    max-height: 300px;
}

#mesage_podlog .close {
    position: fixed;
    right: right;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .9;
    filter: alpha(opacity=20);
    right: 0;
    top: 0;
    border-radius: 50%;
    background: #fff;
    /* z-index: 99999; */
    text-decoration: none;
}

#mesage_podlog .close a {
    position: relative;
    display: block;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#mesage_podlog .close a::after {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    height: 2px;
    width: 3rem;
    background-color: #fa1933;
    -webkit-transition: 250ms;
    -o-transition: 250ms;
    transition: 250ms;
}

#mesage_podlog .close a::before {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    height: 2px;
    width: 3rem;
    background-color: #fa1933;
    -webkit-transition: 250ms;
    -o-transition: 250ms;
    transition: 250ms;
}

#mesage_podlog .close:hover {
    opacity: 1;
}


.mesage-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    margin: 0 auto.;
    background: #fff;
    border-radius: 35px;
}

/*анимации сообщений*/
@keyframes slideInRight {
    0% {
        transform: translateX(60%);
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-60%);
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    #mesage {
        width: 95%;
    }
}