@font-face {
	font-family: "nunito";
	src: url(Nunito-Bold.ttf) format("truetype");
}

html {
	font-size: 16px;
	/* 1px = .75pt
      16px =  12pt 

      22pt = (22 / 0.75) / 16 = 1.83rem
	*/
}

body {
	margin: 20px;
	font-family: nunito, sans-serif;
	font-size: 1rem;
	xfont-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: left;
	background-color: #000;
	padding: 0px;
	xoverflow: hidden;
	xposition: relative;
	xcursor: none;
}

body.fixed {
	overflow: scroll;
}

#raceTable.fixed {
	overflow: scroll;
}

.race-title.fixed {
	margin-top: 83px;
}

#announcement_wrapper {
	position: absolute;
	top: 500px;
	left: 550px;
	height: 400px;
	width: 800px;
	line-height: 400px;
	border: 5px solid white;
	background: linear-gradient(0deg, rgba(100,29,29,1) 0%, rgba(150,45,45,1) 100%);
	display: none;
	z-index: 2000;
}

#announcement {
	position: relative;
	display: inline-block;
	width: 100%;
	vertical-align: middle;
	line-height: normal;
	xfont-size: 24pt;
	font-size: 2rem;
	text-align: center;
}

.moveup {
	background-image: url(moveup.png);
	background-repeat: no-repeat;
	background-position: -3px;
	background-size: 60%;
	color: #00FF00;
}

.movedown {
	background-image: url(movedown.png);
	background-repeat: no-repeat;
	background-position: -3px;
	background-size: 60%;
	color: #FF0000;
}

.race-title {
	xfont-size: 22pt;
	font-size: 1.8125rem;
	color: #F0F000;
	overflow: hidden;
	text-align: center;
	height: 42px;
}

#footerwrapper {
	xfont-size: 33pt;
	font-size: 2.75rem;
	position: fixed;
	color: #F0F000;
	overflow: hidden;
	bottom: 0px;
	border-bottom: 20px solid #000;
	background-color: black;
	z-index: 1000;
	width: calc(100% - 40px);
}

#footerwrapper.fixed {
	bottom: inherit;
	top: 0px;
	border-top: 20px solid #000;
	border-bottom: 0px solid #000;
}

#footer {
	xfont-size: 33pt;
	font-size: 2.75rem;
	color: #F0F000;
	overflow: hidden;
	height: 63px;
	background-color: black;
}

#clock {
	xwidth: 150px;
	float: left;
	height: 100%;
	background-color: red;
	text-align: left;
	border-right: 3px solid #000;
	padding: 0px 0px 1px 5px;
	background: #1D658D;
	background: linear-gradient(0deg, rgba(29,100,140,1) 0%, rgba(45,150,210,1) 100%);
}

#comment {
	height: 100%;
	background-color: black;
	text-align: center;
	background: #1D658D;
	background: linear-gradient(0deg, rgba(29,100,140,1) 0%, rgba(45,150,210,1) 100%);
}

.comment2 {
	font-size: 2.75rem;
	color: black;
	overflow: hidden;
	border-bottom: 2px solid #000;
	height: -2px; /* 42px */
	text-align: center;
	background: yellow;
	display: none;
	line-height: 1.1;
}

.count-down {
	xfont-size: 33pt;
	font-size: 2.75rem;
	color: #ffffff;
	overflow: hidden;
	xborder-bottom: 2px solid #000;
	xheight: -2px; /* 42px */
	text-align: center;
	padding-top: 0px;
	background: #0f5b3f;
	display: none;
	background: linear-gradient(0deg, rgba(16,128,23,1) 0%, rgba(33,236,46,1) 100%);
}

#remaining {
	xwidth: 150px;
	float: right;
	height: 100%;
	text-align: right;
	border-left: 3px solid #000;
	xbackground: #1D658D;
	xbackground: linear-gradient(0deg, rgba(29,100,140,1) 0%, rgba(45,150,210,1) 100%);
}

.remainingred {
	background: linear-gradient(0deg, rgba(140,29,29,1) 0%, rgba(210,45,45,1) 100%);
	color: white;
}

.remaininggreen {
	background: linear-gradient(0deg, rgba(20,100,20,1) 0%, rgba(33,150,33,1) 100%);
	color: white;
}

.remainingblue {
	background: linear-gradient(0deg, rgba(29,100,140,1) 0%, rgba(45,150,210,1) 100%);
}

.race-table {
	overflow: hidden;
	xfont-size: 18pt;
	font-size: 1.5rem;
	line-height: 1;
	position: relative;
	height: 2000px;
	xheight: 100vh;
}

.race-header {
	overflow: hidden;
	height: 24px;
	white-space: nowrap;
	line-height: 1;
}

.race-header div {
	overflow: hidden;
	display: inline-block;
	height: 100%;
	padding: 0px 5px 0px 5px;
}

.race-row {
	overflow: hidden;
	white-space: nowrap;
	height: 38px;
	color: #fff;
	line-height: 1;
	margin-top: 3px;
	margin-color: #000;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 100;
}

.race-row div {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	height: 100%;
	padding: 3px 5px 0px 5px;
}

.race-row > div {
	background: #184370;
	xbackground: linear-gradient(0deg, rgba(24,67,112,1) 0%, rgba(36,100,168,1) 100%);
	background: linear-gradient(0deg, rgba(5,13,22,1) 0%, rgba(7,20,33,1) 100%);
	margin-right: 3px;
}

.race-row-odd > div {
	background: #1D658D;
	xbackground: linear-gradient(0deg, rgba(29,100,140,1) 0%, rgba(45,150,210,1) 100%);
	background: linear-gradient(0deg, rgba(12,40,76,1) 0%, rgba(18,60,84,1) 100%);
	margin-right: 3px;
}


#summary_top > div {
	background: #000000;
}

