body {
	background-color: #d16116;
	background: url("/_img/background.png");
	background-size: cover;
	background-position: center;
	height: 100vh;
}

#logo {
	width: 25vw;
	/*min-height: 18vh;*/
}

.flex {
	height: 100%;
	row-gap: 1vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.tv__1__room {
	text-align: center;
	font-size: 4rem;
}

#tv__1__qr {
	min-height: 110px;
	min-width: 110px;
	height: 110px;
	width: 110px;
}

img {
    visibility: hidden;
}

img[src] {
    visibility: visible;
}

/*=== TV - Page 2 - SETUP ===*/
#tv__2__room_code {
	position: fixed;
	bottom: 0px;
	left: 0px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}
#tv__2__room_code img {
	height: 90px;
}
#tv__2__room_code>div {
	padding: 10px;
}

#tv__2__autoplay_msg {
	display: none;
}
#tv__2__autoplay_msg input {
    background-color: #ffffff;
    border: none;
    color: #d16116;
    padding: 8px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

/*=== TV - PAGE 3 - PLAYER ===*/
.tv__3__overlays {
	z-index: 9999;
	position: relative;
}

#tv__3__logo {
    position: fixed;
    top: 17px;
    left: 17px;
    z-index: 999;
    height: 75px;
    width: auto;
    pointer-events: none;
}
#tv__3__player_time_left {
	position: fixed;
	bottom: 20px;
	right: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}
#tv__3__notification {
	position: fixed;
	bottom: 200px;
	left: -460px;
	width: 445px;
	height: 90px;
	padding-right: 10px;
	max-height: 90px;
	overflow: hidden;
	background-image: linear-gradient(45deg, #284580e8, #375791e8);
	border-radius: 10px;
	z-index: 999;
	font-size: 19px;
	line-height: 29px;
	box-shadow: 2px 2px 5px 0px #00000070;
	transition: left 1s;
}
#tv__3__notification.active {
	left: 17px;
}
#tv__3__notification .leftImg {
	float: left;
	margin-right: 10px;
}
#tv__3__notification .leftImg img {
	width: 360px;
}
#tv__3__queue {
    position: fixed;
    /* display: flex; */
    flex-wrap: wrap;
    justify-content: space-between;
    float: right;
    padding: 10px;
    /* left: 0px; */
    right: -650px;
    top: 50px;
    /* width: 99%; */
    width: 600px;
    height: calc(100% - 100px);
    /* max-height: 182px; */
    overflow: hidden;
    margin: 80px 0px;
    margin-right: 0px;
    transition-delay: 1s;
    transition: right 1s;
    z-index: 999;
}
#tv__3__queue.smaller {
	right: 150px;
}
#tv__3__queue .innerBlock:nth-child(1) {
	display: none;
}
#tv__3__queue .innerBlock:nth-child(2) {
	/*height: 130px;
	min-height: 130px;*/
	background-color: #22214d9c;
}
#tv__3__queue .innerBlock:nth-child(2) img {
  animation: rotation 10s infinite linear;
}
#tv__3__queue .innerBlock {
    /* padding: 10px; */
    background-color: #171719f2;
    backdrop-filter: blur(6px);
    /* padding-right: 20px; */
    border-radius: 10px;
    /* min-height: 60px; */
    margin-bottom: 20px;
    position: relative;
    width: 580px;
    height: 70px;
    box-shadow: 2px 2px 5px 0px #00000070;
    display: flex;
    /* flex-basis: 30%; */

}

#tv__3__queue .innerBlock .leftImg {
    float: left;
    margin-right: 10px;
    width: 124px;
    height: 70px;
    /* min-width: 160px; */
    /* min-height: 160px; */
    overflow: hidden;
    border-radius: 10px 0px 0px 10px;
    /* margin-left: 0px; */
    margin-right: 20px;
}
#tv__3__queue .innerBlock .leftImg img {
	height: 70px;
    width: auto;
	/*margin-left: -45px;*/
	/*border-radius: 100px 0px 0px 100px;*/
}
#tv__3__queue .innerBlock .bottomRightText {
	position: absolute;
	bottom: 0;
	right: 0;
	float: right;
	font-style: italic;
}
#tv__3__queue .innerBlock .rightText {
	align-self: center;
	font-size: 18px;
}

#tv__3__players {
	overflow: hidden;
	width: 100%;
}
#tv__3__player_1, #tv__3__player_2 {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 300%; /*This hides the youtube title - magic! https://codepen.io/adamgreenough/pen/bGrgoNb?editors=1100 */
	height: 100%;
	margin-left: -100%;
	transition: top 1s, left 1s;
	z-index: 99;
}

#tv__3__player_1:not(.smaller), #tv__3__player_2:not(.smaller) {
	animation: not-smaller-animation 10s normal forwards;
}
#tv__3__player_1.smaller, #tv__3__player_2.smaller {
	animation: smaller-animation 10s normal forwards;
	pointer-events: none;
}

@keyframes smaller-animation {
	0%		{ opacity: 1; z-index: 99; }
	50%		{ opacity: 1; z-index: 99; }
	99%		{ 			  z-index: 99; }
	100%	{ opacity: 0; z-index: 0; }
}
@keyframes not-smaller-animation {
	0%		{ z-index: 98; }
	50%		{ z-index: 98; }
	99%		{ z-index: 98; }
	100%	{ z-index: 99; }
}