.heading {
	height: 3.2em;
	min-height: 80px;
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	z-index: 9999;
	position: sticky;
	position: -webkit-sticky; /* Safari */
	top: 0px;
	padding-left: 1em;
	color: #fff;
	background-color: #191919;
	font-size: 1.2vw;
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5)
}

.top_menu {
	white-space: nowrap;
}

.top_menu > ul {
	display: flex;
}

.active {
	color: #fff;
}

.lang {
	display: none;
	text-align: right;
	margin-left: auto;
	padding-right: 1em;
}

.lang > ul > li {
	display: inline-block;
	margin-right: 0.5em;
}

.lang-text summary::-webkit-details-marker {
	display: none;
}

.lang-text summary {
	list-style: none;
	cursor: pointer;
}

.lang-text summary:hover {
	text-decoration: underline;
}

.lang-text[open] summary {

}

.lang-select {
	visibility: hidden;
	list-style: none;
	font-size: 1em;
	color: #fff;
	cursor: pointer;
	display: block;
	border: 0px;
	background-color: transparent;
}

.lang-select option {
	background-color: #222;
	border-radius: 0;
}


.popup_window {
	padding: 1em;
	background-color: #132;
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	height: 15em;
	width: 20em;
	text-align: center;
}

.random-puzzle a {
	color: #1f3;
}

.logo  {
	display: block;
	cursor: pointer;

}

.logo img {
	vertical-align: middle;
	height: 1.5em;
}

.user_block {
	display: block;
	justify-content: flex-end;
	text-align: right;
	margin-left: auto;

}

.menu_item {
	cursor: pointer;
	margin-right: 1em;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
}


[class^="menu_icon"] {
	display: none;
	height: 30px;
	width: 30px;
}

.menu_icon-popular {
	background: url(../images/icons/popular.png) 100% 100% no-repeat;
	background-size: contain;
}

.menu_icon-login {
	background: url(../images/icons/login.png) 100% 100% no-repeat;
	background-size: contain;
}
.menu_icon-signup {
	background: url(../images/icons/signup.png) 100% 100% no-repeat;
	background-size: contain;
}



.menu_icon-new {
	background: url(../images/icons/fresh.png) 100% 100% no-repeat;
	background-size: contain;
}

.menu_icon-random {
	background: url(../images/icons/random.png) 100% 100% no-repeat;
	background-size: contain;
}

.menu_icon-add {
	background: url(../images/icons/add.png) 100% 100% no-repeat;
	background-size: contain;
	position: relative;
    left: 25px;
}

.menu_icon-favourites {
	background: url(../images/icons/favorite.png) 100% 100% no-repeat;
	background-size: contain;
    position: relative;
    left: 25px;
}

.menu_text {
	margin-left: 0.3em;
}

.name {
	margin-left: 1.5em;
	min-width: 100px;
	max-width: 25vw;
	color: #bbb;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile_menu {
	margin-right: 3em;
	margin-left: auto;
	white-space: nowrap;
}

.profile_menu > ul  {
	padding-left: auto;
	display: flex;
}

.profile_menu ul > li:hover {
	text-decoration: underline;
	cursor: pointer;
}

.profile {
	display: block;
	padding-left: 1em;
	width: 200px;
}

.profile:hover {
	text-decoration: underline;
	cursor: pointer;
}

.avatar {
	display: block;
	position: fixed;
	right: 0.3em;
	top: 0.5em;
	height: 80px;
	width: 80px;

}

.avatar > img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	border: 0.15em solid #191919;
	border-radius: 50%;
	background-color: #fff;
}




@media (max-width: 1350px) {
	.logo {
		display: none;
	}

	.menu_item {

	}

	.heading {
		font-size: 1.7vw;
	}



	.top_menu > ul {
		padding: 0;
	}

}

@media (max-width: 1000px) {
	[class^="menu_icon"] {
		display: block;
		height: 40px;
		width: 40px;
		margin-right: 0.8em;
	}

	.menu_text {
		display: none;
	}

	.name {
		margin-left: 1em;
		margin-right: 0;
	}

	.user_block {
		margin-right: 4em;
	}

	.profile_menu > ul {
		padding-left: 0;
	}

	.menu_item {
		margin-left: 0;
	}
}


@media (max-width: 680px) {
	.gallery {
	  display: flex;
	  flex-direction: column;
	}
	
	.name {
		display: none;
	}
}