/* start.css */

::-webkit-scrollbar{
	width: 4px;
	height: 4px;
	background-color: #b6c5cf;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(0,0,80,0.25);
	border-radius: 2px;
}

* {
	box-sizing: border-box;
    margin: 0;
    padding: 0;
	scrollbar-width: thin;
}

@font-face {
  font-family: "Rubik";
  src: url('../fonts/rubik-latin-normal.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src: url('../fonts/rubik-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src: url('../fonts/rubik-latin-italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

body {
    position: relative;

	height: 100vh;
	width: 100vw;
	overflow: hidden;
	font-family: Rubik,arial;
	color: #000000;
	user-select: none;
	-webkit-user-select: none;
	cursor: default;
	background-color: black;
	background-image: url("../images/start-back.png");
	background-size: cover;
	background-repeat: no-repeat;
}

#progressBar {
	position: absolute;
	top: 67vh;
	left: 40vw;
	height: 3.2vh;
	width: 20vw;
	background-color: transparent;
	z-index: 100;
	display: none;
}

#progressBar[active="true"] {
	display: block;
}

#progressBar-msg {
	position: absolute;
	top: 0;
	left: 0;
	color: #8bafdc;
	font-size: 2vh;
	font-family: courier new;
}

#progressBar-ind {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1vh;
	background-color: #8bafdc;
	border-radius: 0.5vh;
}

#progressBar-bg {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1vh;
	background-color: rgba(0,0,0,0.8);
	border-radius: 0.5vh;
}


#modal {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,30,0.75);
	z-index: 20;
	display: none;
}

#modal[active="true"] {
	display: block;
}

#root {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: rgba(0,0,0,0.5);
}

#header {
	position: relative;
	height: 5vh;
	width: 100%;
	padding: 4px;
	padding-left: 10px;
	font-size: 3em;
	color: #404040;
	background: #b6c3c9;
	line-height: 4vh;
	border-bottom: 1px solid #000000;
}

#header-logo {
	position: absolute;
	top: 0.5vh;
	left: 20px;
	height: 4vh;
	margin-right: 5vw;
}

#header-company {
	position: absolute;
	top: 0.5vh;
	right: 20px;
	height: 4vh;
	margin-left: 5vw;
}

#header-settings {
	position: absolute;
	top: 0.6vh;
	right: 20px;
	height: 4vh;
	font-size: 5vh;
	color: #edf8fe;
	transition: color 0.25s ease;
	cursor: pointer;
}

#header-settings:hover {
	color: orange;
}

#content {
	position: relative;
	flex: 1;
	width: 100vw;
	overflow: hidden;
	opacity: 0.0;
	transition: opacity ease 1.0s;
	background: transparent;
	display: flex;
	flex-direction: row;
}

#contentLog {
	position: relative;
	flex: 1;
	width: 100vw;
	overflow: hidden;
	overflow-y: auto;
	background: white;
	padding: 20px;
}

#options {
	width: 25vw;
	height: 100%;
	overflow: hidden;
	overflow-y: auto;
	margin-right: 4vw;
}

#option-details {
	width: 25vw;
	height: 100%;
	overflow: hidden;
	overflow-y: auto;
	margin-left: 4vw;
}

.content-spacer {
	flex: 1;
}

.option {
	float: left;
	border: 5px solid #000000;
	border-radius: 20px;
	width: 20vw;
	height: 20vw;
	text-align: center;
	margin: 10%;
	font-size: 40px;
	background: rgba(255,255,255,0.75);
	opacity: 0.75;
	transition: background 0.25s ease, opacity 0.25s ease;
	padding: 20px;
	cursor: pointer;
}

.option:hover {
	opacity: 1.0;
	background: rgba(135,135,255,1.0);
}

.option:active {
	background: rgba(255,135,135,1.0);
}

#option-new-game,
#option-join-game {
	background-color: black;
	background-image: url("../images/desert.png");
	background-size: cover;
	background-repeat: no-repeat;	
}

#waitingRoom {
	position:absolute;
	left: 10vw;
	right: 10vw;
	top: 50vh;
	bottom: 50vh;
	padding: 0px;
	border: 5px solid #b6c3c9;
	background: #b6c3c9;
	background: rgba(245,245,255,0.75);
	color: black;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	overflow-y: auto;

	opacity: 0.0;
	transition: opacity 1.0s ease, left 0.5s ease, right 0.5s ease, bottom 1.00s ease, top 1.00s ease;
	box-shadow: 0px 0px 200px #b6c3c9, 0px 0px 10px #b6c3c9;
	border-radius: 10px;
}

#waitingRoom[revealed="true"] {
	top: 20px;
	bottom: 5vw;
	left: 10vw;
	right: 10vw;
	opacity: 1.0;
}

#waitBanner {
	object-fit: cover;
	height: 22vh;
	box-shadow: 0px 2px 10px rgba(0,0,50,0.5);	
}

.waitText {
	height: auto;
	font-size: 18px;
	margin: 10px;
	margin-left: 10%;
	margin-right: 10%;
	text-align: center;
	line-height: 120%;
}

.waitCtrl-group {
	padding-top: 2px;
	padding-bottom: 2px;
	margin-bottom: 4px;	
}

.waitBtn-group {
	width: 80%;
	margin-top: 10px;
	margin-left: 10%;
	margin-right: 10%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.waitFooter {
	height: 20px;
}

.flexHack {
	flex: 1 1 100%;
	height: 5vh;
}

.gameLog-download,
.waitBtn {
	flex: 0 1 30vw;
	font-size: 22px;
	padding: 4px;
	margin: 5px;
	border: 1px solid #456474;
	border-radius: 4px;
	background: rgb(167,185,219);
	color: black;
	transition: background 0.25s ease;
	cursor: pointer;
	font-family: Rubik,copperplate,arial;
	font-variant: small-caps;
	width: max(30vw,260px);
	overflow: hidden;
	height: auto;
	max-height: 60px;
}

.waitBtn[disabled],
.waitBtn[disabled]:hover,
.waitBtn[disabled]:active {
	background: lightgray;
	color: gray;
	cursor: default;
}

.waitBtn:hover {
	background: orange;
}

.waitBtn:active {
	background: #f0f2ff;
	color: black;
}

#btnCancel {
	background: rgba(0,0,0,0.1);
}

#btnCancel:hover {
	background: #f0f0f0;
}

#btnCancel:active {
	background: #f0f2ff;
	color: black;
}

#logoList {
	flex: 1;
	margin-left: 10%;
	margin-right: 10%;
	width: 80%;
	min-height: 60px;
	overflow: hidden;
}

.img-logo {
	height: 60px;
	margin-right: 10px;
	border: 2px solid black;
	cursor: pointer;
}

.ourLogo {
	border: 2px solid #b6c3c9;	
	cursor: default;
}

.inuse {
	opacity: 0.5;
	cursor: default;
}

#gameList {
	flex: 1;
	margin-left: 10%;
	margin-right: 10%;
	width: 80%;
	min-height: 100px;
	background: rgba(155,155,255,0.1);
	border: 1px solid #808080;
	overflow: hidden;
	overflow-y: auto;
}

#playerList {
	flex: 1;
	margin-left: 10%;
	margin-right: 10%;
	width: 80%;
	background: rgba(155,155,255,0.1);
	border: 1px solid #808080;
	overflow: hidden;
	overflow-y: auto;
	min-height: 90px;
	max-height: 200px;
}

.playerListItem {
	position: relative;
	margin: 5px;
	border: 2px solid #408000;
	border-radius: 5px;
	width: 120px;
	height: 70px;
	padding: 4px;
	text-align: center;
	overflow: hidden;
	background: white;
	float: left;
}

.playerListItem-add {
	margin: 5px;
	width: 120px;
	height: 70px;
	padding: 4px;
	padding-top: 6px;
	border-radius: 5px;
	font-size: 50px;
	text-align: center;
	overflow: hidden;
	float: left;
	background: rgba(0,0,0,0.1);
	transition: background 0.25s ease;
	cursor: pointer;
}

.playerListItem-add:hover {
	background: rgba(250,250,250,0.4);
}

/* closing x in player box */
.playerListItem-x {
	position: absolute;
	bottom: 2px;
	right: 2px;
	font-size: 26px;
	font-weight: bold;
	padding: 2px;
	height: 24px;
	color: darkred;
	cursor: pointer;
}

.playerListItem-x:hover {
	color: red;
}

.robot {
	background: #f2b78d;
}

.connecting {
	background: #b9c359;
}

.ready {
	background: #a6d7b4;
}

.declined {
	background: #D0D0D0;
	color: #808080
}

.thisPlayer {
	border: 3px solid #000000;
}

.playerListItem-title {
	color: black;
	font-size: 10px;
}

.playerListItem-name {
	color: black;
	font-family: courier;
	font-size: 18px;
	font-weight: 600;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.playerListItem-status {
	color: #606060;
	font-size: 14px;
}

.ctrl-btn {
	margin-right: 30%;
	margin-left: 30%;
}

.wide {
	margin-right: 10% !important;
	margin-left: 10% !important;
}

.ctrl-btn input[type="text"],
.ctrl-btn input[type="search"],
.ctrl-btn textarea {
	width: 100%;
	padding: 2px;
	height: auto;
	background: white;
	font-size: 24px;
	padding: 3px;
	border: 1px solid #313f76;
	border-radius: 10px;
}

.ctrl-btn input[type="text"] {
	margin-top: 2px;
	margin-bottom: 5px;
}

.ctrl-btn textarea,
.ctrl-btn input[type="text"]:focus,
.ctrl-btn input[type="search"]:focus {
	outline: 2px solid orange;
	box-shadow: 0px 0px 2px orange;
}

.ctrl-btn input[readonly] {
	background: #E0E0E0;
}

.ctrl-btn textarea {
	height: 50px;
	font-size: 14px;
}

.ctrl-btn {
	display: flex;
	flex-direction: row;
}

#gameLink {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	resize: none;
	outline: none;
}

#btnCopy {
	border: 1px solid #313f76;
	border-radius: 10px;
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;	
}

.smallBtn {
	font-size: 20px;
	padding: 2px 5px;
	width: 20%;
	border: 1px solid #808080;
	border-radius: 4px;
	background: #80b2ff;
	transition: background 0.25s ease;
	cursor: pointer;
	font-variant: small-caps;
	font-family: Rubik, arial;
}

.smallBtn:hover {
	background: #f0b2ff;
}

.smallBtn:active {
	background: #f0f2ff;
	color: black;
}

.waitLabel {
	margin-left: calc(30% + 10px);
	font-size: 14px;
	font-weight: 600;
	color: black;
}

#remember-div {
	display: none;
	margin-left: calc(30% + 10px);
}

#spanRemember {
	font-size: 14px;
	line-height: 12px;
}


#gameLogEntries {
	margin-left: 10vw;
}

.gameLog-item {
	position: relative;
	padding: 5px;
	font-size: 20px;
}

.gameLog-indent {
	padding-left: 25px;
}

.gameLog-title {
	padding: 10px;
	font-size: 22px;
	font-weight: bold;
}

.gameLog-roundNo {
	margin-top: 10px;
	margin-left: -50px;
	margin-right: 50px;
	padding: 10px;
	padding-left: 75px;
	font-size: 22px;
	font-weight: bold;
	background: #D0A0FF;
	border-radius: 25px;
}

.gameLog-businessRound {
	margin-right: 50px;	
}

.gameLog-details {
	padding: 5px;
	font-size: 18px;
	margin-left: 20px;
}

.gameLog-summary {
	position: absolute;
	right: 40px;
	margin-left: 40px;
	color: #000080;	
	font-size: 14px;
}

.gameList-item {
	border-bottom: 1px solid #808080;
	padding: 5px;
	display: flex;
	flex-direction: row;
	background: rgba(255,255,255,0.2);
	overflow-x: auto;
}

.gameList-item:nth-child(odd) {
	background: rgba(255,255,255,0.3);
}

.gameList-host {
	display: flex;
	flex-direction: column;
	width: auto;
	flex: 1;
	padding-right: 10px;
}

.gameList-host-label {
	color: #404040;
	font-size: 12px;
}

.gameList-host-name {
	color: black;
	font-weight: 600;
	font-size: 20px;
}

.gameList-value {
	flex: 1;
	color: black;
	font-size: 18px;
	white-space: nowrap;
}

.gameList-status {
	flex: 1;
	color: black;
	font-size: 18px;
	font-weight: 600;
}

.gameList-btn {
	border: 1px solid white;
	background: #b6c3c9;
	color: black;
	border-radius: 4px;
	padding: 4px;
	font-size: 16px;
	width: 100px;

	transition: background 0.25s ease;
	cursor: pointer;
	font-variant: small-caps;
}

.delete {
	background: darkred;
	color: #F0F0F0;
}

.gameList-btn:hover {
	background: orange;
}

.leaderLabel {
	text-align: center;
	font-family: Rubik,copperplate,arial;
	font-size: 30px;
	margin-bottom: 4px;
}

#leaderBoard {
	flex: 1;
	margin-left: 10%;
	margin-right: 10%;
	margin-bottom: 5px;
	width: 80%;
	min-height: 100px;
	border: 3px solid rgba(100,100,100,0.5);
	box-shadow: 0px 0px 15px white;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family: Rubik,copperplate,arial;
}

#leaderBoard div.leaderBoard-rows {
	background: rgba(205,205,205,0.5);
	overflow: hidden;
	overflow-y: auto;
}

#leaderBoard div.leaderBoard-rows::-webkit-scrollbar {
	background-color: transparent;
}

#leaderBoard div.leaderBoard-rows::-webkit-scrollbar-thumb {
	background-color: transparent;
}

#leaderBoard div.leaderBoard-rows:hover::-webkit-scrollbar-thumb {
	background-color: rgb(19,117,192);		/* hair */
}

#leaderBoard div.leaderBoard-row:nth-of-type(even) {
	background-color: rgba(235,235,255,0.9);
}

.leaderBoard-header {
	height: auto;
	width: 100%;
	padding: 4px;
	display: flex;
	flex-direction: row;
	border-bottom: 1px solid #808080;
	box-shadow: 0px 4px 5px black;
}

.leaderBoard-options {
	height: auto;
	width: 100%;
	padding: 4px;
	display: flex;
	flex-direction: row;
}

.leaderBoard-option {
	flex: 1;
	text-align: center;
	cursor: pointer;
	transition: color 0.25s ease;
}

.leaderBoard-option:hover {
	color: darkred;
}

.leaderBoard-option[selected="true"] {
	background: rgb(19,117,192);
	color: white;
	border-radius: 3px;
}

.leaderBoard-row {
	background-color: rgba(235,235,255,0.5);
	height: auto;
	width: 100%;
	padding: 4px;
	display: flex;
	flex-direction: row;
	border-bottom: 1px solid #808080;
}

.leaderBoard-header {
	font-weight: bold;
}

.leaderBoard-row {
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 20px;
}

.leaderBoard-rank {
	width: 50px;
	text-align: center;
}

.leaderBoard-row .leaderBoard-rank {
}

.leaderBoard-name {
	width: 200px;
	font-weight: 600;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.leaderBoard-wins {
	flex:  1;
	text-align: center;
	background: none;
}

@media (max-device-width : 980px) {

	body {
		min-height: -webkit-fill-available;
	}

	html {
		height: -webkit-fill-available;
	}

	input,
	textarea,
	button,
	select,
	label,
	img,
	a {
		-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

	#waitBanner {
		height: min(30vh,300px);
		width: 100%;
	}

	#waitingRoom {
		box-shadow: none;
		border: none;
		border-radius: 0px;
	}

	#waitingRoom[revealed="true"] {
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
	}

	.waitBtn {
	}

	#gameLink {
		font-size: 2.5vh;
		height: 10vh;
	}

	#btnCopy {
		font-size: 22px;
	}

	.smallBtn {
		font-size: 3vh;
	}

	#remember-div {
		display: none;
	}

	#leaderBoard {
		margin-left: 2.5%;
		margin-right: 2.5%;
		width: 95%;
		box-shadow: none;
		border-radius: 0px;
		overflow: hidden;
	}

	.leaderBoard-name {
		width: 25vw;
	}

	#playerList {
	}

	.waitText {
		margin: 4px;
		font-size: 20px;
		padding-top: 10px;
		padding-bottom: 0px;
	}

	.waitCtrl-group {
		margin: 0px;
	}

	.waitLabel {
		padding-left: 10px;
		font-size: 16px;
	}

	.ctrl-btn textarea {
		font-size: 16px !important;
		height: auto !important;
	}

	.waitBtn-group {
		margin-top: 0px;
		margin-bottom: 0px;
		gap: 0px;
	}

	#playerList {
		max-height: 65px;
	}

	.playerListItem,
	.playerListItem-add {
		height: 70px;
	}

	#gameList {
		margin-left: 3%;
		margin-right: 3%;
		width: 94%;
	}
	/** mobile **/
}

@media (max-device-width : 980px) and (orientation:portrait) {
	.ctrl-btn input[type="text"],
	.ctrl-btn input[type="search"] {
		font-size: 60px;
	}

	.waitLabel {
		margin-top: 30px;
		margin-left: calc(20% + 10px);
		font-size: 24px;
	}

	.ctrl-btn {
		margin-right: 20%;
		margin-left: 20%;
	}

	.ctrl-btn textarea {
		font-size: 30px !important;
		height: auto !important;
	}

	#btnCopy {
		font-size: 30px;
	}

	.waitText {
		margin: 4px;
		margin-left: 20px;
		margin-right: 20px;
		padding-top: 40px;
		padding-bottom: 40px;
		font-size: 30px;
	}

	.waitBtn-group {
		margin-top: 40px;
		margin-bottom: 40px;
		gap: 60px;
	}

	.waitBtn {
		flex: 0 0 60vw;
		padding: 5px;
		margin: 0;
		max-height: 120px;
		width: auto;
		max-width: none;
		font-size: 60px;
	}

	#gameList {
		max-height: 30vh;
	}

	#playerList {
		max-height: 30vh;
	}

	.playerListItem-add {
		height: 120px;
		width: 280px;
		font-size: 90px;
		line-height: 120px;
		margin-right: 40px;
		margin-bottom: 40px;
	}

	.playerListItem {
		height: 120px;
		width: 280px;
		margin-right: 40px;
		margin-bottom: 40px;
	}

	.playerListItem-title {
		font-size: 20px;
	}

	.playerListItem-name {
		font-size: 44px;
	}

	.playerListItem-status {
		font-size: 20px;
	}

	.playerListItem-x {
		bottom: 4px;
		right: 4px;
		font-size: 40px;
		height: 40px;
	}

	#leaderBoard {
		max-height: 40vh;
	}


	/** mobile portrait **/
}


