/* DEFAULTS */
a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 {
	margin: 0 0 20px;
	text-transform: uppercase;
	font-size: 20px;
}

p {
	font-size: 14px;
	line-height: 1.5;
}

input {
	font-size: 14px;
	padding: 10px;
	width: 300px;
	text-align: center;
	margin-top: 3px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #f6f6f6;
}

button {
	background-color: #009ee0;
	color: #fff;
	border: 0;
	padding: 10px 20px;
	font-size: 15px;
	text-transform: uppercase;
	margin-top: 10px;
}

body {
	background-color: #666;
	font-family: arial, helvetica, sans-serif;
	font-size: 15px;
	margin: 0;
}

/* MIN/MAX-WIDTH */
header, main, footer {
	margin: 0 auto;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	header, main, footer {
		max-width: 150vh;
		min-width: 65%;
	}
}

/* HEADER */
header {
	background: #fff;
	padding: 10px 20px;
	height: 100px;
}

header ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

header ul li {
	text-align: right;
	padding: 3px 0;
}

header ul a {
	display: inline-block;
	padding-right: 20px;
	position: relative;
	opacity: 0.5;
	font-size: 13px;
}

header ul a:hover {
	text-decoration: none;
	opacity: 1;
}

header ul a:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 15px;
	height: 100%;
	background-size: contain;
	background-position: 100% 50%;
	background-repeat: no-repeat;
}

header ul a.logout:before {
	background-image: url('./logout.svg') ;
}

header ul a.hyperlink {
	background: #009ee0;
	color: #fff;
	opacity: 1;
	border: 5px solid #009ee0;
	border-width: 5px 8px;
	border-radius: 5px;
	font-size: 15px;
}

header ul a.hyperlink:before {
	background-image: url('./hyperlink.svg') ;
}

@media (max-width: 575px) {
	header ul {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	header ul li {
		padding: 5px;
	}
}

@media (min-width: 576px) {
	header {
		height: 50px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}

/* HEADER LOGO */
#logo {
	text-align: center;
}

#logo img {
	width: 218px;
	height: 41px;
}

@media (min-width: 576px) {
	header {
		height: 80px;
	}
	#logo img {
		width: 319px;
		height: 60px;
	}
}

/* MAIN */
main {
	background-color: #fff;
}

/* FOOTER */
footer {
	padding: 20px;
	background: #fff;
}

/* FOOTERNAV */
footer {
	background-color: #009ee0;
	color: #fff;
	box-shadow: 0 10px #009ee0;
	text-align: center;
}

footer nav ul {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	list-style-type: none;
}

footer nav li + li {
	margin-left: 10px;
	padding-left: 10px;
	border-left: 1px solid rgba(255, 255, 255, 0.5);
}

footer p {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 576px) {
	footer {
		padding: 0 20px;
		height: 60px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	footer nav ul {
		justify-content: flex-start;
	}
	footer p {
		margin: 0;
	}
}

/* WOWZA */
#wowza {
	overflow: hidden;
	width: 100%;
	position: relative;
}
#wowza:before {
	content: '';
	display: block;
	padding-top: 56.25%;
}
#wowza_player, #wowza_player-Container {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* CHAT */
#chat {
	position: relative;
}
#chat:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 100%;
	height: 100%;
	width: 5px;
	background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}
#chat iframe {
	width: 100%;
	height: 100%;
	min-height: 400px;
	vertical-align: middle;
}

/* TED */
#ted {
	position: relative;
}
#ted:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 5px;
	width: 100%;
	background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}
#ted iframe {
	vertical-align: middle;
	min-height: 300px;
}

#poll {
	background-color: #f0f0f0;
}

@media (min-width: 576px) {
	#ted iframe {
		min-height: 400px;
	}
}

@media (min-width: 1200px) {
	#ted {
		min-height: calc(100vh - 80px - 0.75 * min(100vw, 125vh) / 16 * 9 - 60px - 1px);
	}
	main.grid {
		display: grid; 
		grid-template-columns: 75% 25%; 
		grid-template-rows: auto auto; 
		grid-template-areas: 
			"wowza wowza"
			"chat chat"; 
	}
}

/* GRID */
#wowza { grid-area: wowza; }
#videojs { grid-area: wowza; }
#chat { grid-area: chat; }
#ted { grid-area: ted; }
#question { grid-area: question; }
#breakout { grid-area: breakout; }

/* LOGIN */
#login {
	text-align: center;
	padding: 40px 0;
	box-sizing: border-box;
	min-height: calc(100vh - 80px - 60px);
}

/* FORM */
form .error {
	font-size: 13px;
	color: #c00;
	margin: -15px 0 15px;
}

/* THEO PLAYER */

#wowza .video-js .vjs-big-play-button {
	background-color: rgba(0, 0, 0, 0.5) !important;
	opacity: 1 !important;
	height: 3em;
	margin: 0;
	border-radius: 50%;
	border: 0;
	transform: translate(-50%, -50%);
}

#wowza .video-js .vjs-big-play-button::after {
	background: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2093.361%20105.96%22%3E%3Cpath%20d%3D%22M90.352%2047.768c4.012%202.316%204.012%208.107%200%2010.424L49.69%2081.669%209.027%20105.145C5.015%20107.462%200%20104.566%200%2099.933L0%2052.98%200%206.027c0-4.633%205.015-7.528%209.027-5.212L49.69%2024.292%2090.352%2047.768z%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E') no-repeat center center;
	opacity: 1 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	transform: scale(0.4) translateX(10%);
}

#wowza .video-js .vjs-big-play-button .vjs-icon-placeholder {
	line-height: 3em;
}

#wowza .video-js .vjs-quality-selector {
	width: auto;
}

#wowza .theo-big-play-button-svg-container {
	display: none;
}

/* VIDEO JS */

#videojs {
	position: relative;
}

#videojs::before {
	content: '';
	display: block;
	padding-top: calc(100% / 16 * 9);
}

#videojs .video-js {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#videojs .vjs-chapters-button .vjs-menu {
	width: 23.5rem;
    left: -16rem;
}

#videojs .vjs-chapters-button .vjs-menu .vjs-menu-content {
	max-height: none;
}

#videojs .vjs-chapters-button .vjs-menu li {
	text-transform: none;
}

#chapters {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#chapters li {
	padding: 1rem;
	display: grid;
	grid-template-columns: 1fr 3fr;
	column-gap: 16px;
	border-top: 1px solid #ccc;
	cursor: pointer;
}

#chapters li.active {
	background: linear-gradient(90deg, rgba(128,207,240,1) calc(100% * var(--progress)), rgba(191,231,247,1) calc(100% * var(--progress)));
}

#chapters h3 {
	font-size: 15px;
	line-height: 1.2;
	margin: 0 0 6px;
	font-weight: normal;
}

#chapters img {
	width: 100%;
	height: auto;
	vertical-align: middle;
}

#chapters time {
	font-size: 12px;
	display: block;
	text-align: right;
	color: #009ee0;
}

/* VIDEO JS MARKER */

#videojs .vjs-marker {
	position: absolute;
	background-color: #009ee0;
	top: 0;
	left: calc(100% * var(--position) - 3px);
	height: 100%;
	width: 6px;
}

#breakout {
	color: #666;
	display: flex;
	align-items: center;
	/* justify-content: center; */
	padding: 1rem 2rem;
	flex-direction: column;
	text-align: center;
}

#breakout p:first-child {
	margin-bottom: 0;
}

#breakout p:first-child + p {
	margin-top: 0;
}

#breakout a {
	display: inline-block;
	background-color: #009ee0;
	padding: 0.5rem 1rem 0.625rem;
	text-decoration: none;
	color: #fff;
	border-radius: 0.5rem;
}

#breakout a::before {
	content: '»';
	padding-right: 0.5rem;
}

@media (min-width: 1200px) {
	main.grid {
		grid-template-areas: 
			"wowza question"
			"wowza breakout"
			"poll breakout"
	}
	#chapters {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		overflow: auto;
	}
	#chapters li:hover {
		color: #fff;
		background: #009ee0;
	}
	#chapters li:hover time {
		color: #fff;
	}
	#breakout {
		background-color: #f0f0f0;
	}
}
