/* RESET */

*, *::before, *::after {
	padding: 0;
	margin: 0;
	border: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

ul, ol, li {
	list-style: none;
}

img {
	vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
	font-size: inherit;
}

html, body {
	height: 100%;
	line-height: 1;
	font-size: 16px;
	background-color: #333;
	color: #fff;
	font-family: "Share Tech Mono", monospace, Arial;
}

/* MAIN */

html, body {
	background-color: #402f2f;
	color: #D4D4D4;
}

body._lock {
	overflow: hidden;
}

a {
	color: #57a2ff;
}

.wrapper {
	min-height: 100%;
}

.header {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	z-index: 10;
	background-color: #402f2f;
}

.header__container {
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	padding: calc(0px + (30 - 15) * ((100vw - 320px) / (1920 - 320))) calc(15px + (40 - 15) * ((100vw - 320px) / (1920 - 320)));
	align-items: center;
	min-height: 70px;
	justify-content: space-between;
}

.header__title{
	font-size: calc(20px + (15 + 15 * 0.7) * ((100vw - 320px) / 1920));	
	font-weight: bold;
}

.menu__title{
	display: none;
}

.menu__icon {
	display: none;
}

.menu__list>li {
	position: relative;
	margin: 0 0 0 20px;
}

.menu__link {
	color: #ff4d4d;
	font-size: calc(20px + (15 + 15 * 0.7) * ((100vw - 320px) / 1920));	
}

.menu__link:hover {
	color: #fff;
}

.menu__link img {
	width: calc(40px + (15 + 15 * 0.7) * ((100vw - 320px) / 1920));
	color: #ff4d4d;
}

.menu__sub-list {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: #333;
	padding: 15px;
	min-width: 200px;
}

.menu__sub-list li {
	margin: 0 0 10px 0;
}

.menu__sub-list li:last-child {
	margin: 0;
}

.menu__sub-link {
	color: #ff4d4d;
	font-size: calc(20px + (15 + 15 * 0.7) * ((100vw - 320px) / 1920));
}

.menu__sub-link:hover {
	color: #fff;
}

.menu__arrow {
	display: none;
}

/* -------------------- */

.sponsors {
	display: none;
}

.block__column {
	display: flex;
	justify-content: space-around;
	padding: 15px;
	flex-wrap: wrap;
	max-width: 100%;
}

.block__item {
	display: flex;
	padding: 10px;
}

.block__item a {
	display: flex;
	align-items: center;
}

.block__item a img {
	width: 100% !important;
	max-width: 300px;
	height: auto;
	vertical-align: middle;
}

/* -------------------- */

body._pc .menu__list>li:hover .menu__sub-list {
	opacity: 1;
	visibility: visible;
	transform: translate(0, 0);
	pointer-events: all;
}

body._touch .menu__list>li {
	display: flex;
	align-items: center;
}

body._touch .menu__link {
	flex: 1 1 auto;
}

body._touch .menu__arrow {
	display: block;
	width: 0;
	height: 0;
	margin: 0 0 0 10px;
	transition: transform 0.3s ease 0s;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 15px solid #ff4d4d;
}

body._touch .menu__list>li a {
	color: #ff4d4d;
}

body._touch .menu__list>li._active .menu__arrow {
	border-top: 15px solid #fff;
}

body._touch .menu__list>li._active .menu__link {
	color: #fff;
}

body._touch .menu__list>li._active .menu__sub-list {
	opacity: 1;
	visibility: visible;
	transform: translate(0, 0);
	pointer-events: all;
}

body._touch .menu__list>li._active .menu__arrow {
	transform: rotate(-180deg);
}

.poster {
	text-align: center;
	margin-top: 70px;
}

.poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page__section {
	display: flex;
	padding: calc(15px + (40 - 15) * ((100vw - 320px) / (1920 - 320)));
	max-width: 100%;
	margin: 0 auto;
}

.page_section_agenda {
	background-color: #544444;
}

.page_section_speakers {
	background-color: #402f2f;
}

.page_section_aftershock {
	background-color: #982d2d;
}

.page_section_ctf {
	background-color: #d4313d;
}

.page_section_footer {
	padding: 30px 15px;
}

.section__image.first {
	text-align: left;
}

.section__image.second {
	text-align: right;
}

.section__text.first, .section__image.first {
	order: 1;
}

.section__text.second, .section__image.second {
	order: 2;
}

.section__text {
	padding: 0 15px;
	flex-basis: 70%;
}

.section__image {
	flex-basis: 30%;
}

.section__image img {
	width: 100%;
	height: auto;
}

.page__title {
	font-weight: bold;
	font-size: calc(50px + (50 + 50 * 0.7) * ((100vw - 320px) / 1920));
	padding-bottom: calc(15px + (30 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.page__text {
	line-height: 150%;
	font-size: calc(14px + (7 + 7 * 0.7) * ((100vw - 320px) / 1920));
}

.page__text h2 {
	font-weight: 700;
	font-size: calc(18px + (12 + 12 * 0.7) * ((100vw - 320px) / 1920));
	padding: calc(15px + (20 - 15) * ((100vw - 320px) / (1920 - 320))) 0;
}

.page__text .prelude::before {
	content: ">>> ";
}

.text.red {
	color: #ff3543;
}

.presentation_items .item_time {
	display: inline-block;
}

.presentation_items .item_time::after {
	content: "->";
}

.presentation_items .item_text {
	display: inline-block;
}

.item_title .speaker {
	color: #ffb3b9;
}

.item_description {
	font-size: calc(14px + (4 + 4 * 0.7) * ((100vw - 320px) / 1920));
	color: #4fe6ff;
	line-height: 110%;
	padding: calc(10px + 0 * ((100vw - 320px) / (1920 - 320))) 0;
}

.embed_video .title {
	padding: 10px 0;
	font-weight: 700;
}

.embed-container {
	position: relative;
	padding: 20%;
	width: 70%;
	height: 0;
	overflow: hidden;
}

.embed-container iframe, .embed-container object, .embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ctf_item span {
	color: #000;
	font-weight: 700;
}

.ctf_item .title::before {
	content: "[+] ";
	color: #D4D4D4;
	font-weight: 100;
}

.ctf_item .title::after {
	content: ":: ";
}

.menu__list {
	display: flex;
	align-items: center;
}
.menu__list>li {
	padding: 10px 0;
}
.menu__sub-list {
	transform: translate(0px, 10%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.3s ease 0s;
}

@media (max-width: 820px) {
	.header__title{
		display: block;
		z-index: 1;
	}
	.menu__list {
		display: block;
	}
	.menu__icon {
		z-index: 5;
		display: block;
		position: relative;
		width: 30px;
		height: 16px;
		cursor: pointer;
	}
	.menu__icon span, .menu__icon::before, .menu__icon::after {
		left: 0;
		position: absolute;
		height: 10%;
		width: 100%;
		transition: all 0.3s ease 0s;
		background-color: #fff;
	}
	.menu__icon::before, .menu__icon::after {
		content: "";
	}
	.menu__icon::before {
		top: 0;
	}
	.menu__icon::after {
		bottom: 0;
	}
	.menu__icon span {
		top: 50%;
		transform: scale(1) translate(0px, -50%);
	}
	.menu__icon._active span {
		transform: scale(0) translate(0, -50%);
	}
	.menu__icon._active::before {
		top: 50%;
		transform: rotate(-45deg) translate(0, -50%);
	}
	.menu__icon._active::after {
		bottom: 50%;
		transform: rotate(45deg) translate(0, 50%);
	}
	.menu__body {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.9);
		padding: 100px 30px 30px 30px;
		transition: left 0.3s ease 0s;
		overflow: auto;
	}
	.menu__body._active {
		left: 0;
	}
	.menu__body::before {
		content: "";
		position: fixed;
		width: 100%;
		top: 0;
		left: 0;
		height: 70px;
		background-color: #402f2f;
		z-index: 2;
	}
	.menu__list>li {
		margin: 0 0 45px 0;
		flex-wrap: wrap;
	}
	.menu__list>li:last-child {
		margin-bottom: 0;
	}
	.menu__list>li._active .menu__sub-list {
		display: block;
	}
	.menu__link {
		font-size: 42px;
		font-weight: 700;
	}
	.menu__sub-list {
		position: relative;
		background-color: #fff;
		flex: 1 1 100%;
		margin-top: 20px;
		display: none;
	}
	.menu__sub-link {
		font-size: 38px;
		color: #000;
	}
	.sponsors {
		display: block;
	}
	.page__section {
		flex-direction: column;
	}
	.section__text, .section__image {
		flex-basis: 100%;
	}
	.section__image.first, .section__image.second {
		order: 1;
		margin-bottom: 15px;
	}
	.section__text.first, .section__text.second {
		order: 2;
	}
	.embed-container {
		padding: 27%;
		width: 100%;
	}
}