@font-face {
	font-family: GothamNarrSSm-Light;
	src: url("fonts/GothamNarrSSm-Light.otf");
}

@font-face {
	font-family: Archangelsk;
	src: url("fonts/Archangelsk.ttf");
}

@font-face {
	font-family: ArchangelskOblique;
	src: url("fonts/ArchangelskOblique.ttf");
}

@font-face {
	font-family: Comfortaa;
	src: url("fonts/Comfortaa.ttf");
}

@font-face {
	font-family: Schule;
	src: url("fonts/Schule.ttf");
}

body {
    font-family: Schule, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	font-size: 1.1em;
    background-attachment: fixed;
    background-size: 100px auto;
    background-image: url(../Img/BG/drawn-background-brick-155.jpg);
}

ul {
	padding-left: 0px;
}

.base {
	text-align: center;
}

#general-container, #private-container  {
	max-width: 680px;
	max-height: 90vh;
	margin-left: auto;
	margin-right: auto;
	overflow: scroll;
}

#general-box, #private-box {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 90px;
    padding-top: 50px;
	background-color: hsla(60,42%,70%,0.87);
    border: 5px solid hsla(60, 13.3%, 51.2%);
}

#private-container {
	display: none;
}

header {
	font-family: Archangelsk, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	letter-spacing: 1px;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 9000;
    height: 50px;
    border-bottom: 1px solid #7793C5;
    color: #FFFFFF;
    background-color: #8EBD79;
    text-align: center;
    background-image: url(../Img/background/greenbox.png);
    background-repeat: repeat-y;
    background-attachment: scroll;
    background-size: auto auto;
    background-position: left top;
}

header h4 {
	margin-top: 15px;
}

.logo {
	text-decoration: none;
}

#user_img {
	width: 60px;
	height: 70px;
	position: fixed;
	top: 2px;
	left: 2px;
	border: 3px solid #8EDB6C;
	border-radius: 5px;
	cursor: pointer;
}
#show_nic {
    position: absolute;
    left: 75px;
    top: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 0px #000000;
}

.entering {
	position: fixed;
	top: 28px;
	left: 75px;
	cursor: pointer;
	text-shadow: 2px 2px 0px #000000;
}

.btentering {
    position: absolute;
    right: -60px;
    bottom: 0%;
}


.page-btn {
	font-size: 1.1em;
	font-weight: bold;
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
	border-radius: 4px;
	cursor: pointer;
	padding-left: 2px;
	padding-right: 2px;
	position: fixed;
	top: 5px;
}

#page-main {
	right: 154px;
	background: rgba(247,255,242,0.3);
}
#page-private {
	right: 40px;
}

.myInfo, .frendInfo {
	position: fixed;
	left: -30px;
	padding-left: 20px;
	background-color: #78A066;
	display: none;
	border-bottom-right-radius: 10px;
	border-top-right-radius: 10px;
	border-right: 2px solid #515151;
	border-top: 2px solid #515151;
	border-bottom: 2px solid #515151;
	background-image: url(../Img/background/zhopka.png);
    background-repeat: repeat-y;
    background-attachment: scroll;
    background-size: 45px auto;
    background-position: 0px top;
}

.myInfo {
		top: 80px;
}

.frendInfo {
	bottom: 85px;
	color: white;
}

.myInfo ul,
.frendInfo ul {
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	padding-left: 0px;
}
.myInfo ul li,
.frendInfo ul li {
    border-bottom: thin solid #D9E1F0;
    list-style-type: none;
    padding-left: 40px;
    padding-top: 5px;
    padding-right: 20px;
    padding-bottom: 5px;
    text-align: left;
    font-size: 1.1em;
    cursor: pointer;
}

.myInfo ul li span,
.frendInfo ul li span
{
	padding-left: 40px;
	float: right;
}

header nav{
	width: 150px;
	position: absolute;
	top: 55px;
	right: -30px;
	padding-right: 20px;
	background-color: #78A066;
	display: none;
	border-bottom-left-radius: 10px;
	border-top-left-radius: 10px;
	border-left: 2px solid #515151;
	border-top: 2px solid #515151;
	border-bottom: 2px solid #515151;
}

header nav ul {
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	padding-left: 0px;
}
header nav ul li {
	border-bottom: thin solid #D9E1F0;
	list-style-type: none;
	padding-left: 20px;
	padding-top: 5px;
	padding-right: 20px;
	padding-bottom: 5px;
	text-align: right;
	font-size: 1.1em;
	cursor: pointer;
}

.myInfo ul li:last-child,
.frendInfo ul li:last-child,
header nav ul li:last-child {
	border-bottom: none;
}

.myInfo ul li:hover,
.frendInfo ul li:hover,
header nav ul li:hover {
	background-color: darkgreen;
}


.menu  {
	background-color: #649C4C;
	position: fixed;
	top: 2px;
	right: 2px;
	width: 34px;
	height: 34px;
	border-radius: 3px;
	text-align: center;
	cursor: pointer;
	border: 1px solid #A5A5D9;
	background-image: url(../Img/Icon/menuButton.png);
	background-size: cover;
}
header h1  {
	font-size: 2.5em;
	margin-top: 0px;
	color: #7fa5b6;
	text-shadow: 1px 1px 0px #000000,
				 1px -1px 0px #000000,
				 -1px 1px 0px #000000,
				 -1px -1px 0px #000000,
				 -1px 0px 0px #000000,
				 1px 0px 0px #000000,
				 0px -1px 0px #000000,
				 0px 1px 0px #000000,
				 1px 1px 5px hsla(0, 0%, 0%, 0.5),
				 1px -1px 5px hsla(0, 0%, 0%, 0.5),
				 -1px 1px 5px hsla(0, 0%, 0%, 0.5),
				 -1px -1px 5px hsla(0, 0%, 0%, 0.5);
	margin-left: auto;
	margin-right: auto;
	display: inline-block;
	z-index: -10;
}
.input-box {
	position: fixed;
	bottom: 20px;
	left: 0px;
	width: 100%;
}

.input-box .container {
	max-width: 680px;
	height: 105px;
	margin-left: auto;
	margin-right: auto;
	background-color: #8EBD79;
	padding: 10px;
	border: 5px solid hsla(60, 13.3%, 51.2%);
	border-radius: 5px;
}

#chat-data, #chat-data-pm {
	width: 70%;
	border: 2px solid #6E8862;
	font-size: 1.2em;
}
#chat-data-send, #chat-data-pm-send {
	width: 19%;
	color: #636363;
	font-size: 1.2em;
	font-weight: bold;
	background-color: #8EBD79;
	border: 2px solid #6E8862;
}

.empty70px {
	height: 70px;
}

.empty1vh {
	height: 80vh;
}

footer {
	font-family: Archangelsk, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	letter-spacing: 1px;
	position: fixed;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: 50px;
	background-color: #8EBD79;
	background-image: url(../Img/background/greenbox.png);
    background-repeat: repeat-y;
    background-attachment: scroll;
    background-size: auto auto;
    background-position: left bottom;
	border-top: 4px solid #717158;
}
.chat-entry, .chat-entry-system, .chat-entry-anekdot, .chat-entry-new {
	position: relative;
	min-height: 60px;
	margin-bottom: 10px;
    display: flex;

}

.chat-avatar {
	width: 40px;
	border-radius: 5px;
	border: 2px solid #6DCC62;
	height: auto;
	position: absolute;
	left: 0px;
	top: 0px;
	cursor: pointer;
}
.pipka {
	float: left;
	margin-left: 54px;
	margin-top: 5px;
    height: 20px;
}

.text-entry {
    -webkit-box-shadow: 0px 0px;
    box-shadow: 0px 0px;
    background-color: #CEE8DB;
    border-left: 1px solid #DAEEE4;
    border-right: 1px solid #90CCAF;
    border-bottom: 1px solid #90CCAF;
    border-top: 1px solid #DAEEE4;
    border-radius: 5px;
    text-align: left;
    font-size: 1.1em;
    position: relative;
    color: #463D3D;
    float: left;
    clear: both;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
}

.chat-entry-anekdot .text-entry {
    background-color: #DBCCE5;
    border-left: 1px solid #EBE2F0;
    border-right: 1px solid #C0A5D1;
    border-bottom: 1px solid #C0A5D1;
    border-top: 1px solid #EBE2F0;
}

.info-entry {
    font-size: 0.75em;
    font-weight: bold;
    margin-top: -15px;
	margin-right: 40px;
    border: 2px solid #B2B49D;
    background-color: #E3E1C5;
    border-radius: 5px;
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 5px;
    float: left;
    clear: both;
    margin-bottom: 1px;
}

.menu-entry {
    font-size: 0.75em;
    font-weight: bold;
    margin-top: -25px;
    border: 2px solid #B2B49D;
    background-color: #E3E1C5;
    border-radius: 5px;
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 5px;
    float: right;
    clear: both;
    margin-bottom: 1px;
	cursor: pointer;
}

.itself-entry {
	text-indent: 20px;
	padding-left: 10px;
	margin-bottom: 0px;
}

#editor_field {
	width: 600px;
	height: 400px;
	overflow: auto;
	text-indent: 20px;
	font-size: 1em;
}

#private-list, #online-list {
	position: fixed;
	bottom: 2px;
	left: 75px;
	height: 80px;
	width: 84%;
	overflow-y: hidden;
	overflow-x: auto;
	white-space:nowrap;
	z-index: 10;
}

#private-info {
	font-family: Archangelsk, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	letter-spacing: 1px;
}

#private-info img {
	width: 60px;
	height: 70px;
	position: fixed;
	bottom: 2px;
	left: 2px;
	border: 3px solid #8EDB6C;
	border-radius: 5px;
	cursor: pointer;
	z-index: 100;
}

.pm-link, .online-link {
	display: inline-block;
	margin-right: 5px;
	position: relative;
}
.pm-link .ava, .online-link .ava {
	width: 56px;
	height: 68px;
	border-style: solid;
	border-width: 4px;
	border-radius: 8px;
	cursor: pointer;
}

.mss-pm {
	position: absolute;
	right: -5px;
	bottom: -10px;
	width: 40px;
	height: 30px;
	z-index: 1000;
}

.style-login, #cont_win_input, #cont_img_upload {
	display: none;
	position: absolute;
    top: 50%;
    left: 50%;
    background: snow;
    padding: 20px;
    font-size: 1.5em;
    text-align: right;
    border: 2px solid #000000;
    border-radius: 4px;
    z-index: 9999;
}

.style-login label {
    display: block;
    margin-bottom: 10px;
}

.style-login input {
    font-size: 0.9em;
    border: 2px solid #6E8862;
    border-radius: 4px;
    background-color: #b7e7a2;
    width: 16ex;
}

#enter {
    background-color: #94bd83;
    color: #4c5c4e;
    width: auto;
}

#fade {
    display: none;
    background: #000;
    position: fixed; left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: .80;
    z-index: 9998;
}

.btn_close2 {
    float: right;
    margin-top: -35px;
	margin-right: -35px;
	cursor: pointer;
}
.li-button {
    list-style-type: none;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    border-radius: 5px;
    margin-bottom: 3px;
	cursor: pointer;
	color: white;
}

.bt-red {
	background-color: #C45E60;
	border: 2px solid #513535;
}

.bt-red:hover {
	background-color: #863C3D;
	
}

.bt-green {
	background-color: #78A066;
	border: 2px solid #516b45;
}

.bt-green:hover {
	background-color: darkgreen;	
}

#help_info, #win_info, #setup, #friend_setup_info, #win_menu_entry, .pop_win, #entry_editor {
    display: none;
    position: absolute;
    top: 50%;
	left: 50%;
	background-attachment: fixed;
    background-size: 100px auto;
	background-image: url(../Img/BG/drawn-background-brick-155.jpg);
    padding: 20px;
    font-size: 1.5em;
    text-align: right;
    border: 10px solid #161616;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
}

.online, .online-link .ava {
	border-color: #8EDB6C;
}

.offline {
	border-color: #8C7370;
}
.clear-float {
    clear: both;

}
#val_n {
    position: fixed;
    left: 75px;
    color: #EDEDED;
    font-size: 2em;
    z-index: 101;
    bottom: -23px;
	text-shadow: 2px 2px 0px #000000;
}

.unit_text {
	border: 1px solid hsla(0,0%,0%,1.00);
	margin-top: 40px;
	margin-right: 5px;
	margin-bottom: 5px;
	margin-left: 5px;
	background-color: hsla(0,0%,100%,0.46);
	overflow-y: hidden;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
}

.window-class-1 {
	border-radius: 20px;
	border: 10px solid #D51A20;
	width: 200px;
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	background-color: hsla(200,6%,71%,1.00);
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -100px;
	margin-top: -50px;
	z-index: 10000;
}

.pop-block {
	position: fixed;
	max-width: calc((100vw - 633px) / 2 - 100px);
	left: 3vw;
	top: 90px;
	background-color: rgb(232, 238, 240);
	border: 5px solid hsla(60, 13.3%, 51.2%);
	border-radius: 20px;
	font-family: Schule, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	font-size: 1.1em;
}

.pop-block p{
	text-indent: 3ch;
	margin: 10px;
}

.block-header {
	border-bottom: 5px dotted #717158;
	padding: 10px;
	font-family: Archangelsk, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	color: #1e6648;
	font-size: 1.2em;
	text-align: center;
}

.block-header img{
	float: right;
}

.block-futer {
	border-top: 5px dotted #717158;
	padding: 10px;
}

.block-futer span{
	font-size: 1.2em;
	font-family: Archangelsk, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	color: #535353;
}

@media screen and (max-width:550px){
	.page-btn {
		width: 36px;
		overflow: hidden;
		text-overflow: ellipsis;

	}
	#page-main {
		right: 92px;
	}
	#page-private {
		right: 45px;
	}
}

@media screen and (max-width:768px){
	.logo {
    	visibility: hidden;

	}

}

@media screen and (max-width:1150px){
	.pop-block {
		visibility: hidden;
	
	}
}