﻿html {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

@font-face {
    font-family: displayfont;
    src: url(/Shared/Fonts/Display/Barlow-SemiBold.ttf);
}
/*
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/Barlow-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/Barlow-SemiBold.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/Barlow-Bold.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/LobsterTwo-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/AbrilFatface-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/Comfortaa-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/FredokaOne-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/Monoton-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/SpecialElite-Regular.ttf); }
@font-face { font-family: displayfont; src: url(/Shared/Fonts/Display/PoiretOne-Regular.ttf); }
*/

@font-face {
    font-family: bodyfont;
    src: url(/Shared/Fonts/Body/Barlow-Regular.ttf);
}
/*
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/NotoSerif-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/OpenSans-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/PTSans-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/PTSerif-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/SourceSansPro-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/Lora-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/Lato-Regular.ttf); }
@font-face { font-family: bodyfont; src: url(/Shared/Fonts/Body/Barlow-Regular.ttf); }
*/



body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-color: black;
    color: white;
    line-height:1.6;
    font-family: bodyfont, Arial, sans-serif;
    font-size: 2.5vh;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

@media only screen and (orientation:portrait) { body { font-size: 2.5vw; }}

body.light {
    background-color: white;
    color: black;
}

h1 {
    font-family: displayfont, Arial, sans-serif;
    font-size: 3em;
    margin-top: .33em;
    margin-bottom: .33em;
}

h2 {
    font-size: 2.2em;
    margin-top: .45em;
    margin-bottom: .45em;
    font-family: displayfont, Arial, sans-serif;
}
h3 {
    font-size: 1.6em;
    margin-top: .55em;
    margin-bottom: .55em;
    font-family: displayfont, Arial, sans-serif;
}

h4 {
    font-size: 1.5em;
    margin-top: .6em;
    margin-bottom: .6em;
}

a {
    color:inherit;
    text-decoration:underline;
}

p {
    margin-top:.8em;
    margin-bottom:.8em;
}

input {
    cursor: pointer;
}

input, textarea, button, select {
    font-family: bodyfont, Arial, sans-serif;
    font-size: inherit;
    font-family: inherit;
    width:auto;
    border-width:1px;
    outline:none;
    box-sizing:border-box;
}

input.Disabled {
    background-color: rgba(255,255,255,.5);
}

input[type=submit], input[type=button], button {
    font-size: 1.0em;
    padding: .2em .5em .2em .5em;
    margin-bottom:.2em;
    background-color: rgba(255,255,255,.2);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.4);
    border-radius: .2em;
    cursor: pointer;
}

input[type=submit]:hover, input[type=button]:hover, button:hover { color: rgba(255,255,255,1); }
input[type=submit]:active, input[type=button]:active, button:active { box-shadow: inset 0 -1px rgba(255, 255, 255, 0.4); }

.light input[type=submit], .light input[type=button], .light button { background-color: rgba(0,0,0,.2); }

article.page {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    border: 1px solid black;
    overflow-x: hidden;
    overflow-y: auto;
    background-size: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    background-color: rgba(0,50,50,0.5);
    background-blend-mode: multiply;
}

body.light article.page {
    background-color: rgba(220,255,255,0.8);
    background-blend-mode: lighten;
}

.content {
    margin: .5em;
}

/* Standard Helpers -------------------------------------------------- */

.hidden {
    display: none !important;
}

.pointer {
    cursor: pointer;
}

.overflow {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header -------------------------------------------------- */

article header {
    position:relative;
    padding-top:.5em;
    margin:0;
    font-size:1.8em;
    margin-bottom:.5em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

body.light article header {
}

article header .title {
    padding: 0;
    margin: 0 auto;
    font-family: displayfont, Arial, sans-serif;
    text-align: center;
    line-height: 1.6;
    overflow: hidden;
}

article header .Logo {
    position: absolute;
    display: inline-block;
    left:1.5em;
    width:10em;
    height:100%;
    cursor: pointer;
    background-image:url(/Shared/Images/Logo/dark.png);
    background-size:contain;
    background-repeat:no-repeat;
    background-position:0% 50%;
}

.light article header .Logo {
    background-image: url(/Shared/Images/Logo/light.png);
}

article header .button {
    position:relative;
    display:inline-block;
    margin-left:.1em;
    height:1.6em;
    width: 1.6em;
    cursor: pointer;
}

article header .button.right {
    position: absolute;
    display: inline-block;
    right: .1em;
}

article header .button.right#LeaderboardButton {
    position: absolute;
    display: inline-block;
    right: 1.8em;
}

article header .button svg {
    position:absolute;
    display:block;
    top:10%;
    left:10%;
    width:80%;
    height:80%;
    fill:white;
}

    article header .button svg:hover {
        -webkit-filter: drop-shadow(0 0 .25em rgba(255, 255, 255, .9));
        filter: drop-shadow(0 0 .25em rgba(255, 255, 255, .9));
    }


.light article header .button svg {
    fill: black;
}

article header #HistoryButton {
    position: absolute;
    display: inline-block;
    width: auto;
    right:.5em;
    font-size:.8em;
}

article header #HistoryButton:hover {
    text-shadow: 0 0 .3em white;
}

article header #HistoryButton svg {
    left:-2em;
}


article footer {
    border-top: 1px solid rgba(255,255,255,.5);
    padding: .5em;
    margin-top:4em;
    color:rgba(255,255,255,.4);
}

.light article footer {
    border-top: 1px solid rgba(0,0,0,.2);
    padding: .5em;
    color: rgba(0,0,0,.3);
}

svg {
    display:inline-block;
    position:relative;
    width: 1em;
    height: auto;
    fill: white;
}

.balancetext svg {
    width: 1.2em;
    height: 1.2em;
    vertical-align: text-bottom;
    cursor:pointer;
}



.light svg {
    fill: black;
}

table.transpose {
    font-size: 1em;
    border-collapse: collapse;
    width:100%;
}

table.transpose a {
    text-decoration:none;
}

table.transpose a:hover {
    text-decoration:underline;
}

table.transpose th {
   text-align:left;
   color:rgba(0,0,0,.7);
   background-color:rgba(255,255,255,.9);
}

table.transpose tr:hover th {
    color: black;
    background-color:white;
}

table.transpose.events th:nth-child(3) {
    text-align:right;
}

table.transpose th svg {
    fill: black;
    vertical-align:middle;
}

table.transpose.events th:nth-child(1) {
    width:30%;
}

.light table.transpose th {
    text-align: left;
    color: white;
    background-color: rgba(0,0,0,.5);
}

table.transpose tbody tr {
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding: 0;
}

table.transpose.events tr.Even {
    border-bottom: .2em solid rgba(0,0,0,1);
}

table.transpose.events tr.Odd {
}


.light table.transpose tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.2);
}

table.transpose tbody tr.rule {
    border-bottom: none !important;
}


table.transpose tbody tr:nth-child(odd) {
    background: rgba(255,255,255,.1);
}

table.transpose.bracket tbody tr:nth-child(odd) {
    background: none;
}

.light table.transpose tbody tr:nth-child(even) {
    background: rgba(0,0,0,.05);
}

table.transpose.events.bracket tr {
    border-bottom: none;
}

table.transpose.events.bracket th {
    border-top: 1.5em solid #001919;
    border-bottom: .2em solid #001919;
    padding-top: .4em;
    padding-bottom: .4em;
    background-color: white;
}

table.transpose.events.bracket tr.Even {
    border-bottom: .2em solid rgba(255,255,255,0.9);
}

table.transpose.events.bracket tr.Last {
    border-bottom: none;
}

table.transpose.events.bracket td span.seed {
    display:inline-block;
    width:1.2em;
    text-align:right;
    margin-right:.5em;
}

table.transpose.events.bracket td.Correct {
    background-color:#008000;
}

table.transpose.events.bracket td.Incorrect {
    background-color: #800000;
}

table.transpose.events.bracket td.ActualWinner {
    background-color: #80ff80;
}

table.transpose.events.bracket td.ActualLoser {
    background-color: #ff8080;
}

table.transpose td, table.transpose th {
    padding-left: .2em;
    padding-right: .2em;
    line-height: 1.6;
    white-space: nowrap;
}


table.transpose tr.Future {
    opacity: 0.3;
}

table.transpose tbody tr.rule {
    background:transparent !important;
}

table.transpose tbody tr.rule td {
    font-size: .5em;
}


table.transpose tr.Complete td.Win { color: rgba(200,255,200,0.7); }
.light table.transpose tr.Complete td.Win { color: rgba(80,160,80,0.7); }

table.transpose tr.Complete td.Lose { color: rgba(255,200,200,0.7); }
.light table.transpose tr.Complete td.Lose { color: rgba(160,80,80,0.7); }

table.transpose tr.Complete td.Tie:after {
    display:inline;
    content:" (Tie)";
}

table.transpose tr.Complete td.Tie.ForceLoss { color: rgba(255,200,200,0.7); }
.light table.transpose tr.Complete td.Tie.ForceLoss {color: rgba(160,80,80,0.7);}

table.transpose tr.Complete td.Tie.ForceWin { color: rgba(200,255,200,0.7); }
.light table.transpose tr.Complete td.Tie.ForceWin { color: rgba(80,160,80,0.7); }

table.transpose tr.Complete td.Tie.Push { color: rgba(160,160,160,1); }
.light table.transpose tr.Complete td.Tie.Push {color: rgba(128,128,128,1);}

table.transpose tr.Complete td.Tie.Push:after {
    display: inline;
    content: " (Tie Returns)";
}

table.transpose tr.Closed td.Team { color: rgba(255,255,255,.7); }
.light table.transpose tr.Closed td.Team { color: rgba(0,0,0,.6); }

table.transpose tr.Closed td.Team.Win { background-color: rgba(0,80,0,.7); }
.light table.transpose tr.Closed td.Team.Win { color: rgba(255,255,255,.7); }

table.transpose tr.Closed td.Team.Lose { background-color: rgba(80,0,0,.7); }
table.transpose tr.Closed td.Team.Lose { color: rgba(255,255,255,.7); }

table.transpose tr.Open td.Team {
    cursor: pointer;
    color:black;
    background-color: rgba(255,255,0,.7);
    transition:background-color .3s, color .3s;
}

table.transpose tr.Open td.Win {
    background-color: rgba(0,0,200,.7);
    color:white;
}

table.transpose tr.Open td.Lose {
    background-color: transparent;
    color: rgba(255,255,255,.5);
}


table.transpose tr.Open:hover td.Team {
    background-color: transparent;
    color: white;
}

table.transpose tr.Open td.Team:hover {
    background-color: rgba(255,255,0,.8);
    color: black;
}

table.transpose tr.Open td.Team:active {
    background-color: rgba(0,0,200,.5);
    color: white;
}


table.transpose td svg, table.transpose th svg {
    width:1.5em;
    height:1.5em;
    top:-.15em;
}

table.transpose tbody tr:hover {
    background: rgba(255,255,255,.3);
}

table.transpose.bracket tbody tr:hover {
    background: rgba(255,255,255,.3);
}

.light table.transpose tbody tr:hover {
    background: rgba(0,0,0,.2);
}

table.transpose td.Team, table.transpose th.Team {
    position:relative;
    padding-left: 1.4em;
    top:0;
    overflow:hidden;
}

table.transpose tr.Complete td {
    position: relative;
    padding-left: 1.4em;
    top: 0;
    overflow: hidden;
}

table.transpose tr.Open td.Team:after {
    content: "";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: -1em;
    top: 0;
    transition: left .4s;
}

table.transpose tr.Open td.Team.Win:after {
    content: "✓";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}

table.transpose tr.Complete td.Team.Bet:after {
    content: "✗";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}

table.transpose tr.Closed td.Team.Win:after {
    content: "✓";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}

table.transpose tr.Complete td.Picked:after {
    content: "✓";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}

table.transpose tr.Open:hover td.Team:after {
    content: "";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}

table.transpose tr.Open td.Team:hover:after {
    content: "";
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0.5em;
    top: 0;
}


table.events tr td select {
    width: 100%;
    height: 2.0em;
    border: none;
    background-color: black;
    color: white;
    pointer-events: none;
}

table.events tr.Open td select {
    background-color: white;
    color:black;
    pointer-events:all;
}

table.pools tr {
    cursor:pointer;
}

table.pools tr td:nth-of-type(4) {
    text-align:right;
}

table.pools tr td:nth-of-type(5) {
    text-align: right;
    width:6em;
}

table.pools tr.Disabled td {
    color:rgba(255,255,255,.6);
}


table.account tr td:nth-of-type(3) {
    text-align: right;
}


/* Forms */

.flex {
    display: flex;
}

.flex.center {
    justify-content: center;
    align-content: center;
}


.form {
    font-size: 1em;
    display: block;
    position: relative;
    overflow: visible;
    line-height:1.3;
    margin-top:1em;
    margin-bottom:2em;
}



.form input, .form textarea, .form button, .form select {
    width: 18em;
    padding:.2em;
}

.form input[type="radio"], .form input[type="checkbox"] {
    width: 2em;
}

@media only screen and (max-width:960px) {
    .form {
        font-size: 1.8vw;
    }

    .form input, .form textarea, .form button, .form select {
        width: 15em;
    }
}


.form textarea {
    height: 5em;
}

.form table {
    font-size: 1.5em;
    width: auto;
}

.form table td {
    position:relative;
}

.form table td:nth-of-type(1) {
    padding-right: .5em;
}

.form .Error { color: rgba(255,80,80,1); }
.light .form .Error { color: rgba(160,0,0,1); }


.form tr.Error {
    font-size: .8em;
    line-height:1.2;
    padding:0;
}

.form tr.Error td {
    padding: 0;
    position:relative;
    top:-.2em;
    padding-bottom: .2em;
}

.form tr.Error:before {
    content:"";
    display:table-cell;
}



.SettingsItems {
    font-size: 2vw;
    margin: 0;
    padding-top: 1em;
    padding-bottom: 1em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: left;
}

    .SettingsItems p {
        font-size: .8em;
        color: white;
        text-align: left;
        margin: 0;
        padding: 0;
        margin-bottom: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }

@media screen and (max-width:1000px) {
    .SettingsItems p {
        font-size: 1.1em;
    }
}

@media screen and (max-width:700px) {
    .SettingsItems p {
        font-size: 1.3em;
    }
}


A.SettingsItem {
    display: inline-block;
    left: 0;
    font-weight: 200;
    text-decoration: none;
    width: 23%;
    height: 3em;
    line-height: 3em;
    font-size: 1em;
    position: relative;
    color: black;
    border: 1px solid rgb(194, 194, 194);
    text-align: left;
    vertical-align: middle;
    margin-top: .5em;
    margin-right: 1%;
    opacity: 1;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 1em;
    background-color: #ffffff;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    border-radius: .1em;
    transition: all 200ms;
}

@media screen {
    A.SettingsItem {
        width: 93%;
        font-size: 2.3em;
        left: 4%;
    }
}

@media screen and (min-width:360px) {
    A.SettingsItem {
        width: 47%;
        font-size: 1.4em;
        left: 2%;
    }
}

@media screen and (min-width:640px) {
    A.SettingsItem {
        width: 31%;
        font-size: 1.2em;
        left: 1.5%;
    }
}

@media screen and (min-width:1024px) {
    A.SettingsItem {
        width: 23%;
        font-size: 1em;
        left: 1.5%;
    }
}

@media screen and (min-width:1280px) {
    A.SettingsItem {
        width: 18%;
        font-size: .8em;
        left: 1.5%;
    }
}

A.SettingsItem:hover {
    box-shadow: 0px 0px .3em 0px #999999;
}

A.SettingsItem:active {
    box-shadow: inset .05em .05em .05em #999999;
}


.SettingsItem img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    height: 1.5em;
    padding: .25em;
}

.SettingsItem:hover img {
}

.SettingsItem div {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    padding: .45em;
    padding-left: .6em;
}


.SettingsItem div svg {
    fill: rgba(0,0,0,.5);
    width: 100%;
    height: 100%;
}

.SettingsItem:hover div svg {
    fill: rgba(0,0,0,.9);
}

.SettingsItem span {
    font-size: .8em;
    display: inline-block;
    line-height: normal;
    margin-left: 3.9em;
    padding-right: 1em;
    color: rgba(0,0,0,.7);
    font-weight: bold;
}

.SettingsItem:hover span {
    color: black;
}

article .Filters {
    display: block;
    text-align: center;
}

article .Filters .Region {
    display: none;
    text-decoration: none;
    background-color: rgba(255,255,255,.9);
    color: black;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: .4em;
    margin-top: .5em;
    margin-bottom: 1em;
    padding-top: 0em;
    padding-bottom: 0em;
    padding-left: .5em;
    padding-right: .5em;
    margin-right: .2em;
    margin-left: .2em;
    cursor: pointer;
}

article .Filters .RegionSep {
    display: none;
    position:relative;
    border-right:2px solid rgba(255,255,255,.6);
    margin-right:.5em;
    margin-left:.5em;
    width:2px;
    top:-.1em;
    height:1.3em;
    vertical-align:middle;
}


article .Filters .Region:hover {
    box-shadow: 0 0 .6em rgba(255,255,255,.8);
    transition: all .05s;
}

article .Filter {
    display:inline-block;
    text-align:center;
}

article .Filter a {
    display: inline-block;
    text-decoration: none;
    background-color: rgba(0,0,0,.4);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: .4em;
    margin-top: .5em;
    margin-bottom: 1em;
    padding-top: 0em;
    padding-bottom: 0em;
    padding-left: .5em;
    padding-right: .5em;
    margin-right: .2em;
    margin-left: .2em;
    cursor:pointer;
}

article .Filter a:hover {
    background-color: rgba(255,255,255,.5);
    box-shadow: 0 0 .6em rgba(255,255,255,.8);
    transition: all .05s;
}

article .Filter a.Selected, article .Filter a:active {
    background-color: rgba(255,255,255,.9);
    color: black;
}

article .Regions {
    text-align: center;
}

article .Regions a {
    display: inline-block;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0);
    margin-top: .1em;
    margin-bottom: .5em;
    margin-right: .2em;
    margin-left: .2em;
    cursor: pointer;
    line-height:1;
}

article .Regions a img {
    height:1.5em;
    width:auto;
}

article .Regions a.Selected {
    box-shadow: 0 0 .6em rgba(255,255,255,.8);
    transition: all .5s;
    border: 2px solid rgba(255,255,255,1);
}

.Scrim {
    display:block;
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    text-align:center;
    background-color:rgba(80,80,80,.4);
}

.Scrim ul {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: black;
    list-style-type: none;
    font-size: 4vh;
    padding: 1em;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    text-align:center;
}

.Scrim ul li {
    display:inline-block;
    line-height: 2;
    background-color: #3295e8;
    color: rgba(255,255,255,.85);
    cursor: pointer;
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    border-radius: .3em;
    border: 2px solid white;
    width:20em;
    min-width:55%;
    max-width:90%;
    transition: margin-bottom .3s;
}

.Scrim ul.Open li {
    margin-bottom:.3em;
}


.Scrim ul li:first-child {
}

.Scrim ul li:hover {
    box-shadow: 0 0 .2em white;
    background-color: #489fe8;
    color: white;
    text-shadow: 0 0 .1em rgba(255,255,255,2);
}

.Scrim ul li.Selected {
    color: white;
    background-color: #2f6797;
}

.Scrim ul li.Selected:after {
    content: " ✓";
}

.Scrim ul li.Default {
    color: white;
    background-color: #489fe8;
    font-weight: bold;
}

.Scrim ul li:active {
    background-color: #3b83c0;
}

