:root {
	--window-frame: #0a0a0a;
	--dialog-blue: #000080;
	--dialog-blue-light: #1084d0;
	--button-highlight: #ffffff;
  	--button-face: #dfdfdf;
  	--button-shadow: #808080;
	--selected-row-color: #040484;
	
	
	/* Borders */
  	--border-width: .1em;
  	--border-raised-outer: 
		inset -.1em -.1em var(--window-frame),
    	inset .1em .1em var(--button-highlight);
  	--border-raised-inner: 
		inset -.2em -.2em var(--button-shadow),
    	inset .2em .2em var(--button-face);
  	--border-sunken-outer: 
		inset -.1em -.1em var(--button-highlight),
    	inset .1em .1em var(--window-frame);
  	--border-sunken-inner: 
		inset -.2em -.2em var(--button-face),
    	inset .2em .2em var(--button-shadow);		
	--border-window-outer: 
		inset -.1em -.1em var(--window-frame),
    	inset .1em .1em var(--button-face);
  	--border-window-inner: 
		inset -.2em -.2em var(--button-shadow),
    	inset .2em .2em var(--button-highlight)
	--border-table-header: 
		inset -.1em -.1em var(--window-frame),
    	inset .1em .1em var(--button-highlight);
	
	--tab-border: .1em solid #888;
    --tab-bg: silver;
	
	--width-xsmall: .25em;
	--width-small: .5em;
	--width-medium: 1em;
	--width-large: 1.5em;
	
	
}

.magenta{
	background:#ff00ff;
}

.blue{
	background: blue;
}

.yellow{
	background: yellow;
}

.red{
	background: red;
}

.black{
	background: black;
}

#wrapper{
	font-size: 1 em;
}

/* meyer reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body, html{
	font-family: ROBOTO-REGULAR;
	font-size: 1em;
	height: 100%;
}

/* reset close */

.window{
	background-color: silver;
	padding: .2em!important;
	box-shadow: var(--border-raised-outer), var(--border-raised-inner);
}

button,
input[type="submit"],
input[type="reset"]{
	font-family: ROBOTO-REGULAR;
	font-size: 1em;
	display: block;
	box-sizing: border-box;
	border: none;
	background: silver;
  	box-shadow: var(--border-raised-outer), var(--border-raised-inner);
  	border-radius: 0;
}

button:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="reset"]:not(:disabled):active {
  box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
  
}

@media (not(hover)) {
  button:not(:disabled):hover,
  input[type="submit"]:not(:disabled):hover,
  input[type="reset"]:not(:disabled):hover {
    box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
  }
}

button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
select:focus,
input[type="text"]:focus{
  outline: .1em dotted black;
  outline-offset: -.4em;
}

button::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner {
  border: 0;
}

:disabled,
:disabled + label,
input[readonly],
input[readonly] + label {
  color: var(--button-shadow);
}

button:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
:disabled + label {
  text-shadow: .06em .06em 0 var(--button-highlight);
  pointer-events:none;
}

button:disabled *{
	color: var(--button-shadow)!important;
}
button:not(:disabled){
cursor: pointer;
}

fieldset {
	border-image: url("groupbox-border.svg") 2;
	border-width: .2em;
    border-style: groove;
    border-color: var(--button-highlight);
	margin: 0!important;
}

legend{
	font-size: 1em;
}

#main-window{
	height: 99%;
}

.title-bar{
	color: white;
	height:1.1em;
	padding: .3em;		
	overflow: hidden;
	background: linear-gradient(
    	90deg,
    	var(--dialog-blue),
    	var(--dialog-blue-light)
  	);
	font-family: ROBOTO-BOLD;
}

.title-bar > .title-bar-left{
	justify-content: flex-start;
	width: auto;
}

.inactive {
    background: linear-gradient(90deg,grey,#b5b5b5);
}

.statboard-led{
	background: black;
	font-family: "Graph35PixRegular-vj1A";
}

.statboard-bar{
	height: 1.77em;
}

.statboard-button{
	width: 6em;
	height: 2.5em;
	font-size: .75em;
}

#statboard-cash,
#statboard-bank{
	color: lime;
}

#statboard-debt{
	color: red;
}

#statboard-guns,
#statboard-rocks{
	color: yellow;
}

#statboard-health{
	
}

progress{
	height: 90%;
}

progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
   appearance: none;
}

progress[value]::-webkit-progress-bar {
	background-color: red;
	border-width: 1px;
	border-color: black;
	border-style: solid;
}

progress[value]::-webkit-progress-value {
    background-color: blue;
}

#health-number{
	color: yellow;
	position: absolute;
	margin-left: 40%;
	margin-right: auto;
	width: 2em;
}

input[type=email], 
input[type=number], 
input[type=password], 
input[type=text], 
select,
.fieldbox{
    background-color: #fff;
    box-shadow: 
		inset -.1em -.1em #fff,
		inset .1em .1em grey,
		inset -.2em -.2em #dfdfdf,
		inset .2em .2em #0a0a0a;
    box-sizing: border-box;
    padding: .3em .4em;
	font-family: ROBOTO-REGULAR;
	border: 0;
}

.fieldbox{
	font-size: .85em;
	padding: .2em;
}

.panel-content{
	flex: 1;  /* <------------------- required     */
    overflow-y: auto;  /* <---------- required !!! */
}

.frame{
	background-color: #fff;
    box-shadow: 
		inset -.1em -.1em #fff,
		inset .1em .1em grey,
		inset -.2em -.2em #dfdfdf,
		inset .2em .2em #0a0a0a;
    box-sizing: border-box;
}

.frame-overlay{
  	width: 95.5%;
  	height: 94.5%;
  	position: absolute;
  	top: .7em;
  	left: .7em;
	margin-right: -20em;
    box-shadow: 
		inset -.1em -.1em #fff,
		inset .1em .1em grey,
		inset -.2em -.2em #dfdfdf,
		inset .2em .2em #0a0a0a;
    box-sizing: border-box;
	pointer-events: none;
}

th{
	position: sticky;
	top: 0;
	text-align: left;
	padding-left: 1em;
	padding-right: 1em;
	background-color: silver;
	box-shadow: 
		inset 0 0 #fff,
		inset 0 0 grey,
		inset -.1em -.1em grey,
		inset .1em .1em #dfdfdf;
	line-height: 1.8em;
}


td{
	padding-left: .5em;
	padding-right: .5em;
	vertical-align: middle;
	white-space: nowrap;
  	overflow: hidden;
}

tr{
	line-height: 4em;
	font-size: 1.2em;
	vertical-align: middle;
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:nth-child(odd) {
  background-color: white;
}

tr.selected-row{
	background-color: var(--selected-row-color);
	color: white;
}

.action-column{
	width: 20%;
}

.trade-button{
	width: 3em;
	padding: .8em 1em;
	height: 100%;
	margin: auto;
}

.table-row td:first-child{
	width: 1%;
	white-space: nowrap;
}

.table-image-container{
	width: 3em;
	height: 3em;
	vertical-align: middle;
	padding: 0;
	margin: 0;
}
/*-------------------------------------------*\
 Tabs
 \*-------------------------------------------*/

menu[role="tablist"] {
  position: relative;
  margin: 0 0 -.23em 0;
  text-indent: 0;
  list-style-type: none;
  display: flex;
  padding-left: .5em;
  padding-right: .5em;
}

menu[role="tablist"] button {
  border-top-left-radius: .3em;
  border-top-right-radius: .3em;
  z-index: 1;
  display: block;
  text-decoration: none;
  min-width: unset;
  background: silver;
  box-shadow: 
  	inset .1em .1em #fff, 
  	inset .2em .2em #dfdfdf, 
  	inset -.1em 0 black, 
  	inset -.2em 0 #7f7f7f;
  border-bottom: 0px solid transparent;
  padding: 1em;
}

menu[role="tablist"] button:first-of-type::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  left: 0;
  width: 0;
  border-left: .1em solid #fff;
  border-right: .1em solid #dfdfdf;
}

menu[role="tablist"] button:focus {
  outline: .1em dotted #222;
  outline-offset: -.4em;
}

menu[role="tablist"] button[aria-selected="true"] {
  padding-bottom: 1.6em;
  background-color: silver;
  position: relative;
  z-index: 8;  
  top: 0px;  
  margin: -.3em 0 0px .3em;
}

[role="tabpanel"] {
  padding: .6em;
  clear: both;
  background: silver;
  position: relative;
  z-index: 2;
  margin-bottom: .5em;
  box-shadow: 
  	inset .1em .1em white, 
	inset .2em .2em #dfdfdf, 
  	inset -.1em -.1em #0a0a0a, 
  	inset -.2em -.2em gray;
}

.text-green{
	color: green;
}
.text-red{
	color: red;
}

.flex{
	display: flex;
}

.flex-right{
	margin-left: auto;
}

.flex-center{
	justify-content: center;
}

.flex-middle{
	align-items: center;
}

.flex-fill{
	display: flex;
	flex: 1;	
}

.flex-min-0{
	min-height: 0;
}

.row {
  	display: flex;
  	flex-direction: row;
  	flex-wrap: wrap;
  	width: 100%;
}

.column {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 1;
}

.width-1-1{
	width: 100%;
}

.height-1-1{
	height: 100%;
}

.padding-xsmall{
	padding: var(--width-xsmall);
}

.padding-small{
	padding: var(--width-small);
}

.padding-small-top{
	padding-top: var(--width-small);
}

.padding-small-bottom{
	padding-bottom: var(--width-small);
}

.padding-small-left{
	padding-left: var(--width-small);
}

.padding-small-right{
	padding-right: var(--width-small);
}

.padding-medium{
	padding: var(--width-medium);
}

.padding-medium-top{
	padding-top: var(--width-medium);
}

.padding-medium-bottom{
	padding-bottom: var(--width-medium);
}

.padding-medium-left{
	padding-left: var(--width-medium);
}

.padding-medium-right{
	padding-right: var(--width-medium);
}

.padding-large{
	padding: var(--width-large);
}

.padding-large-top{
	padding-top: var(--width-large);
}

.padding-large-bottom{
	padding-bottom: var(--width-large);
}

.padding-large-left{
	padding-left: var(--width-large);
}

.padding-large-right{
	padding-right: var(--width-large);
}

.margin-xsmall{
	margin: var(--width-xsmall);
}

.margin-xsmall-top{
	margin-top: var(--width-xsmall);
}

.margin-xsmall-bottom{
	margin-bottom: var(--width-xsmall);
}

.margin-xsmall-left{
	margin-left: var(--width-xsmall);
}

.margin-xsmall-right{
	margin-right: var(--width-xsmall);
}

.margin-small{
	margin: var(--width-small);
}

.margin-small-top{
	margin-top: var(--width-small);
}

.margin-small-bottom{
	margin-bottom: var(--width-small);
}

.margin-small-left{
	margin-left: var(--width-small);
}

.margin-small-right{
	margin-right: var(--width-small);
}

.margin-medium{
	margin: var(--width-medium);
}

.margin-medium-top{
	margin-top: var(--width-medium);
}

.margin-medium-bottom{
	margin-bottom: var(--width-medium);
}

.margin-medium-left{
	margin-left: var(--width-medium);
}

.margin-medium-right{
	margin-right: var(--width-medium);
}

.margin-large{
	margin: var(--width-large);
}

.margin-large-top{
	margin-top: var(--width-large);
}

.margin-large-bottom{
	margin-bottom: var(--width-large);
}

.margin-large-left{
	margin-left: var(--width-large);
}

.margin-large-right{
	margin-right: var(--width-large);
}
.text-small{
	font-size: .85em;
}

.text-medium{
	font-size: .1em;
}

.text-large{
	font-size: 2em;
}

.text-align-center{
	text-align: center;
}

.text-align-right{
	text-align: right;
}

.modal-bg{
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10;
	position: absolute;
}

[hidden]{
  display:none;
}

.popup-window{
	width: 80%;
}

.popup-window-xsmall{	
	height: 30%;	
}

.popup-window-small{
	height: 45%;	
}

.popup-window-medium{
	height: 60%;
}

.popup-window-large{
	height: 75%;
}

.popup-window-xlarge{
	height: 90em;
}

.line-height-medium{
	line-height: 1.8em;
}

select{
	font-size: 1em;
}

.flex-overflow-y{
	flex: 1;  /* <------------------- required     */
    overflow-y: auto;  /* <---------- required !!! */
}

.hide{
	display: none;
}

#finish-button{
	width: 100%;
	height: 9.11em;
	font-size: 1em;
	font-weight: bold;
}

.bank-button-green{
	width: 100%;
	height: .2em;
	background-color: green;
	border-radius: 1em;
}

.bank-button-red{
	width: 100%;
	height: .2em;
	background-color: red;
	border-radius: 1em;
}

.bank-button-yellow{
	width: 100%;
	height: .2em;
	background-color: yellow;
	border-radius: 1em;
	float: left;
}

.bank-button{
	height: 3.5em;
}

.bank-button-digits{
	font-size: 1em;
}

.text-bold{
	font-weight: bold;
}

.atm-screen{
	background: black;
	color: lime;
	padding: 1.5em;
	font-family: "Graph35PixRegular-vj1A";
	line-height: 2em;
	text-transform: uppercase;
}

.atm-keypad-bg{
	padding: 1.5em;
	background: #a3a7b3;
  	box-shadow: var(--border-raised-outer), var(--border-raised-inner);
  	border-radius: 0;
}

#bank-amoount{
	white-space: nowrap;
}

#bank-amount::after {
  content: "";
  width: .8em;
  height: 1.4em;
  background: lime;
  display: inline-block;
  position: relative;
  top: .25em;
  left: 0em; 
 -webkit-animation: blink 1s step-end infinite;
  animation: blink 1s step-end infinite;
}

@-webkit-keyframes blink {
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}

@keyframes blink {
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}

p{
	line-height: 1.5em;
}

p:not(:last-of-type){
	margin-bottom: 1.5em;
}

.text-nowrap{
	white-space: nowrap;
}

text-bold{
	font-weight: bold;
}

#player-name{
	font-size: 1em;
}

.fight-lifebar{
	height: 1em;
}

#high-score-table tr,
#global-leaderboards-table tr{
	line-height: 3em;
	font-size: 1em;
}

#high-score-table tr > td:last-child,
#global-leaderboards-table tr > td:last-child{
	width: 1%;
	white-space: nowrap;
}

