/* version 20201201 */

* {
	-webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
	margin: 0;
	padding: 0;
	 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}


.show {
	opacity: 1 !important;
}

.show.transparent {
	opacity: 0.2 !important;
}

.blink {
  animation-name: pulse; 
  animation-duration: 0.7s; 
  animation-iteration-count: infinite;
  -webkit-animation-name: pulse; 
  -webkit-animation-duration: 0.7s; 
  -webkit-animation-iteration-count: infinite; 
  
}

@keyframes pulse {
  0% {
    transform: scale(1.0);   
    opacity: 0.5;
  }
  50% {
   transform: scale(1.2);  
    opacity: 1;
  }
  100% { 
    transform: scale(1.0);  
    opacity: 0.5;
  }
}



body {
	padding: 15px;
	height: calc(100vh - 30px) !important;
	overflow: hidden;
	font-family: 'Roboto Condensed', sans-serif;
}


body.parent {
	background: #111;
}
/*
body.parent:after {
	content: "";
	background: url('poker_table_with_light.png');
	position: absolute;
	display:block;
	width:100%;
	height: 100%;
    width: 1px;
    height: 1px;
    bottom: 0;
    right: 0;

}
*/

iframe {
	border: 0;
	overflow: hidden;
	/* box-shadow: 0 0 1px 1px rgba(255,255,255,0.5) inset; */
}

iframe.child_iframe {
	/*border: 2px solid green;*/
	width: 100vw;
	height: 100vh; 
	top: 0;
	left: 0;
	position: absolute;
}

.wrapper, .wrapper .inner {
	
	width: 100vw;
	height: 100vh;
	position: absolute;
	left: 0; 
	top: 0;
	overflow: hidden;
	
}

body.parent .wrapper {
     /* background: url('bg4.jpg'); */
     background-repeat: no-repeat;
     background-position: center;
     background-size: 100% 100%;
}


body.parent .wrapper:before {
    opacity: 0;
    width: 100vw;
	height: 100vh;
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
    transition: opacity 3s;
    content:"";
    background-size: 100% 100%;
}

body.parent.room_lights_off .wrapper:before {
    opacity: 1;
}


.board {
	/*width: calc(80vw - 30px);*/
	width: calc(100vw - 60px);
	height: calc(100vh - 30px);
	position: absolute;
	left: 15px;
	top: 15px;
	/* box-shadow: 0 0 2px 2px #00cb0080; */
	border-radius: 5px;
	
	/* RECORTES 16/09/2020 */
	/*-webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -mos-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;*/
}



.logo {
	width: calc(20vw - 15px);
	height: 100px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate3d(-50%, -50%,0);
	background-image: url('logo.png');
	background-size: auto;
	background-position: center;
	background-repeat: no-repeat;
	padding: 0;
}



body.start .logo {
	right: 15px;
	left: auto;
	top: 15px;
	background-position: top right;
	transform: translate3d(0%, 0%,0);
    display: none !important;
}

body.start .lights {
    display: flex;
    width: 70vw;
    margin-left: 15vw;
    justify-content: space-between;
    position: absolute;
    /* z-index: 2; */
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -mos-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

/*
body.start.rankingsClosed .lights {
	width: 80vw;
	margin-left: 15vw;
}
*/

body.start .lights > div {
    /*border-bottom: 10vw solid #ffb10038;
	border-bottom: 10vw solid #ffffff38;*/
	border-bottom: 10vw solid #00800050;
    border-left: 10vw solid transparent;
    border-right: 10vw solid transparent;
    height: 0;
    width: 5vw;
    filter: blur(2vw);
    margin-top: -1vw;
    animation-name: lights2;
    animation-duration: 0.5s;
    animation-iteration-count: 2;
    -webkit-animation-name: lights2;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-iteration-count: 2;
    margin-top: -2vw;
}




body.start .lights > div:nth-child(2) {
	margin-top: -5vw;
}

/*

body.start .lights > div:nth-child(1) {
	transform: rotate(-35deg);
	margin-left: -5vw;
}

body.start .lights > div:nth-child(3) {
	transform: rotate(35deg);
	margin-right: -5vw;
}

*/



.tabs {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    color: orange;
    padding: 20px 20px 20px 5px; 
	display:none;
}
/*
.fs_button {
	left: auto;
	right: 0;
}
*/

body.start .tabs {
	display:block;
}

.tabs span {
    cursor: hand;
    cursor: pointer;
    border: 2px solid orange; 
    margin: 5px;
    padding: 0px 10px;
    border-radius: 5px;
	font-size: 14px;
    line-height: 26px;
    height: 26px;
    display: inline-block;
}

.tabs iframe {
    height: 30px;
    width: 200px;
    border: 0;
    overflow: hidden;
    margin: 5px;
    position: absolute;
}

.tabs span.active, .tabs span:hover {
    background-color:#ffa50099;
	color: white;
}


body.notfullscreen .fs_button {
	background-image: url('enter_fs.png');
	
}

body.fullscreen .fs_button {
	background-image: url('exit_fs.png');
	background-color:#ffa50099;
}


.fs_button {
	background-size: 100%;
	background-repeat: no-repeat;
	/*border:0 !important;*/
	background-position: center;
	
	

	
}
.fs_button strong {
	opacity: 0;
}




@keyframes lights2 {
  0% {
     opacity: 0;
	  
  }
  25% {
	  opacity: 1;
	  
	  
  }
  50% {
   opacity: 0;
	 
  
  }
  75% { 
      opacity: 1;
	  
	 
  }
   100% { 
      opacity: 1;
	  
	  
  }
}





.rankings {
	width: calc(20vw - 10px);
	height: calc(100vh - 10px);
	position: absolute;
	right: 0px;
	top: 0;
	border: 5px solid black;
	border-radius: 5px;
	/*box-shadow: 0 0 5px 5px rgba(30,30,30,1);*/
	box-shadow: -2px 0 20px -10px rgba(255,255,255,0.7);
	z-index: 9999;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-mos-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
	background: rgba(0,0,0,.95);
}

body.start.rankingsClosed .rankings {
	right: calc(-20vw - 10px);
	/*box-shadow: 5px 0 5px 5px rgba(50,50,50,1);*/
}

/*
.buttons {
	width: calc(20vw - 15px);
	height: calc(20vh - 15px);
	position: absolute;
	right: 15px;
	bottom: 15px;
	display:none;
}

body.start .buttons {
	display:flex;
}


*/



.rankingsToggler {
	display:none;
}

body.start .rankingsToggler {
	display: block;
	/*background: black;*/
	position: absolute;
	height: 120px;
	position: absolute;
	top: 43vh;
	right: 20vw;
	width: 30px;
	/*box-shadow: 0px 0 5px 5px rgba(50,50,50,1);*/
	border-radius: 10px 0 0 10px;
	cursor: hand;
	cursor: pointer;
	z-index: 4;
	-webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -mos-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
	overflow: hidden;
}

body.start .rankingsToggler div {
	display: block;
	background: black;
	position: absolute;
	width: 50px;
	height: 100px;
	position: absolute;
	top: 10px;
	right: 0;
	width: 20px;
	/*box-shadow: 0px 0 5px 5px rgba(30,30,30,1);*/
	box-shadow: -2px 0 16px -5px rgba(255,255,255,1);
	border-radius: 10px 0 0 10px;
	cursor: hand;
	cursor: pointer;
	z-index: 2;
	-webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -mos-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

body.start .rankingsToggler div:after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 15px 10px 15px 0;
	border-color: transparent green transparent transparent;
	display: block;
	position: absolute;
	top: 50%; 
	left: 50%;
	transform: translate3d(-50%,-50%,0) rotate(180deg);
}

body.start.rankingsClosed .rankingsToggler {
	right: 0;
}

body.start.rankingsClosed .rankingsToggler div:after {
	transform: translate3d(-50%,-50%,0) rotate(0deg);
}

/*
body.start.rankingsClosed .board {
	width: calc(100vw - 60px);
}
*/

.edition {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.1vw;
	word-spacing: 0.1vw;
	display: none;
	color: rgba(255,255,255,.5);
	right: 15px;
	left: auto;
	top: 65px;
	background-position: top center;
	position: absolute;
	width: calc(20vw - 15px);
}

.edition span {
	 background: black;
	 padding: 10px;
	 border-radius: 5px;
	 box-shadow: 0px 2px 2px rgba(255,255,255,0.2) inset;
	 margin:auto;
	 display:table;
}

.child_iframe {
	

 -webkit-transition: left 1.5s ease-in-out;
     -moz-transition: left 1.5s ease-in-out;
     -ms-transition: left 1.5s ease-in-out;
     -o-transition: left 1.5s ease-in-out;
     transition: left 1.5s ease-in-out;
}

.child_iframe.hide {
	left: -100vw;
}

body.start .edition {
	 display: block;
	 text-align: center;
}





.autobuttons {
	width: 20vw;
	/* height: 70px; */
	position: absolute;
	bottom: 1vh;
	right: 0px;
	align-items: center;
	display:none;
	/* background: red; */
	/* padding: 20px; */
    z-index: 4;
}


 .autositout {
	/* width: calc(15vmax - 15px); */
	height: 70px;
	position: absolute;
	bottom: 10vh;
	left: 10px;
	align-items: center;
	display:none;
	/* background: red; */
	z-index: 4;
}

.automessage {
    white-space: nowrap;
    font-size: 1.5vmin;
    margin-left: 10px;
    opacity: 0;
    color: white;
    margin-bottom: 5px;
}

 .autobuttons .autobutton, 
 .autositout .autobutton {
background: transparent !important;
	/*border: 3px solid white;*/
	box-shadow: 0 0 0px 3px inset;
	color: white;
	position: relative;
	white-space: nowrap;
	opacity: 0;

 }
body.start .autobuttons,
body.start .autositout {
	display: table;
}


body.start .buttons.show {
	display:flex;
	align-items: center;
	justify-content: space-around;
    z-index: 5;
}

body.start .autobuttons .autoinner, 
body.start .autositout .autoinner {
    display: table;
    /*width: calc(100% + 20px);*/
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    margin: auto;
    /* height: calc(100% - 20px); */
}

body.start .autobuttons .autoinner > div, 
body.start .autositout .autoinner > div  {
    display: table-cell;
    text-align:center;
    padding: 12px;
    border-radius: 5px;
    /* height: calc(100% - 10px); */
    text-transform: uppercase;
    font-weight: bold;
    vertical-align: middle;
    font-size: 0.85em;
}


body.start .autobuttons .autoinner > div.show, 
body.start .autositout .autoinner > div.show   {
	cursor: pointer;
}

body.start .autobuttons .autoinner > div:before, 
body.start .autositout .autoinner > div:before {
   content:" ";
   border: 2px solid;
   width: 1vh;
   height: 1vh;
   display:inline-block;
   line-height: 1vh;
   vertical-align: middle;
   display: inline-block;
   margin-top: 0vh;
   margin-right: 1vh;
   font-size: 1vh;
}

body.start .autobuttons .autoinner > div.active, 
body.start .autositout .autoinner > div.active {
	background: rgba(255,255,255,.2) !important;
}

body.start .autobuttons .autoinner > div.active:before, 
body.start .autositout .autoinner > div.active:before {  
	content:"\02714";
	background: white;
	color: black;
}

.buttons {
	width: 20vw;
	/*height: calc(10vmin - 15px);*/
	position: absolute;
	bottom: 0.5vh;
	right: 0;
	align-items: center;
	display:none;
	padding: 0;
	opacity: 0;
}

.buttons .btn {
    position: relative;
    width: 5vw;
    height: 5vw;
    background: url('btn.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10vw;
    text-align: center;
    color: wheat;
    overflow: hidden;
    perspective: 5vw;
	opacity: 0;
}

.buttons .btn.show {
	cursor: pointer;
}
.buttons .btn span {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate3d(-50%, -50%,0);
    text-transform: uppercase;
    transform-style: preserve-3d;
    transform: translate3d(-50%, -50%,0) /* rotateX(2deg)*/;
    display: block;
    white-space: nowrap;
    font-size: 0.65vw;
    /* font-family: Arial;*/
    color: #555;
    text-shadow: -0.05vw -0.05vw 0.05vw rgba(255,255,255,.2);
    /* font-weight: bold; */
}

.buttons .btn.timer span:first-child {
	
transform: translate3d(-50%, -110%,0) /* rotateX(2deg)*/;
}

.buttons .btn span.button_timer {
    font-size: 1.3vw;
    /* background: red; */
    opacity: 0;
    text-transform: initial;
}

.buttons .btn.timer span.button_timer {
	opacity: 1;
	transform: translate3d(-50%, -20%,0) /*rotateX(2deg)*/;
}

.buttons .btn.green.active {
	background-image: url('btn_green.png');
}
.buttons .btn.blue.active {
	background-image: url('btn_blue.png');
}


.buttons .btn:hover span {
	color: gold;
}

.buttons .btn.active span {
	color: black;
}


.buttons .btn.active:hover span {
	color: white;
}

.buttons .btn.vol {
	background-image: url('voloff.png');
}

.buttons .btn.vol.active {
	background-image: url('volon.png');
}

.buttons .btn.mic {
	background-image: url('micoff.png');
}

.buttons .btn.mic.active {
	background-image: url('micon.png');
}

.buttons .btn.switch {
	background-image: url('switchoff2.png');
	background-size: auto 85%;
	width: 4.2vw;
	height: 4.2vw;
}

.buttons .btn.switch.active {
	background-image: url('switchon2.png');
}





/*-------------*/
@media screen and (max-width: 1280px) {
  .logo {
    background-size: contain;
  }
  .edition {
	  font-size: 9px;
  }
}


/*-------------*/
.controls_iframe {
	display:none;
}


body.controls .controls_iframe {
	display:block;
	width: calc(80vw - 30px);
	/*height: calc(50vh - 30px);*/
	height: calc(10vmin - 15px);
	position: absolute;
	left: 15px;
	bottom: 15px;
	box-shadow: none;
	border:none;
	
}

/* board anclado, con o sin controles, 26 mayo 2020 */
body .board, 
body.controls .board {
	/* height: calc(50vh - 30px); */
	height: calc(93vh - 50px);
}




.big_webcam {
    position: absolute;
    z-index: 2;
    background: red;
    width: 50%;
    height: 50%;
    transform: translate3d(-50%, -100%,0);
    /* top: 50%;
    left: 50%;*/
    top: 0;
    /*left: 45%;*/
	left: 49.5%; 
    display:none;
    opacity: 0;
    -webkit-transition: left 0.5s, top 1s;
    transition: left 0.5s, top 1s;
    /*box-shadow: 0 0 5px 5px rgba(30,30,30,1);*/
    box-shadow: -2px 0 20px -10px rgba(255,255,255,0.7);
    border-radius: 2vh;
    background: rgba(0,0,0,.95);
    color: white;
    text-align: center;
}

body.show_audience .big_webcam {
	left: 53%; 
}




/*
body.rankingsClosed .big_webcam {
    left: 56%;
}
*/

body .big_webcam.show {
	top: 47%;
	transform: translate3d(-50%, -50%,0);
}

body.start .big_webcam {
	display: flex;
	justify-content: center;
	flex-direction: column;
	z-index: 4;
} 


.big_webcam iframe {
	width: 100%;
	height: 100%;
	border: 0;
	overflow: hidden;
}

body.big_webcam_iframe .big_webcam_xl img,
body.big_webcam_iframe .big_webcam_xl video {
    height: 100%;
    margin: auto;
    display: block;
}

body.big_webcam_iframe .big_webcam_xl {
    height: 100%;
}

.cam_video {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 5%;
    /* padding-bottom: 1%; */
}

.cam_video img {
    height: 100%;
    /* border: 5px solid white;*/
    box-shadow: 0 0 20px 2px rgba(0,0,0,.2);
}

.cam_title {
    font-size: 2vh;
    padding-bottom: 3%;
    padding-top: 1%;
}


.loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    z-index: 999;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    text-transform: uppercase;
    color: white;
    opacity: 0;
}


