/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Layout */

@font-face {
  font-family: 'Gordita-Medium';
  src: url('../assets/fonts/3AE4E7_0_0.eot');
  src: url('../assets/fonts/3AE4E7_0_0.eot?#iefix') format('embedded-opentype'),
  url('../assets/fonts/3AE4E7_0_0.woff2') format('woff2'),
  url('../assets/fonts/3AE4E7_0_0.woff') format('woff'),
  url('../assets/fonts/3AE4E7_0_0.ttf') format('truetype');
}

* {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: 'Gordita-Medium';
	color: white;
}

.app-wrapper {
  width: 100%;
}

.container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.footer-wrapper {
	background: white;
}

/* Event Container */
.event .container {
	padding: 96px 40px 72px;
}

.event .stream-wrapper {
	position: relative;
	overflow: hidden;
	height: 0;
	background-color: transparent;
	padding-bottom: 56.25%;
	margin-top: 48px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: rgba(255,255,255,.1);
}

.event .stream-wrapper > div,
.event .stream-wrapper iframe {
	position: absolute;
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,.1);
}

.event .stream-wrapper.active > div,
.event .stream-wrapper.active iframe{
	display: block;
}

.event .stream-wrapper::before {
	display: block;
	position: absolute;
	top: calc(50% - 28px);
	width: 100%;
	/* content: 'Трансляция ещё не началась'; */
	content: 'Трансляция завершена';
	font-size: 24px;
	line-height: 56px;
	text-align: center;
	color: rgba(255,255,255,.48);
}

.event .stream-wrapper.active::before {
	display: none;
}

.sponsor-wrapper {
	display: flex;
	justify-content: space-between;
	margin-top: 48px;
}

.sponsor-wrapper div {
	width: calc(100% - 220px);
}

.sponsor-wrapper div a.button {
	display: inline-block;
	font-size: 18px;
	line-height: 20px;
	color: white;
	text-decoration: none;
	background: rgba(255,255,255,.09);
	border-radius: 16px;
	padding: 24px 40px;
	margin-top: 24px;
  transition: all .4s ease;
}

.sponsor-wrapper div a.button:hover {
  transform: scale(1.05);
}

.sponsor-wrapper div a.button:active {
  transform: scale(0.95);
}

.sponsor-wrapper p {
	font-size: 20px;
  line-height: 30px;
  color: white;
}

/* Promo Container */
.promo {
	padding: 120px 40px 0;
}

.promo .content {
	text-align: center;
}

a.link {
  display: inline-block;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  text-decoration: none;
  color: white;
  margin-right: 24px;
}

a.link:last-of-type {
	margin-right: 0;
}

a.link:hover {
  text-decoration: underline;
}

a.link.external::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background: url(../assets/images/arrow_right_up.svg);
  margin-left: 4px;
  vertical-align: -18%;
}

.promo-image {
	width: 100%;
	max-width: 1160px;
	height: 436px;
	background: url(../assets/images/promo-desktop.png);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center bottom;
	margin: 56px auto 0;
}

/* Posts */
.posts {
	background: white;
	border-radius: 32px 32px 0 0;
}

.posts .container {
	padding: 80px 40px 0;
}

.posts .container h1 a {
	color: black;
	text-decoration: none;
}

.posts .container h1 a:hover {
	text-decoration: underline;
}

.postsGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 16px;
	padding: 24px 0 40px;
}

.postCard {
	display: inline-block;
  position: relative;
	font-family: 'Roboto', sans-serif;
	height: 360px;
  overflow: hidden;
  background-color: #F3F3F3;
  border-radius: 9px;
  z-index: 1;
}

.postCard-wrapper {
	display: block;
	width: 100%;
  height: 100%;
	background: linear-gradient(-180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
}

.postCard-thumbnail {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	z-index: -1;
	transition: all 0.3s ease-in-out;
}

.postCard:hover .postCard-thumbnail {
	opacity: .9;
	transform: scale(1.015);
}

.postCard-content {
	position: absolute;
	bottom: 0;
	color: white;
	padding: 0 40px 36px;
}

.postCard-content h2 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.2px;
  line-height: 24px;
	margin-bottom: 8px;
}

.postCard-content p {
	font-weight: 400;
	font-size: 16px;
	color: #BBBBBB;
}

@media only screen and (max-width: 899px) {
	.postsGrid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 720px) {
	.posts {
		border-radius: 0;
	}

	.posts .container {
		padding: 80px 40px 0;
	}

	.posts .container h1 {
		text-align: left !important;
	}
}

@media only screen and (max-width: 599px) {
	.posts .container {
		padding: 56px 18px 0;
	}

	.postsGrid {
		padding: 16px 0;
	}

	.postCard {
		height: 100vw;
		box-shadow: 0px 10px 24px rgba(0,0,0,.2);
	}

	.postCard-content {
		padding: 0 25px 25px;
	}
}

/* Typography */
h1 {
  font-weight: 500;
  font-size: 48px;
  line-height: 56px;
}

.event h1 {
	margin-bottom: 12px;
}

.promo h1 {
	margin-bottom: 48px;
}

p.timestamp {
	font-weight: 500;
	font-size: 24px;
	line-height: 32px;
	letter-spacing: 0.01em;
	color: #7A7A7A;
}

p.timestamp a {
	color: #7A7A7A;
}

@media only screen and (max-width: 1024px) {
	.promo-image {
		height: 300px;
	}
}

@media only screen and (max-width: 720px) {
	/* Event Container */
	.event .container {
		padding: 56px 20px 40px;
	}

	/* .event .stream-wrapper,
	.sponsor-wrapper {
		display: none;
	} */

	/* Promo Container */
	.promo {
		padding: 56px 0 0 20px;
		border-radius: 24px 24px 0 0;
	}

	.promo .content {
		padding-right: 20px;
	}

	a.link {
	  font-size: 18px;
	  margin-right: 20px;
	}

	.promo-image {
		height: 380px;
		background: url(../assets/images/promo-desktop.png);
		background-size: 1011px 380px;
		background-position: left bottom;
		margin: 56px auto 0;
	}

	/* Typography */
	h1 {
	  font-size: 32px;
	  line-height: 40px;
		letter-spacing: -0.2px;
	}

	.event h1 {
		margin-bottom: 4px;
	}

	.promo h1 {
		font-size: 24px;
		line-height: 32px;
		margin-bottom: 24px;
	}

	p.timestamp {
		font-size: 16px;
		line-height: 24px;
	}
}


/* EVENTS THEMES */
/* -- Apple September 2023 --*/
body#september-2023 {
	background: black;
}

body#september-2023 .event .stream-wrapper {
	background-image: url(../assets/images/thumbnails/september-2023.jpg);
}

body#september-2023 .promo {
	background: #171717;
}

/* -- Apple September 2020 -- */
body#september-2020 {
	background: black;
}

body#september-2020 .promo {
	background: #171717;
}

/* -- Apple October 2020 -- */
body#october-2020 {
	background: #0D1624;
}

body#october-2020 header {
	background: #B96B37;
	border-bottom: 1px solid rgba(255,255,255,.18);
}

body#october-2020 .event {
	background: linear-gradient(180deg, #B96B37 0%, #0D1624 100%);
}

body#october-2020 .event .stream-wrapper {
	background-image: url(../assets/images/thumbnails/october-2020.jpg);
}

body#october-2020 p.timestamp {
	color: rgba(255,255,255,.48);
}

body#october-2020 .promo {
	background: #0A111D;
}

@media only screen and (max-width: 720px) {
	body#october-2020 header {
		background: #0D1624;
		border-bottom: 1px solid rgba(255,255,255,.09);
	}

	body#october-2020 .event {
    background: #0D1624;
	}
}

/* -- Apple November 2020 -- */
body#november-2020 {
	background: #030031;
}

body#november-2020 header {
	height: 80px;
	margin-bottom: -80px;
	overflow: auto;
	border-bottom: 1px solid rgba(255,255,255,0.18);
}

body#november-2020 .event {
	padding-top: 80px;
	background: conic-gradient(from 180deg at 50% 50%, #030031 -0.36deg, #030031 56.05deg, #7608B3 68.71deg, #C310BF 91.63deg, #FF783E 180.85deg, #FAA243 226.34deg, #35C0F9 256.1deg, #35C0F9 270.73deg, #003980 287.24deg, #003176 297.9deg, #030031 304.79deg, #030031 359.64deg, #030031 416.05deg);
}

body#november-2020 p.timestamp {
	color: rgba(255,255,255,.48);
}

body#november-2020 .promo {
	background: #030031;
}

@media only screen and (max-width: 720px) {
	body#november-2020,
	body#november-2020 .event {
    background: #02001B;
	}
}

/* -- Apple April 2021 -- */
body#april-2021 {
	background: #EBEBEB;
}

body#april-2021 h1,
body#april-2021 h1 {
	color: black;
}

body#april-2021 a.link {
	color: #5C5C5C;
}

body#april-2021 a.link.external::after {
  background: url(../assets/images/arrow_right_up_dark.svg);
}

@media only screen and (max-width: 720px) {
	body#april-2021 h1,
	body#april-2021 p.timestamp {
		text-align: center;
	}

	body#april-2021 .promo {
		background: #E0E0E0;
	}
}
