:root {
    --dayWidth: 7vmin;    /*These Widths are for adjusting the datepicker on mobile*/
    --totalWidth: 49vmin;

    --grey5: #202833;
    --grey4: #6e7a8a;
    --grey3: #aebecd;
    --grey2: #d5dde5;
    --grey1: #f8f9fa;

    --blue5: #081a35;
    --blue4: #112544;
    --blue3: #2e4b77;
    --blue2: #5277b0;
    --blue1: #97bef8;

    --yellow3: #ffc000; /*Note this is pure hue and should only be used as accent*/
} 

html body {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    color: var(--grey5);
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

body {
    font-family: Ariel, Verdana, sans-serif;
    background-color: var(--grey1);
    text-align: left;                             
}
h1, h3 {
    text-align: center;
}
p.legal{
    font-size:0.75em;
    color:var(--grey3);
    text-align: center;
}

header {
    background-image: linear-gradient(var(--grey1),var(--grey2));
}

#LogoHeader {
    position: absolute;
    top: 0px;
    left: 15px;
    z-index:101;
    width: auto;
    height: 122px;
}

body.onMobile #LogoHeader {
    display: none;
}

#TitleBlockHeader {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
body.onMobile header #LogoHeader {
    top: 9px;
    height: 165px;
}

#pageTitleNHL {
    font-size: 2em;
}
body.onMobile header #TitleBlockHeader {
    padding-top: 43px;
    padding-bottom: 10px;
}

#TitleBlockWrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
a {
    text-decoration: none;
}

header {
    background-color: var(--grey1);
    width: 100%;
    padding-top: 1px;
    min-width: 900px;
    
    position: -webkit-sticky;
    position: sticky;                                               
    top: 0px;
    z-index: 1000;
    ;
}

body.onMobile header {
    width: 100vw;
    min-width: none;
    position: relative;
}
.dropdown {
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 31px;
    min-width: 160px;
    background-image: linear-gradient(var(--blue4), var(--blue5));
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 4;
}

body.onMobile .dropdown-content {
    top: 52px;
    left: 100px;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: var(--grey1);
}

body.onMobile .dropdown-content a {
    font-size: 250%;
}
.dropdown-content a:hover {
    background-image: linear-gradient(var(--blue2), var(--blue3));
}
.dropdown:hover .dropdown-content {
    display: block;
}
.navigationList {
    
    white-space: nowrap;
    margin-top: 0;
    padding: 12px 6px 12px 6px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    
    text-align: center;
	box-shadow: 0 5px 5px -5px var(--grey5);
}
.navigationList.onMobile {
    font-size: 24pt;
}

.navigationA {
    color: var(--grey5);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 13px;
    padding-bottom: 12px;   
}
a.navigationA:hover {
    background-image: linear-gradient(var(--blue3),var(--blue4));
    color: var(--yellow3);
}
main {
    margin-left: auto;
    margin-right: auto;
}
body:not(.onMobile) #preTable {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}
div.tableDivNHL {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
main.onMobile {
    width: 100%;
}

/* Table -------------------------------------------------------------------------- */
table.sortable {
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 0px;
}

table.sortable.onMobile{
    white-space: nowrap;
    font-size: 2em;
}

div.tableDivNHL {
    margin-top: 1em;
}

body.onMobile div.tableDivNHL {
    overflow: scroll;
    max-width: 100vw;
    max-height: 80vh;
}
table.sortable.onMobile th {
    border-top: solid black 1px;
    margin-top: 0px;  
}

table.sortable.onMobile td.imageHeader {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    left: 0;
    margin-left: 0;
}

table.sortable th {
    padding: 7px 10px 10px 10px;
}
table.sortable.onMobile td {
    padding: 0.5em 10px;
}
table.sortable td {
    white-space: nowrap;
    color: var(--grey5);
    border-right: 1px solid var(--grey4);
    margin: auto;
    text-align: center;
}

table.sortable td:last-child {
    border-right: none;
}

table.sortable td.rank {
    border: none;
}
table.sortable .scheduleHeaderNHL {
    z-index: 500;
}
td.right {
    text-align: right;
}
td.center {
    text-align: center;
}

table.sortable td {
    padding: 7px 10px 10px 10px;
}
table.sortable th {
     top: 117px; /*132px;*/
     position: -webkit-sticky;
     position: sticky;
 
     padding-top: 1em;
     padding-bottom: 1em;
     text-align: center;
 
     background-color: var(--blue4);
     background-image:linear-gradient(var(--blue4), var(--blue5));
     color: var(--grey1);
     border-bottom: 0.25em solid var(--blue5);
 }
 table.sortable.onMobile th { /*prevents border of scrolling table behind from showing through*/
    border-left: 1px solid var(--blue4);
    border-right: 1px solid var(--blue4);
    top: 0px;
}
table.sortable.onMobile th:first-child {
    border-left: none;
}
table.sortable.onMobile th:first-child {
    border-right: none;
}
table.sortable th:hover {
    border-bottom: 0.25em solid var(--yellow3);
    cursor: pointer;
}
table.sortable th.ascending, table.sortable th.descending {  /*Might need to remove*/
    border-bottom: 0.25em solid var(--yellow3);
}
table.sortable.onMobile th.imageHeader {
    /*position: -webkit-sticky; /* for Safari 
    position: sticky;*/
    left: 0;
    margin-left: 0;
    z-index: 501;
    border-right: 2px solid var(--yellow3);
}
table.sortable tbody tr.evenRow {
    background-color: var(--grey1);
}
table.sortable tbody tr.oddRow {
    background-color: var(--grey2);
}
table.sortable tbody tr:hover {
    background-color: var(--grey3);
}
table.sortable tbody tr.evenRow td.today {
    background-color: var(--blue1);
}
table.sortable tbody tr.oddRow td.today {
    background-color: var(--blue2);
}
table.sortable tbody tr:hover td.today {
    background-color: var(--blue3);
    color: var(--yellow3) !important;
}
table.sortable.onMobile td.imageHeader{
    border-right: 2px solid var(--grey4);
}
table.sortable.onMobile tr.evenRow td.imageHeader{
    background-color: var(--grey1);
}
table.sortable.onMobile tr.oddRow td.imageHeader {
    background-color: var(--grey2);
}
table.sortable.onMobile tr:hover td.imageHeader{
    background-color: var(--grey3);
}
th .tooltiptext {
    visibility: hidden;
    width: 120px;
    text-align: center;
    padding: 5px 3px;
    
    /* Position the tooltip */
    position: absolute;
    top: 120%;
    left: 50%;
    margin-left: -60px;
    
    color: var(--grey1);
    background-image: linear-gradient(var(--blue4), var(--blue5));
}
    
@media (hover:hover){ /*only shows tooltip on desktop*/
    th .tooltiptext {
        z-index: 450;
    }
    
    
    th .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--blue4) transparent;
    }
}
@media (hover:hover){ /*only shows tooltip on desktop*/
    th:hover .tooltiptext {
        
        transition-delay: 0.5s;
        visibility: visible;
    }
}

@media not all and (hover:hover){ /*only shows tooltip on desktop*/
    th:active .tooltiptext {
        transition-delay: 0.5s;
        visibility: visible;
    }
}

td.GR { /*games remaining column*/
    font-size: 2em;
}
/*-----------------------------------------------------------------------------------------------*/
body.onMobile .logo {
    width: 10vw;
    height: 10vw;
}
/* Toggle Buttons -------------------------------------------------------------------------------*/


.toggleButton {
    margin: 1em 0;

	display:inline-block;
	cursor:pointer;
	font-family:Arial;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;

    box-shadow:inset 0px 1px 0px 0px var(--grey1);
    background-image: linear-gradient(var(--grey2) 5%, var(--grey3) 100%);
	border: 1px solid var(--grey4);
	border-left:none;
	color: var(--grey5);
	font-size: 1em;
	text-shadow:0px 1px 0px var(--grey1);
}
body:not(.onMobile) .toggleButton:first-of-type {
    border-radius: 6px 0 0 6px;
    border-left: 1px solid var(--grey4);
}
body:not(.onMobile) .toggleButton:last-of-type {
    border-radius: 0 6px 6px 0;
}
.toggleButton:hover {
    background-image:linear-gradient(to top, var(--grey2) 5%, var(--grey3) 100%);
}
.toggleButton.active {    
    box-shadow:inset 0px 1px 0px 0px var(--blue2);
    background:linear-gradient(to bottom, var(--blue3) 5%, var(--blue4) 100%);
    background-color: var(--blue2);
	border-color: var(--blue4);
	display:inline-block;
	cursor:pointer;
	color:var(--grey1);
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
    text-shadow:0px 1px 0px var(--blue5);
}
.toggleButton.active:hover {
    background-image: linear-gradient(to top,  var(--blue3) 5%, var(--blue4) 100%);
}
.toggleButton:only-of-type {
    border-radius: 6px;
}
body.onMobile .toggleButton {
    font-size: 4em;
    display: block;
    width: 100vw;
    margin: 0;
    text-align: left;
}
body.onMobile .toggleButton.active {
    color: var(--yellow3);
}
/*-----------------------------------------------------------------------------------------------*/
/* Week Selector --------------------------------------------------------------------------------*/
#SelectorCont {
    display: inline-block;
    text-align:center;
}
body.onMobile #SelectorCont {
    margin-bottom: 1em;
}
#weekSelector.onMobile{
    font-size: 2em;
    display: inline-block;
    text-align: center;
    padding: 0.75em 0.75em;
    -webkit-appearance: textfield;

    background-image: url(/images/TriangleArrow-Down.svg);
    background-size: 1em 1em;
    background-repeat: no-repeat;
    background-position: 95% 50%;
    width: 11em;
}
#weekSelector {
    margin-left: auto;
    margin-right: auto;
}
/*-----------------------------------------------------------------------------------------------*/

#nextWeek, #lastWeek {
    display: inline-block;
    color: var(--blue3);
    margin-left: 2em;
    margin-right: 2em;
}
#nextWeek.onMobile, #lastWeek.onMobile {
    font-size: 1.75em;
}

div.block {
    display: block;
    width: 100%;
    text-align: center;
}
body.onMobile .hint {
    font-size:2em;
}