@import url("font.css");

a {
	color: inherit;
}
.active-item {
	/*   background: rgba(255,255,255,0.2) */
	border-bottom: 3px solid #d6b65f;
}
nav ul li:hover {
	background: rgba(255, 255, 255, 0.3);
}
nav {
	font-family: "Open Sans Condensed", sans-serif;
	margin: 0 auto;
	max-width: 1024px;
}
nav ul {
	color: #fff;
	list-style: none;
}
nav ul li {
	transition: background 0.25s;
	float: left;
	padding: 0px 30px;
}
nav ul li a {
	text-decoration: none;
	font-size: larger;
	text-align: center;
	width: 100%;
	display: inline-block;
	padding: 1em 0;
}
.divh1 {
	text-align: center;
	line-height: 48px;
	margin: 0 auto;
	white-space: nowrap;
	color: #fff;
	margin-bottom: 20px;
}
.space-bg {
	width: 1000%;
	height: 60%;
	background-size: cover;
	background: url(../images/bg.png);
	background-position: 0% bottom;
	position: absolute;
	background-repeat: repeat;
	z-index: -1;
	/*animation-name: example;
  animation-duration: 60s;
  animation-direction:alternate;
  animation-iteration-count:infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;*/
}
@-webkit-keyframes example {
	from {
		left: -50%;
	}
	to {
		left: 0%;
	}
}
aside .close-btn {
	cursor: pointer;
	text-align: center;
	line-height: 2;
	width: 100%;
	font-size: 24px;
}
aside .close-btn:hover {
	transition: background-color 0.2s;
	background: #fff;
	color: #d6b65f;
}
.clr:after {
	content: "";
	display: block;
	clear: both;
}
.wide-container {
	margin: 0 auto;
	max-width: 1170px;
}
#logo {
	bottom: 20px;
	position: relative;
	width: 20%;
	background: ;
	padding: 6px;
	padding-top: 28px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
#logo:after {
	position: absolute;
	content: "Тематические фрагменты \a аудиолекций Свами Вишнудевананда Гири";
	left: 120%;
	top: 38%;
	width: 300px;
	white-space: pre;
}
#overlay {
	position: absolute;
	width: 100%;
	height: 33.3%;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgba(1, 31, 41, 0) 0%,
		rgba(1, 31, 41, 1) 100%
	);
}
#master {
	color: #fff;
}
#master img[src*="select"] {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	border: 1px solid #fff;
}
.btns {
	background: rgba(255, 255, 255, 0.15);
	white-space: nowrap;
	text-align: center;
	cursor: pointer;
	user-select: none;
	font-size: 18px;
	transition: background-color 0.2s;
	margin: 5px;
	text-decoration: none;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
}
.btns:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #d6b65f;
}

.circle {
	border-radius: 50%;
}

#menu-switch {
	float: right;
	padding: 6px 20px;
	cursor: pointer;
	color: #fff;
	font-size: 16px;
}

aside {
	left: -480px;
	transition: left 0.25s;
	height: 100%;
	background: #011f29;
	font-size: 20px;
	color: #fff;
	position: fixed;
	top: 0;
	width: 480px;
	z-index: 10;
}

aside ul li {
	list-style: none;
	transition: color 0.1s;
}

aside ul li:hover {
	color: #d6b65f;
}

aside li a {
	display: block;
	width: 100%;
	padding: 1em 0;
	text-decoration: none;
}

aside div:last-child {
	width: 100%;
	padding-bottom: 1em;
	position: absolute;
	bottom: 0;
	font-size: 16px;
	border-top: 3px solid #d6b65f;
}

aside div span {
	position: absolute;
	top: -0.75em;
	background: #011f29;
	margin-left: 1.5em;
	padding: 0 0.5em;
	color: #d6b65f;
}

aside ul {
	margin-left: 4em;
}

aside ul li:before {
	transition: opacity 0.2s;
	content: "";
	background-position: 50%;
	background-size: 100%;
	margin-top: 16px;
	left: 12px;
	opacity: 0;
	width: 48px;
	height: 32px;
	position: absolute;
	background-image: url(../images/select.png);
	background-repeat: no-repeat;
}

aside ul li:hover:before {
	opacity: 1;
}

.menu-links {
	border-radius: 50%;
	background: #fff;
	display: inline-block;
	width: 45px;
	height: 45px;
	margin: 16px 0 0 16px;
}

#control-panel {
	margin: 0 auto;
	color: #fff;
	/* background: linear-gradient(to bottom, rgba(1,31,41,1) 0%,rgba(0,0,0,0) 100%); */
	padding: 18px;
}

#control-panel .circle {
	float: right;
	margin-right: 12px;
	color: #fff;
	padding: 0;
	width: 34px;
	height: 34px;
	line-height: 34px;
}

#control-panel .btns:hover {
	color: #d6b65f;
}

.panel-cell {
	width: 33.3%;
}
.fl-l {
	float: left;
}
.fl-r {
	float: right;
}

#control-panel {
	display: flex;
	justify-content: space-between;
}

.panel-cell.fl-r {
	display: none;
}

#quote {
	position: absolute;
	top: 45%;
	left: 15%;
	z-index: 1;
	font-size: 150%;
}
#control-panel:after {
	display: none;
}
#control-panel nav {
	margin: 0;
}
@media (max-width: 1440px) {
	#quote {
		font-size: 150%;
	}
}
@media (max-width: 1024px) {
	.space-bg {
		width: 100%;
		left: 0;
		animation-play-state: paused;
	}
	@-webkit-keyframes example {
		from {
			left: 0%;
		}
		to {
			left: 0%;
		}
	}
}
@media (max-width: 768px) {
	.panel-cell.fl-r {
		display: block;
	}
	#quote h4 {
		float: none !important;
	}
	img[alt="master"] {
		display: none;
	}
	#logo {
		width: 30%;
	}
	.panel-cell h1 {
		position: relative;
	}
	#master {
		margin-top: 64px;
	}
	#master p {
		margin: 0 15%;
	}
	#quote {
		width: 100% !important;
		position: static;
		margin-top: 25% !important;
		text-align: center;
	}
	#quote h4 {
		float: none !important;
	}
	img[alt="master"] {
		display: none;
	}
	#logo {
		width: 30%;
	}
	.panel-cell h1 {
		position: relative;
	}
	#master {
		margin-top: 32px;
	}
	#master p {
		margin: 0 15%;
	}
}
@media (max-width: 480px) {
	#logo {
		width: 40%;
	}
	#logo:after {
		content: "";
	}
}
@media (max-width: 992px) {
	nav {
		display: none;
	}
}
@media (min-width: 993px) {
	#menu-switch {
		display: none;
	}
}
