body {
	margin: 0;
	font-size: 16pt;
	line-height:25pt;
	font-family: sans-serif;
	max-width:1430px;
	margin: auto;
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

/* Header */
div.header {
	background-color: #f1f1f1;
	padding: 5px;
	text-align: left;
	font-size: 50pt;
	line-height:50pt;
	overflow: hidden;
	display: flex;
	font-weight: bold;
	font-family: arial;
	white-space: nowrap;
}

div.header a,
div.header a:hover,
div.header a:visited,
div.header a:active {
	display: flex;
	color: inherit;
	text-decoration: none;
}

div.header img {
	float: left;
	margin-left: 3px;
	margin-right: 10px;
}

div.header div {
	margin: auto 0;
}


div.content {
	background-color:#ccc;
}

/* Columns */
#content-column {
	float: left;
	width: 65%;
	padding: 20px;
	background-color:#bbb;
	min-height: 300px;
}

#right-column {
	float: right;
	width: 35%;
	padding: 5px;
	background-color:#ccc;
	overflow-y: auto;
}

/* ClearFix */
.content:after {
	content: " ";
	display: table;
	clear: both;
}


/* === Вещи для колонки с контентом === */

/* Для правильного масштабирования видео */
.iframe-container {
	position: relative;
	width: 100%;
	height: 0;
	border: 1px solid #aaa;
}
.iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 200px;
	min-height: 200px;
}

/* Сброс заголовков */
div#content-column h1,
div#content-column h2,
div#content-column h3,
div#content-column h4,
div#content-column h5,
div#content-column h6 {
	margin: 0;
}

div#content-column h1 {
	font-size: 20pt;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}
div#content-column h2 {
	font-size: 18pt;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
	margin-top: 40px;
}
div#content-column h3 {
	font-size: 18pt;
	font-weight: bold;
	text-align: left;
	margin-bottom: 20px;
	margin-top: 20px;
}
div#content-column p {
	margin-top: 0.3em;
	margin-bottom: 0.2em;
	text-align: justify;
	word-spacing: -0.1ex;
	text-indent: 1em;
}

div#content-column table {
	width: 100%;
	border: 1px solid black;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;
	vertical-align: top;
}

div#content-column th, td {
	border: 1px solid black;
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	vertical-align: top;
}

div#content-column ol,
div#content-column ul {
	margin: 0;
	padding-left: 2em;
}

div#content-column li {
	text-align: left;
	word-spacing: -0.1ex;
}

div#content-column blockquote {
	border-left: 6px solid black;
	background-color: #aaa;
	text-align: justify;
	font-style: italic;
	padding-left: 2em;
}

/* Это нужно, чтобы первый столбец времени был минимальным и жёстким у таблицы сурсов */
div#content-column table.sources tr > :first-child {
	width: 0;
	white-space: nowrap;
	text-align: left;
}

/* Стрелочка для внешних ссылок */
div#content-column a[href*="//"] {
	background: url('img/ext_link.png') no-repeat 0 50%;
	padding-left: 20px;
}

/* Значок вк-видео для ссылки на видео в вк */
div#content-column a[href*="https://vk.com/"] {
	background: url('img/vk_link.png') no-repeat 0 50%;
	padding-left: 20px;
}

/* Значок вк для ссылки на вк */
div#content-column a[href*="https://vk.com/video"] {
	background: url('img/vk_video.png') no-repeat 0 50%;
	padding-left: 20px;
}
div#content-column a[href*="https://vkvideo.ru"] {
	background: url('img/vk_video.png') no-repeat 0 50%;
	padding-left: 20px;
}

/* Значок для скачки из вк */
div#content-column a[href*="https://vk.com/doc"] {
	background: url('img/vk_download.png') no-repeat 0 50%;
	padding-left: 20px;
}
div#content-column a[href*="https://vk.com/s/v1/doc"] {
	background: url('img/vk_download.png') no-repeat 0 50%;
	padding-left: 20px;
}


/* Значок ютуб-видео для ссылки на ютуб-видео */
div#content-column a[href*="https://www.youtube.com/"] {
	background: url('img/youtube_link.png') no-repeat 0 50%;
	padding-left: 20px;
}

/* Значок яндекс диска для скачки оттуда */
div#content-column a[href*="https://disk.yandex.ru/"] {
	background: url('img/yandex_disk.png') no-repeat 0 50%;
	padding-left: 20px;
}

/* Значок википедии */
div#content-column a[href*="https://ru.wikipedia.org"] {
	background: url('img/wikipedia_link.png') no-repeat 0 50%;
	padding-left: 20px;
}
div#content-column a[href*="https://en.wikipedia.org"] {
	background: url('img/wikipedia_link.png') no-repeat 0 50%;
	padding-left: 20px;
}


/* Стрелочка для ссылок на скачку */
div#content-column a.download {
	background: url('img/download_link.png') no-repeat 0 80%;
	padding-left: 20px;
}

/* Разрешаем переносить ссылки на другую строку, убираем постоянное подчёркивание */
div#content-column a {
	color: #0000EE;
	display: inline;
	word-wrap: break-word;
	text-decoration: none;
}
/* Разрешаем подчёркивание, но делаем его через border-bottom, чтобы подчеркнуть и картинку */
div#content-column a:hover {
	border-bottom: 2px solid #0000EE;
}
div#content-column a:visited {
	color: #551A8B;
}
div#content-column a:hover:visited {
	border-bottom: 2px solid #551A8B;
}
div#content-column a:active {
	color: #FF0000;
}
div#content-column a:hover:active {
	border-bottom: 2px solid #FF0000;
}


div#content-column *:target {
	background-color: #72aaea;
}

div#content-column *.error {
	background-color: red;
}

/* ============== Навигация под видео ================= */

div#content-column div.video-navigation {
	margin: 0px;
	padding: 5px;
	background: black;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	overflow: hidden;
}

div#content-column div.video-navigation a {
	display: inline;
	word-wrap: break-word;
	color: inherit;
	text-decoration: none;
	background: none;
	padding-left: 0px;
}

div#content-column div.video-navigation a,
div#content-column div.video-navigation a:hover,
div#content-column div.video-navigation a:visited,
div#content-column div.video-navigation a:active {
	background: none;
	padding-left: 0px;
	display: inline;
	word-wrap: break-word;
	color: inherit;
	text-decoration: none;
	border-bottom: 0px;
	display: flex;
}

div#content-column div.video-navigation a:hover {
	background: none;
	padding-left: 0px;
	color: #FFFFE0;
	display: flex;
}


div#content-column div.video-navigation div {
	margin: 0px 5px;
	padding: 0px;
	display: flex;
}

div#content-column div.video-navigation div.hidden {
	visibility: hidden;
}

div#content-column div.video-navigation a {
	background: none;
	padding-left: 0px;
	margin: 0;
	padding: 0;
	display: flex;
}

div#content-column div.video-navigation a[href=""] {
	visibility: collapse;
}

div#content-column div.video-navigation img {
	margin: auto 5px;
	padding: 0px;
	width: 32px;
	cursor: pointer;
}







/* Название и дата видео */
div#content-column div.video-caption-container {
	margin-top: 15px;
	margin-bottom: 5px;
}

/* Название */
div#content-column div.video-caption-container > h1 {
	margin-top: 0;
	margin-bottom: 2px;
	text-align: left;
}
/* Дата */
div#content-column div.video-caption-container > time {
	display: block;
	text-align: right;
	font-size: 12pt;
	font-weight: bold;
}


/* === Вещи для колонки со списком видео справа === */

/* Срубаем декорации ссылок */
#right-column a.text:active,
#right-column a.text:hover,
#right-column a.text,
#right-column a {
	text-decoration: none;
	color: inherit;
}

/* Контейнер для одного видео */
div.video-preview {
	width: 100%;
	height: 104px;
	padding: 4px;
	line-height:18pt;
	font-size: 14pt;
	overflow: hidden;
	margin: 2px;
	margin-bottom: 5px;
	border-radius: 15px;
}

/* Но при наведении пускай меняется фон */
#right-column a:hover div.video-preview {
	background-color: #FFF8DC;
}

/* Выделяем текущее видео*/
div#current-video {
	background-color: #ffe57d;
}

/* Превьюшка */
div.video-preview img {
	float: left;
	margin-right: 6px;
	height: 94;
	width: 168;
	border-radius: 15px;
	border: 1px solid white;
}

/* Тексты */
div.video-preview > div {
	height: 100%;
	overflow: hidden;
	/*display: flex;  Если раскаментить, дата будет внизу*/
	/*flex-direction: column; Если раскаментить, дата будет внизу*/
	justify-content: space-between;
	position: relative;
}

/* Название */
div.video-preview div.caption {
	font-weight: bold;
}

/* Дата */
div.video-preview div.date {
	font-size: 12pt;
	font-style: italic;
}



/* Footer */
div.footer {
	background-color: #f1f1f1;
	padding: 10px;
	text-align: center;
}
div.footer span {
	margin-left: 50px;
}
div.footer span a {
	margin-right: 10px;
}



/* Перенос колонок для маленьких экранов */
@media (max-width: 600px) {
	#content-column, #right-column {
		width: 100%;
	}
}