#livestream-page,
#livestream-page .livestream-layout {
	height: 100%;
}

#livestream-page .livestream-setting-link {
	cursor: pointer;
	font-size: 3em;
	color: black;
	position: absolute;
	top: 0;
	right: calc(50% - 10px);
	z-index: 100;
	background-color: #F8F8F8;
	height: 0;
	transition: height 0.5s;
	overflow: hidden;
}

#livestream-page .livestream-setting-link.max {
	right: 30px;
}

#livestream-page .livestream-setting-link.chat.max {
	right: 30%;
}

#livestream-page.hoverable .livestream-setting-link:hover {
	background-color: #eff6f9;
	cursor: pointer;
}

#livestream-page.hoverable:hover .livestream-setting-link {
	height: 80px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	border: 1px solid #ddd;
	border-top: none;
}

#livestream-page .livestream-setting-link i.fa-th-large {
	padding: 20px;
}

#livestream-page .livestream-layout-stream {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

#livestream-page .livestream-layout-stream.left {
	right: 50%;
}

#livestream-page .livestream-layout-stream.right {
	left: 50%;
}

#livestream-page .livestream-layout-stream.top {
	bottom: 50%;
}

#livestream-page .livestream-layout-stream.bottom {
	top: 50%;
}

/*****************************/
/*** layout                ***/
/*****************************/

/* layout with 2 or 4 livestreams */
#livestream-page .livestream-layout.small .livestream-component .livestream-select-container button {
	font-size: 1em;
}

#livestream-page .livestream-layout.small .livestream-component .video-container .loading {
	font-size: 2em;
}

#livestream-page .livestream-layout.small .livestream-component .video-container .stream-label {
	font-size: 2em;
}

#livestream-page .livestream-layout.small .livestream-component .video-container scoreboard-play {
	transform-origin: top left;
	transform: scale(0.6);
}

/*****************************/
/*** settings dialog       ***/
/*****************************/

#livestream-page .livestream-settings-dialog .modal-body {
	padding-bottom: 0;
}

#livestream-page .livestream-settings-dialog .livestream-layout-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#livestream-page .livestream-settings-dialog .livestream-layout-item {
	width: 48%;
	padding-bottom: 20%;
	margin-bottom: 4%;
	position: relative;
}

#livestream-page .livestream-settings-dialog .livestream-layout-item {
	border: 1px solid #ddd;
}

#livestream-page .livestream-settings-dialog .livestream-layout-item:hover {
	cursor: pointer;
	background-color: #F8F8F8;
	box-shadow: 0 0 5px 5px #428bca;
}

#livestream-page .livestream-settings-dialog .livestream-layout-item.active {
	border: 3px solid black;
}

#livestream-page .livestream-settings-dialog .livestream-layout-caption {
	text-align: center;
	font-size: 1.2em;
	font-weight: bold;
	padding: 10px;
}

/* calculate offset for caption (height:40px) */

#livestream-page .livestream-settings-dialog .livestream-layout-stream {
	top: 40px;
	left: 4px;
	right: 4px;
	bottom: 4px;
	border: 1px solid #4390E1;
	background-color: #A2CBFA;
}

#livestream-page .livestream-settings-dialog .livestream-layout-stream.top {
	bottom: calc(50% - 16px);
}

#livestream-page .livestream-settings-dialog .livestream-layout-stream.bottom {
	top: calc(50% + 20px);
}

#livestream-page .livestream-settings-dialog .livestream-layout-stream.left {
	right: calc(50% + 2px);
}

#livestream-page .livestream-settings-dialog .livestream-layout-stream.right {
	left: calc(50% + 2px);
}