#loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #0086AF; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* List tracks */

.searchContainer {
    position: relative;
    left: 55px;
    top: 0;
    padding: 2rem;
}

#filter {
    background-image: url('../../images/searchicon.png'); /* Add a search icon to input */
    background-position: 10px 12px; /* Position the search icon */
    background-repeat: no-repeat; /* Do not repeat the icon image */
    width: 90%;
    font-size: 16px; /* Increase font-size */
    padding: 12px 20px 12px 40px; /* Add some padding */
    border: 1px solid #ddd; /* Add a grey border */
    margin-bottom: 12px; /* Add some space below the input */
    margin-top: 16px;
}

ul.activeTracksList {
    overflow: hidden;
	overflow-y:auto;
	
    margin: 1em;
    padding: 0em;
    list-style: none;
    width: 92vw;
}

    ul.activeTracksList li {
        padding: 0.50em 1em;
        border-bottom: 2px solid;
        margin: 0.5em;
    }

    ul.activeTracksList a {
		display: inline-block;
        padding-left: 1em;
        text-decoration: none;
    }

    ul.activeTracksList h3 {
        padding: 0;
        font-size: 1.5em;
        font-weight: 700;
        margin: 0;
    }


    ul.activeTracksList.dark a {
        color: #E5E5E5;
    }
	
/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  margin-top: 10px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 25px;
    color: #818181;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* The side navigation menu */
.navContent{
	position: absolute;
	top: 0px;
	margin-left: 30px;
	margin-right: 30px;
	margin-bottom: 20px;
	margin-top: 5px;
}

.navLogo{
	width: 220px;
	float: center;
}

.sidenav {
    height: 100%; /* 100% Full-height */
    width: 55px; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    left: 0;
    background-color: #333; 
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 10px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover, .offcanvas a:focus{
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
	margin-left:50px;
	padding: 20px;
}

#blank{
	padding-left: 65px;
	padding-right: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	transition: margin-left .5s;
}

/* hamburger menu*/
.menuButton {
    display: inline-block;
	position: absolute;
    cursor: pointer;
	margin: 10px;
	top:	0;
	right: 0;	
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

/* Rotate first bar */
.change .bar1 {
	-webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
	transform: rotate(-45deg)  translate(-9px, 6px);
    /*width: 20px;
	-webkit-transform: translate(-1px, 3px) rotate(-45deg)  ;
    transform: translate(-1px, 3px) rotate(-45deg)  ;*/
}

/* Fade out the second bar */
.change .bar2 {
    opacity: 0;
}

/* Rotate last bar */

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
	transform: rotate(45deg) translate(-8px, -8px);
	/*width: 20px;
	-webkit-transform: translate(-1px, -3px) rotate(45deg) ;
    transform: translate(-1px, -3px) rotate(45deg) ;*/
}

.links{
	margin-top: 10px;
}

.navContent ul{
	list-style-type: none;
    margin: 10px;
    padding: 0px;
}

.navContent li{
    margin: 10px;
    padding: 0px;
}

.event {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    font-size: 1.4em;
    width: 350px;
    color: #e1e6ef;
    padding-top: 10px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    /*overflow-x: hidden;*/ /* Disable horizontal scroll */
    /*overflow-y: hidden;*/ /* Disable horizontal scroll */
    margin-left: 10px;
    /*white-space: pre;*/
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.navDivision {
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	text-align: left;
	font-size: 1.2em;
	padding-top: 10px;
	margin-top: 5px;
    color: #e1e6ef; 
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
	overflow-x: hidden; /* Disable horizontal scroll */
	overflow-y: hidden; /* Disable horizontal scroll */
	white-space: pre;
}

.navRace {
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	text-align: left;
	font-size: 1em;    
    color: #e1e6ef; 
    overflow-x: hidden; /* Disable horizontal scroll */ 
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
	overflow-x: hidden; /* Disable horizontal scroll */
	overflow-y: hidden; /* Disable horizontal scroll */
	white-space: pre;
}

table {
    width: 99%;
    padding: 10px;
	margin: 10px;
}

th {
    background-color: #5A9C50;
    color: white;
    height: 30px;
    text-align:center;
    padding:5px;
}

.thLeft{
    background-color: #5A9C50;
    color: white;
    text-align:left;
    padding-left:5px;
}

.thhLeft{
	background-color: transparent;
    color: #5A9C50;
    height: 35px;
	font-size: 1.2rem;
    text-align:left;
    padding:5px;
}

.thhLeftLink{
	cursor: pointer;
	background-color: transparent;
    color: #5A9C50;
    height: 35px;
	font-size: 1.2rem;
    text-align:left;
    padding:5px;
}

td{
    text-align:center;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: bold;
}

.tdSmall{
    text-align:center;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: normal;
}

.tdLeft{
    text-align:left;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
	font-weight: bold;
	white-space: pre;
}

.tdLeftSmall{
    text-align:left;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: normal;
	white-space: pre;
}

.tdRightSmall{
    text-align:right;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: normal;
	white-space: pre;
}

.spanFloatLeft{
	float:left;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: normal;
}

.spanFloatRight{
	float: right;
    padding:5px;
    color: rgba(28, 54, 83, 0.8);
    font-weight: normal;
}

.resultWrapper {
    display: flex; /* establish flex container */
    flex-direction: row; /* default value; can be omitted */
    flex-wrap: nowrap; /* default value; can be omitted */
    justify-content: space-between;
}

.resultWrapper span{
    white-space: nowrap;
	float: right;
}

    .resultWrapper span:first-child {
        margin-right: 10px;
		float: left;
    }

    .resultWrapper span:last-child{
        margin-left: 10px;
    }
	
.bump{
	color: #5A9C50;
}

.tq{
	color: #5A9C50;
}

.alternatingTable tr:nth-child(even) {
    background-color: #E5E5E5
}

.resultTable {
    border: 1px solid black;
	border-collapse: collapse;
}
.resultTable th {
    border: 1px solid black;
	border-collapse: collapse;
}
.resultTable td {
    border: 1px solid black;
	border-collapse: collapse;
}

a {
    color: rgba(28, 54, 83, 0.7);
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
    -webkit-transition-duration: 200ms;
    transition-duration: 200ms;
    -webkit-transition-property: color, border-color, background-color;
    transition-property: color, border-color, background-color;
}

html, body {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: rgba(28, 54, 83, 0.7);
    margin: 0; /* remove default margin */
    padding: 0; /* remove default padding */
    width: 100%; /* take full browser width */
    height: 100%; /* take full browser height*/
}



#wrapper {
	min-height:100%;
    height:auto !important;
    height:100%;
	position:relative;
}

#header {

}

#content {
    margin-bottom:30px;
}

.raceContent{
    width:100%; 
    overflow-x:auto;
	z-index: 2;
}

.lapChartCanvas{
    margin-top: 10px;
    width: 99% !important;
    height: 500px !important;
	position: relative;
}

.divisionName{
	cursor: pointer;
    position:relative; 
	left:1rem; 
	font-size: 2.6rem; 
	font-weight:300;
	padding-bottom: 20px;
	white-space: pre;
}

.raceNameContainer {
    width: 99%;
}

.raceName{
    position:relative; 
	left:1rem; 
	font-size: 2.6rem; 
	font-weight:300;
	padding-bottom: 20px;
	white-space: pre;
}

.raceNavigation{
	cursor: pointer;
	position:relative; 
	left:1rem; 
	color: #5A9C50;
	font-size: 2.6rem; 
	font-weight:300;
	padding-bottom: 20px;
	white-space: pre;
}


.trackHome{
	display: flex;
	align-items: center;
	height: 100%;
	width: 100%;
	flex-direction: column;
}

.trackHome h2{
	position: relative;
	text-align: center;
}

.selectionLogo {
    width: 100%;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
}

.divResults{
	height: 100%;
	width: 100%;
	
	position: relative;
	align-items: center;
	justify-content: top;
	font-size: 1rem; 
	font-weight:400;
	overflow-x: auto;
	max-width: 100%;
}

.qualifyingFormat {
    position: relative;
    float: left;
    left: 0.6rem;
    font-size: 1.2rem;
    font-weight: 400;
	white-space: pre;
}

.qualyFormatContainer{
	margin: 10px;
	background-color: #E5E5E5;
}

.startTimeFormat {
    position: relative;
    float: right;
    left: 0.6rem;
    font-size: 1.2rem;
    font-weight: 400;
    white-space: pre;
}

.startTimeContainer {
    float: right;
    margin: 10px;
}

.raceLapsRow{
	cursor: pointer;
}

.teamLapsRow{
	cursor: pointer;
	background-color: #E5E5E5;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;  /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	align-items: center;
	justify-content: center;
}

/* Modal Content Box */
.modalContent {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 10px;
    border: 1px solid #888;
	display: flex;
	flex-direction: row;
	white-space: pre;
	font-size: 1.2rem;	
    /*width: 60%;  Could be more or less, depending on screen size */
}

.modalText{
	padding-left: 10px;
	padding-right: 20px;
	padding-top: 10px;
	padding-bottom: 5px;
}

/* The Close Button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,

.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

/*===========================================================================
Practice
===========================================================================*/

.pContestantName{
    color: #FFF; 
    font-size: 1.4rem; 
    text-align:left;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
}

.pContestantTx {
    color: #FFF;
    font-size: 0.8rem;
    text-align: right;
	
}

.pLapsHead {
        color: #FFF;
        background-color: #0086AF;
        font-size: 1.2rem;
        text-align: left;
        height: 25px;
		background-color: #5A9C50;
    }

.practiceList {
    margin: 0; 
	padding: 0; 
    list-style-type: none; 
	list-style-image: none;
}

.practiceList li{
    float: left;
    margin: 10px 10px;
}

.practiceLapTable {
    padding-top: 8px;
    padding-bottom: 15px;
    margin: 0 auto 0 auto;
    background-color: #0086AF;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    color: #446bb3;
    padding: 10px;
    table-layout: fixed;
	background-color: #5A9C50;
}

.practiceLapTable td {
    
    padding: 5px;
    white-space: nowrap;
}

.practiceLapsTable {
    width: 270px;
    
    padding-top: 8px;
    padding-bottom: 5px;
    margin: 0 auto 10px auto;
    background-color: #0086AF;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    color: #446bb3;
    padding: 10px;
	background-color: #5A9C50; 
}

.practiceLapsTable thead td {
        text-align: center;
        padding: 5px;
        white-space: nowrap;
    }
.practiceLapTable table { 
	background-color : #fff; 
	color : #453;
	width: 93%
}

.practiceLapTableHead 
    { 
        background-color: #5A9C50; 
        color :#fff; 
        padding:4px; 
        line-height:30px 
    }
	
	/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

@media screen and (max-width: 480px) { 
  ul.activeTracksList h3 {
        font-size: 24px;
    }
  ul.activeTracksList a {
        padding-left: 16px;
    }
}
