/* GAME BOARD */
@import url(korinna-fonts.css);

body{
	margin: 0 !important;
	font-family: 'Korinna', sans-serif;
	text-shadow: var(--jeopardy-text-shadow);
}
#game_container
{
	top: 0px;
    right: 0px;
    background: rgba(189, 189, 189, 1);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
}

#game_container
{
    display:flex;
}

#login_container{
    width: 100%;
    height: 100%;
    z-index: 97;
    position:absolute;
}

/* player login */
.login
{
	top: 50%;
    transform: translateY(-50%);
    position: relative;
    margin: auto;
    width: 300px;
}

#player_login
{
	text-align: center;
}

.player_name_bubbles {
	height: 33.33%;
	bottom: 0;
	position: absolute;
	width: 100%;
}

.player_name_bubbles div {
	margin-left: 100px;
	margin-right: 100px;
	display: inline-block;
	width: 400px;
	height: 400px;
	background: #3F51B5;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	bottom: 80px;
}

.player_name_bubbles h2 {
	font-size: 50px !important;
	color: white;
	position: relative !important;
}

#game_board_container
{
	flex: 1 1 auto;
	min-width: 0;
	width: 85%;
	max-width: 85%;
	box-sizing: border-box;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#player_board
{
	flex: 0 0 15%;
	min-width: 0;
	width: 15%;
	max-width: 15%;
	z-index: 11;
	background: white;
	display: flex;
	flex-direction: column;
	min-height: 0;
	box-sizing: border-box;
}

.host-round-timer {
	flex: 0 0 auto;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 6px 12px;
	text-align: center;
	background: #000;
	color: #fff;
	border-bottom: 4px solid #9575cd;
}

.host-round-timer__label {
	font-family: 'Korinna', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
	margin-bottom: 6px;
	line-height: 1.1;
}

.host-round-timer__value {
	font-family: 'Korinna', sans-serif;
	font-weight: 900;
	font-size: 40px;
	line-height: 1;
	color: #ffea00;
	text-shadow: var(--jeopardy-text-shadow);
}

.host-round-timer.host-round-timer--low .host-round-timer__value {
	color: #ff7043;
}

.host-round-timer.host-round-timer--ended .host-round-timer__value {
	color: #9e9e9e;
}

#airdate_screen{
	background-color: black;
	position: absolute;
	width: 100%;
	height: 100%;
}

#airdate_text{
	display: flex;
	color: white !important;
	font-family: 'Korinna', sans-serif;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	padding: 0% 10% 0% 10%;
    margin: 0;
    font-size: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Host board + player clue-picker (#tempGAME): fixed grid so all 6 columns stay in view */
#game_board,
#tempGAME > table {
	height: 100%;
	width: 100%;
	max-width: 100%;
	background: white;
	table-layout: fixed;
	border-collapse: collapse;
	box-sizing: border-box;
}

#game_board td,
#game_board th,
#tempGAME > table td,
#tempGAME > table th {
	width: 16.666%;
	max-width: 16.666%;
	box-sizing: border-box;
	text-align: center;
	color: #ffea00;
	background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0;/*#3f51b5;*/
	font-family: 'Korinna', sans-serif;
	font-weight: 900;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: anywhere;
	hyphens: auto;
	padding: 2px 4px;
	vertical-align: middle;
}

#game_board tr td,
#tempGAME > table tr td {
	font-size: 95px;
	text-shadow: var(--jeopardy-text-shadow);
}

/* Dollar cells: keep whole amounts on one line (avoid "100" / "0" on narrow viewports) */
#game_board tr:not(:first-child) td,
#tempGAME > table tr:not(:first-child) td {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
	white-space: nowrap;
}
/*linear-gradient(#26A69A, #80CBC4 );*/

#game_board th,
#tempGAME > table th {
	color: white;
}

/* Fixed-height category row; per-title size set in JS (board_category_headers.js) */
#game_board tr:first-child,
#tempGAME > table tr:first-child {
	height: clamp(72px, 12vh, 200px);
}

#game_board tr:first-child th,
#tempGAME > table tr:first-child th {
	position: relative;
	color: white;
	font-size: 0;
	line-height: 0;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

#game_board tr:first-child th .category-header-text,
#tempGAME > table tr:first-child th .category-header-text {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	font-size: 1rem;
	min-height: 0;
}

#game_board tr:first-child th .category-header-text__inner,
#tempGAME > table tr:first-child th .category-header-text__inner {
	/*
	  Shrink-wrap to the text (like on-air Jeopardy): short titles grow until they hit
	  an edge. width:100% block made scrollWidth === cell width so JS could only
	  constrain by height and titles stayed tiny.
	*/
	display: inline-block;
	max-width: 100%;
	max-height: 100%;
	min-width: 0;
	vertical-align: middle;
	box-sizing: border-box;
	line-height: 1.06;
	text-align: center;
	font-size: 50px;
	font-weight: 900;
	font-family: 'Korinna', sans-serif;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
	white-space: normal;
	overflow: hidden;
	text-shadow: var(--jeopardy-text-shadow);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

@supports (text-wrap: balance) {
	#game_board tr:first-child th .category-header-text__inner,
	#tempGAME > table tr:first-child th .category-header-text__inner {
		text-wrap: balance;
	}
}

#players_table{
	font-family: 'Korinna', sans-serif;
	font-weight: 700;
	text-align: center;
	font-size:14px;
	width:100%;
	flex: 1 1 auto;
	min-height: 0;
	empty-cells: show;
	border-collapse: collapse;
}

#players_table tr.name 
{
	background-color:#9575cd;
	color:white;
	font-size: 68px;
	height:12%;
}

#players_table tr.score 
{
	background-color:black;
	color:white;
	height:80px;
	font-size: 70px;
}

/* WAITING / ACTIVE — no heavy shadow (inherits body --jeopardy-text-shadow otherwise) */
#players_table tr[id^="active_indicator_"] td {
	text-shadow: none;
}

/* quesiton field  for client player screen*/
#tempGAME
{
	top: 0px;
    right: 0px;
    background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0;/* #3f51b5;*/
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*the question field*/
#question_field{
	top: 0px;
    right: 0px;
    z-index: 10;
    background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0; /*#3f51b5;*/
    position: fixed;
    width: 85%;
    font-size: 65px;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;              /* establish flex container */
    flex-direction: column;     /* stack flex items vertically */
    justify-content: center;    /* center items vertically, in this case */
    align-items: center;  
    overflow: hidden;
	clear:both;
}

#question_field h2{
	font-family: 'Korinna', sans-serif;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	padding: 0% 10% 0% 10%;
    margin: 0;
	color: white;
	text-align:center;
}

#question_field canvas{
	top:80%;
	position:absolute;
}
/*message overlay*/
#message_overlay{
	top: 0px;
    right: 0px;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 98;
    display:flex;
    align-items: center;
    justify-content: center;
}


#message_overlay li{
	font-family: 'Korinna', sans-serif;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	font-size: 70px;
	padding: 0% 10% 0% 10%;
    margin: 0;
	color: white;
	text-align:center;
}

#master_container{
	position:fixed;
	width:100%;
	height:100%;
}
#master_container #message_overlay
{
	width:85%;
}

.player_field #message_overlay
{
	width:100%;
}

.player_field
{
	z-index: 96;
	position: absolute;
	width:inherit;
	height:inherit;
}

#start_button, .game_select_button *{
	border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border: none;
    width: 30%;
    margin: 15px;
}

.player_answer_row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.player_answer_form {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	gap: 12px;
}

.player_answer_input_row {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.player_answer_actions {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.player_answer_row #answer_submit {
	width: 100%;
	min-width: 0;
}

#start_button.mic_button {
	width: auto;
	min-width: 72px;
	margin: 0;
	padding: 8px 12px;
	background: transparent;
	vertical-align: middle;
}

#start_button.mic_button img {
	display: block;
	height: 56px;
	width: auto;
}

.mic_unsupported {
	font-size: 0.85rem;
	color: #616161;
	margin: 8px 12px 0;
	text-align: center;
}

 .game_select_button *{
    background-color:rgba(21, 101, 192, 0.9);
    font-size: 50px;
    padding-bottom: 50px;
    padding-top: 50px;
 }

 #game_select_button_container{
 	position: absolute;
    top:50%;
    left: 50%;
    right: 0;
    width: 1000px;
    height: 300px;
    margin: -150px 0 0 -500px;
    text-align:center;
 }

#message_overlay h2{
	font-family: 'Korinna', sans-serif;
	font-size: 3em;
	font-variant: normal;
	font-weight: 800;
	padding-left:15%;
	padding-right:15%;
	text-align:center;
	color: white;
}

.player_field #message_overlay h2 {
	text-shadow: none;
}


.question_display{
	display:none;
	position: absolute;
	top:100px;
	height: 98%;
	width: 98%;
	background:rgba(0, 76, 153, 1);
	justify-content: center;
	align-items: center;
}
.question_display h2{
	padding: 20%;
	font-size: 70px;
	color: #ffffcc;
	clear:left;
	clear:right;
	font-family: 'Korinna', sans-serif;
}


/* category/player display */
#category_container, #player_container{
	top: 0px;
    right: 0px;
    background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0;/* #3f51b5;*/
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 99;
}

.category_display{
	width: inherit;
	height: inherit;
	background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0; /*#3f51b5;*/
	font-family: 'Korinna', sans-serif;
	font-weight: 800;
	text-align:center;
	box-sizing: border-box;
}

/* During jQuery Cycle, slides are position:absolute; inner flex must span full slide width so titles stay centered */
#category_container .category_display .secure_category_container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.secure_category_container
{
	display:flex;
	justify-content: center;
	align-items:center;
	height: inherit;
}
.secure_category_container h2{
	font-size:130px;
	color: white;
	text-align: center;
	margin:auto;
}

.player_display
{
	display:flex !important;
	justify-content: center;
	align-items:center;
	height: inherit !important;
	width:inherit !important;
	width: inherit;
	height: inherit;
	background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0; /* #3f51b5;*/
	font-family: 'Korinna', sans-serif;
	font-weight: 800;
}
.player_type{
	position: absolute;
    right: -50px;
    height: 20%;
    width: 50px;
    border-radius: 25px 0px 0px 25px;
	background-color:#FFA726;
	font-size: 20px;
	font-family: 'Korinna', sans-serif;
	font-weight: 700;
	display: flex;
    justify-content: center;
    align-items: center;
	margin:0 auto;
	text-align: center;
}
.player_type h2{
	z-index: 2;
	transform: rotate(270deg);
	margin: 0;
	position: absolute;
    width: 400px;
}
#player_typing_0
{
	top:0%;
	z-index: 2;	
}
#player_typing_1
{
	top:20%;
	z-index: 2;
}
#player_typing_2{
	top:40%;
	z-index: 2;
}
#player_typing_3
{
	top:60%;
	z-index: 2;
}
#player_typing_4
{
	top:80%;
	z-index: 2;
}
.progress{
	width:100%;
	height:0%;
	z-index:1;
	border-radius: 25px 0px 0px 25px;
	position:absolute;
	top:0px;
	left:0px;
	background:#4CAF50;
	overflow: hidden;
}
#question_container{
	width: inherit;
	height: inherit;
}
.secure_player_container
{
    margin: auto;
}


.secure_player_container h2 {
	font-size:130px;
	color: white;
	text-align: center;
}

.restart{
	position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index:999;
}

#question_image{
	text-align:center; 
	height: 350px;
	display:block;
	margin:auto;
}

#image_container{
	width:100%;
	text-align:center;
}

#music_container{
	width:100%;
	text-align:center;
}

#daily_double_icon{
	display:none;
	background: #EF5350;
	border: 10px solid red;
    border-radius: 12px;
    position: absolute;
    text-align: center;
    top:80%;
}

#daily_double_bet{
	position: absolute;
	top:10%;
	left:10%;
}

/* PLAYER BOARD */

.buzzer {
  padding: 0 10%;
  font-size: 64px;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
  width: 80%;
  height: 100%;
}

.player_field_container{
	background: #2980b9 url(https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png) repeat 0 0;/* #3f51b5;*/
	top: 0px;
    right: 0px;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

.buzzer:hover {background-color: #3e8e41}

.buzzer:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.login {
	z-index: 2;
}

.player_timer{
	height:28%;
}

.player_field_info {
	width: 100%;
	height: 7%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
.player_field_info h2 {
	width: 50%;
}
.player_question{
 	background: #2980b9 url(../game-media/images/static_bg.png) repeat 0 0; /*#3f51b5;*/
 	height: 35%;
	display:flex;
	align-items: stretch;
	justify-content: center;
	min-height: 0;
	box-sizing: border-box;
}

.player_question_revealed_bounds {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	padding: 8px 4%;
}

.player_question #question_revealed {
	margin: 0;
	font-family: 'Korinna', sans-serif;
	font-variant: normal;
	font-weight: 800;
	color: white;
	text-align: center;
	line-height: 1.08;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-break: break-word;
	overflow-wrap: break-word;
	hyphens: manual;
	/* Binary search in board_category_headers.js sets exact size; start large for short titles */
	font-size: 132px;
}

#player_score, #player_name{
	font-family: 'Korinna', sans-serif;
	font-size: 35px;
	font-variant: normal;
	font-weight: 800;
	padding-left:15%;
	padding-right:15%;
	color: white;
	text-align:center;
}

/*  IPAD SIMULATOR
.player_question #question_revealed{
	top: 50%;
	position: relative;
}
*/

.player_buzzer{
	 text-align: center;
	 height: 30%;
}

#answer_field, #bet_field{
	border: none;
    color: #525252;
    font-size: 60px;
    margin-bottom: 16px;
    margin-right: 6px;
    margin-top: 2px;
    outline: 0 none;
    padding: 10px 25px 10px 25px;
    width: 70%;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    background: #DFDFDF;
    box-sizing: border-box;
}

.player_answer_field #answer_field {
	width: 100%;
	max-width: 100%;
	margin-right: 0;
	margin-bottom: 0;
}

#answer_submit, #bet_submit
{
	text-align:center;
}

#answer_submit #answer_btn {
	width: auto;
	min-width: min(100%, 12rem);
}

#answer_submit button, #bet_btn
{
	font-size: 60px;
	background: #FFCC02;
    border: none;
    padding: 10px 25px 10px 25px;
    color: #585858;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    text-shadow: none;
    font-weight: bold;
    box-shadow: 1px 1px 1px #3D3D3D;
    -webkit-box-shadow:1px 1px 1px #3D3D3D;
    -moz-box-shadow:1px 1px 1px #3D3D3D;
}
.player_answer_field, .player_bet_field
{
	height: 35%;
	width:100%;
}

.player_answer_field{
	text-align:center;
}
/*timer*/
#timer_table{
	width:100%;
	height:60%;
	padding-top:30px;
}

#timer_table td{
	border: 5px solid #757575;
	background-color: rgb(239, 83, 80);
}

/* CSS FOR MOBILE*/

/* tablets */
@media only screen and (max-width: 1024px), only screen and (max-device-width: 1024px) {

	#game_board tr td,
	#tempGAME tr td {
		font-size: 35px;
	}

	#game_board tr:not(:first-child) td,
	#tempGAME tr:not(:first-child) td {
		font-size: clamp(14px, 2.6vw, 28px);
	}

	#game_board tr:not(:first-child) th,
	#tempGAME tr:not(:first-child) th {
		color: white;
		font-size: 24px;
	}

	#answer_field
	{
		font-size: 40px;
	}

	#answer_submit button
	{
		font-size:40px;
	}
}

/*phones*/
@media only screen and (max-width: 767px), only screen and (max-device-width: 767px) {
	#game_board tr:not(:first-child) td,
	#tempGAME tr:not(:first-child) td {
		font-size: clamp(12px, 3.4vw, 18px);
	}
	#answer_field
	{
		font-size: 30px;
	}

	#answer_submit button
	{
		font-size:30px;
	}
	#message_overlay h2
	{
		font-size: 3em;
	}
	#timer_table
	{
		height: 100%;
	}
	#bet_field, #bet_button {
		font-size: 2em;
	}
	#player_name, #player_score {
		font-size: 1em;
	}
}

@media only screen and (max-width: 320px), only screen and (max-device-width: 320px) {
	#game_board tr:not(:first-child) td,
	#tempGAME tr:not(:first-child) td {
		font-size: clamp(11px, 3.2vw, 16px);
	}
}

/*ANIMATIONS*/

.flash_buzzer {
    -webkit-animation-name: flashBuzzer;
    -webkit-animation: flashBuzzer linear 1s infinite;
	  animation: flashBuzzer linear 1s infinite;
    -webkit-animation-timing-function: ease-in-out;
}    

@-webkit-keyframes flashBuzzer {
    0% {
        background-color: Blue;
        opacity:1;
    }
    22% {
        background-color: Yellow;
    }
    77% {
        background-color: Red;
    }
    100% {
        background-color: #777;
    }
}

/* alerts */
.alert {
  position: relative;
}

.alert .close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1em;
}

.alert .fa {
  margin-right:.3em;
}

/*intro video*/
video { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
 background: url('//demosthenes.info/assets/images/polina.jpg') no-repeat;
  background-size: cover;
  transition: 1s opacity;
}

/*background animate*/
#message_overlay{
    background: #2980b9 url('https://static.tumblr.com/03fbbc566b081016810402488936fbae/pqpk3dn/MRSmlzpj3/tumblr_static_bg3.png') repeat 0 0;
	-webkit-animation: 10s linear 0s normal none infinite animate;
	-moz-animation: 10s linear 0s normal none infinite animate;
	-ms-animation: 10s linear 0s normal none infinite animate;
	-o-animation: 10s linear 0s normal none infinite animate;
	animation: 10s linear 0s normal none infinite animate;
}

#message_overlay #message_overlay_logo{
	position: absolute;
	top: 80%;
	margin-right: 20px;
	width: 20%;
}
 
@-webkit-keyframes animate {
	from {background-position:0 0;}
	to {background-position: 500px 0;}
}
 
@-moz-keyframes animate {
	from {background-position:0 0;}
	to {background-position: 500px 0;}
}
 
@-ms-keyframes animate {
	from {background-position:0 0;}
	to {background-position: 500px 0;}
}
 
@-o-keyframes animate {
	from {background-position:0 0;}
	to {background-position: 500px 0;}
}
 
@keyframes animate {
	from {background-position:0 0;}
	to {background-position: 500px 0;}
}