html {
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -o-text-size-adjust: none;
    margin: 0;
    overflow: auto;
}

body {
    font-family: Arial,sans-serif;
    background-color: #111;
    color: #aaa;
    font-size: 120%;
    padding: 0;
    margin: 0;
}

::-webkit-scrollbar {
    display: none;
    /*width: 10px;
    height: 10px;*/
}

::-webkit-scrollbar-corner {
    background: #222;
}

::-webkit-scrollbar-track {
    width: 10px;
    height: 100px;
}

::-webkit-scrollbar-thumb {
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

#frame {
    display: flex;
    padding-left: calc(100vw - 100%);
}

#mainContainer {
    display: flex;
    flex-direction: row;
    min-height: 480px;
}

#content {
    display: flex;
    flex-direction: row;
}

#contentLeft,
#contentRight {
    width: 800px;
}

#contentRight.hidden {
    display: none;
}

@media only screen and ( min-width: 802px ) {

    ::-webkit-scrollbar {
        display: initial;
    }

    #mainContainer {
        margin: 0 auto;
    }

    #dataContainer.mainContentBorder {
        border: 1px solid #222;
        border-top: none;
    }

    #contentRight.mainContentBorder {
        border-left: 1px solid #222;
    }

}

#debugContent {
    width: 200px;
    padding: 10px;
    padding-top: 5px;
    line-height: 150%;
}
#debugContent.hidden {
    display: none;
}

#demoList {
    padding-bottom: 20px;
}

#demoList button {
    padding: 3px 5px;
}



table,
table th,
table td {
    border-collapse: collapse;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}



a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}
a:hover {
    color: #ddd;
}



#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    height: 25px;
}

#header #headerMenu {
    display: flex;
    align-items: flex-start;
}
#header #headerMenu #back.hidden {
    display: none;
}
#header #headerMenu #back {
    font-size: 150%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    width: 25px;
    height: 25px;
    line-height: 20px;
    margin-right: 5px;
    border: 1px solid #333;
}
#header #headerMenu #back a {
    display: block;
    width: 25px;
    height: 25px;
    overflow: hidden;
}
#header #headerMenu #subMenu {
    display: flex;
    align-items: flex-start;
}
#header #headerMenu #subMenu div {
    margin-right: 5px;
    padding: 0 5px;
    font-size: 90%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    height: 25px;
    line-height: 25px;
    background-color: #111;
    border: 1px solid #444;
}
#header #headerMenu #back a:hover,
#header #headerMenu #subMenu div:hover {
    color: #ddd;
    background-color: #222;
}
#header #headerMenu #subMenu div.selected {
    color: #ddd;
    background-color: #222;
}
#header #headerMenu #subMenu div.disabled,
#header #headerMenu #subMenu div.disabled:hover {
    color: #666;
    border: 1px solid #222;
    background-color: #111;
    cursor: initial;
}
#header #headerMenu #subMenu .arrowLeft,
#header #headerMenu #subMenu .arrowRight {
    font-size: 125%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    height: 25px;
}
#header #headerMenu #subMenu .arrowRight {
    transform: rotate(180deg);
}

#header #headerMenu #subMenu svg {
    width: 25px;
    height: 25px;
}
#header #headerMenu #subMenu svg path {
    fill: #aaa;
}
#header #headerMenu #subMenu div:hover svg path {
    fill: #ddd;
}
#header #headerMenu #subMenu div.disabled svg path,
#header #headerMenu #subMenu div.disabled:hover svg path {
    fill: #666;
}

#header #headerMenu #subMenu select {
    font-size: 90%;
    height: 27px;
    line-height: 27px;
    border: 1px solid #444;
    color: #aaa;
    background-color: #111;
}
#header #headerMenu #subMenu select:hover {
    color: #ddd;
    background-color: #222;
    cursor: pointer;
}

#header #headerInfo {
    display: flex;
    align-items: center;
}

#header #headerInfo #errorMarker {
    width: 5px;
    height: 5px;
    border-radius: 15px;
    background-color: #600;
    border: 1px solid #a00;
    margin-right: 10px;
    display: none;
}

#header #headerInfo #time {
    font-size: 80%;
    white-space: nowrap;
}



#demo {
    height: 25px;
    line-height: 25px;
    padding: 0 5px;
    margin-right: 5px;
}
#demo.live {
    color: green;
    border: 1px solid #080;
}
#demo.demo {
    color: red;
    border: 1px solid #800;
}
#demo.hidden {
    display: none;
}

#debug {
    border: 1px solid #222;
    overflow: scroll;
    max-height: 500px;
    padding: 10px;
}

#copyButton {
    margin-top: 5px;
    padding: 3px 5px;
}



.overviewHeader {
    color: #ddd;
    text-align: center;
    font-size: 120%;
    font-weight: bold;
    padding: 15px 0;
}

.overviewFrame a:hover td {
    filter: brightness(1);
    color: #ddd !important;
}

.overviewFrame:last-child {
    padding-bottom: 10px;
}

.overview {
    width: 100%;
    height: 50px;
    table-layout: fixed;
}

.overviewHome {
    text-align: left;
    padding-left: 10px;
}
.overviewHome,
.overviewAway {
    width: 50%;
    font-size: 110%;
}
.overviewAway {
    text-align: right;
    padding-right: 10px;
}

.overviewLogo {
    width: 50px;
}
.overviewLogo img:first-child {
/* .overviewLogo div { */
    width: 40px;
    height: 40px;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.overviewScore {
    width: 110px;
    font-size: 110%;
}
.overviewScore table {
    width: 100%;
    table-layout: fixed;
}
.overviewScoreHome {
    text-align: left;
}
.overviewScoreSeparator {
    text-align: center;
    width: 20px;
}
.overviewScoreAway {
    text-align: right;
}
.overviewScoreHome,
.overviewScoreAway {
    width: 50%;
}

.overviewScoreActive {
    text-align: center;
}



.overviewDriveIndicatorLeft,
.overviewDriveIndicatorRight {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.overviewDriveIndicatorLeft {
    border-right: 8px solid #bb4;
    margin-left: 3px;
}
.overviewDriveIndicatorRight {
    border-left: 8px solid #bb4;
    margin-left: -11px;
}



.overviewDate {
    font-size: 65%;
    line-height: 125%;
    text-align: center;
}

.overviewLost {
    filter: brightness(0.66);
}

.overviewHighlighted {
    font-weight: bold;
}

.overviewGameActive {
    color: #4b4;
}



.details {
    width: 100%;
    table-layout: fixed;
}

.detailsHead {
    background-color: #181818;
    color: #ddd;
    height: 140px;
}

.detailsOuterBorder {
    width: 3%;
}

.detailsInnerBorder {
    width: 12px;
}
.detailsHeadTimeout {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    border: 1px solid #666;
    margin: 4px 0;
}
.detailsHeadTimeout.filled {
    border: 1px solid #0000;
    background-color: #cc0;
}

.detailsHeadTeamName {
    padding-bottom: 15px;
}

.detailsHeadLogo {
    width: 80px;
    height: 80px;
    padding: 10px;
    display: block;
    margin: 0 auto;
}

.detailsHeadHome,
.detailsHeadAway {
    position: relative;
}

.detailsHeadHome,
.detailsHeadAway,
.scoreChartLegendText,
.detailsHomeAway {
    width: 30%;
    text-align: center;
}

/*.detailsHeadTeamWin {
    font-weight: bold;
}*/

.detailsHeadCenter {
    vertical-align: top;
}

.detailsHeadDate {
    padding-top: 10px;
    font-size: 70%;
    text-align: center;
    color: #888;
}

.detailsHeadDriveAndScore {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detailsHeadScore {
    font-size: 175%;
    display: flex;
    justify-content: center;
}

.detailsHeadScoreSeparator {
    text-align: center;
    width: 30px;
}

.detailsHeadScoreDriveIndicatorSpacer {
    width: 20px;
}

.detailsHeadScoreDriveIndicatorLeft,
.detailsHeadScoreDriveIndicatorRight {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.detailsHeadScoreDriveIndicatorLeft {
    border-right: 20px solid #bb4;
}
.detailsHeadScoreDriveIndicatorRight {
    border-left: 20px solid #bb4;
}

.detailsHeadTimeAndWinProbability {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detailsHeadWinProbabilityHome,
.detailsHeadWinProbabilityAway {
    font-size: 75%;
    width: 45px;
}
.detailsHeadWinProbabilityHome {
    text-align: right;
}

.detailsHeadTime {
    text-transform: capitalize;
    text-align: center;
    font-size: 90%;
}

.detailsHeadTeam {
    display: flex;
    justify-content: center;
}



.detailsHidden {
    display: none;
}



.detailsStatsElement > td {
    font-size: 70%;
    padding: 5px;
}

.detailsStatsElement:nth-child(odd) {
    background-color: #181818;
}
.detailsStatsElement:nth-child(even) {
    background-color: #111;
}

.detailsStatsLogo {
    width: 30px;
    height: 30px;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.detailsStatsValueName {
    text-align: center;
    font-weight: bold;
    position: relative;
}

.detailsStatsTriangle {
    position: absolute;
    opacity: 1;
    width: 0;
    height: 0;
}



.detailsPlays:nth-child(even) {
    background-color: #181818;
}
.detailsPlays:nth-child(odd) {
    background-color: #111;
}

.detailsPlaysDown {
    padding-top: 10px;
    text-align: center;
    padding-bottom: 10px;
}

.detailsPlaysYardlineFrame {
    position: relative;
}
.detailsPlaysYardline,
.detailsPlaysYardlineNoTransform {
    position: relative;
    margin: auto;
}
.detailsPlaysYardline {
    background-color: #484;
}
.detailsPlaysYardlineNoTransform {
    margin-bottom: 40px;
}
.detailsPlaysYardline .endzone {
    position: absolute;
    background-color: #0006;
}
.detailsPlaysYardline .marker {
    position: absolute;
    background-color: #fff8;
}
.detailsPlaysYardline .markerGoal {
    position: absolute;
    background-color: #ff0;
}
.detailsPlaysYardline .markerCenter {
    position: absolute;
    background-color: red;
}
.detailsPlaysYardlineNoTransform .ballImage {
    position: absolute;
    transform: rotate(42deg);
}
.detailsPlaysYardline .ballCircle {
    position: absolute;
    background-color: #0008;
}
.detailsPlaysYardline .markerBall {
    position: absolute;
    background-color: #04f;
}
.detailsPlaysYardline .markerFirstDown {
    position: absolute;
    background-color: #ff0;
}
.detailsPlaysYardlineNoTransform .ballText {
    position: absolute;
    font-size: 90%;
    text-align: center;
}

.detailsPlaysText {
    font-size: 85%;
}

.detailsPregame {
    padding-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.detailsPregame > div {
    position: relative;
}

.detailsPregamePercent,
.detailsPregameWlt,
.detailsPregameBottom {
    font-size: 80%;
}

.detailsPregamePercent {
    position: absolute;
}
.detailsPregamePercentHome {
    left: -10px;
}
.detailsPregamePercentAway {
    right: -10px;
}

.detailsPregameWlt {
    position: absolute;
    bottom: 0;
}
.detailsPregameWltHome {
    left: 0;
}
.detailsPregameWltAway {
    right: 0;
}
.detailsPregameWltHome,
.detailsPregameWltAway {
    text-align: center;
}

.detailsPregameBottom {
    padding-top: 10px;
    padding-bottom: 20px;
    text-align: center;
}

.detailsPregameCircle {
    position: relative;
    margin: 0 auto;
}

.detailsPregameCircle .a1o,
.detailsPregameCircle .a1i,
.detailsPregameCircle .a2,
.detailsPregameCircle .b1o,
.detailsPregameCircle .b1i,
.detailsPregameCircle .b2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.detailsPregameCircle .inner {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 25%;
    left: 0;
    display: flex;
    flex-direction: row;
}

.detailsPregameCircle .inner > div {
    position: relative;
    width: 50%;
}

.detailsPregameCircle .inner .innerLeft {
    width: calc( 50% - 1px );
    border-right: 1px dashed #666;
}

.detailsPregameCircle .inner .innerText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    font-size: 70%;
}



.detailsPlaysText {
    display: flex;
}
.detailsPlaysText > div {
    vertical-align: top;
    line-height: 150%;
    padding: 3px 0;
}
.detailsPlaysQuarter {
    font-weight: bold;
    padding-left: 10px !important;
    flex: 0 0 35px;
}
.detailsPlaysTime {
    font-weight: bold;
    flex: 0 0 50px;
}
.detailsPlaysTeam {
    flex: 0 0 50px;
}
.detailsPlaysDownHistory {
    flex: 0 0 100px;
}
.detailsPlaysDesc {
    white-space: initial;
    flex: 1;
}
.detailsPlaysScoring {
    white-space: initial;
    text-align: right;
    padding-right: 10px !important;
    flex: 0 0 70px;
}



.scoreChart {
    position: relative;
    overflow: hidden;
}

.scoreChartLegend {
    width: 100%;
    table-layout: fixed;
    position: absolute;
}
.scoreChartLegendText div {
    margin: auto;
}

.scoreChartX,
.scoreChartY {
    position: absolute;
    background-color: #444;
}

.scoreChartPeriod {
    position: absolute;
    background-color: #444;
}

.scoreChartXText {
    position: absolute;
    font-size: 70%;
    text-align: center;
}

.scoreChartYMarker {
    position: absolute;
    background-color: #444;
}

.scoreChartYText {
    position: absolute;
    font-size: 70%;
    text-align: right;
}

.scoreChartLine {
    position: absolute;
}

.scoreChartDot {
    position: absolute;
    opacity: 1;
}

.scoreChartTriangle {
    position: absolute;
    opacity: 1;
    width: 0;
    height: 0;
}



.detailsScoreBorder {
    width: 15px;
}

.detailsScoreTimeouts {
    width: 12px;
    vertical-align: top;
}
.detailsScoreTimeout {
    width: 10px;
    height: 50px;
    border-radius: 3px;
    border: 1px solid #666;
    margin: 25px 0;
}
.detailsScoreTimeout.filled {
    border: 1px solid #0000;
    background-color: #bb4;
}

.detailsScoreLogo {
    width: 200px;
    height: 200px;
    padding: 25px;
    display: block;
    margin: 0 auto;
}

.detailsScoreCenter {
    vertical-align: top;
    width: 220px;
}

.detailsScoreTeam {
    font-size: 700%;
    display: flex;
    justify-content: center;
    font-weight: bold;
}

.detailsScoreTime {
    padding-top: 30px;
    text-transform: capitalize;
    text-align: center;
    font-size: 350%;
}

.detailsScoreQuarter {
    padding-top: 10px;
    text-transform: capitalize;
    text-align: center;
    font-size: 350%;
    white-space: initial;
}

.detailsScoreDriveIndicator {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}
.detailsScoreDriveIndicatorLeft,
.detailsScoreDriveIndicatorRight {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
}
.detailsScoreDriveIndicatorLeft {
    border-right: 50px solid #bb4;
}
.detailsScoreDriveIndicatorRight {
    border-left: 50px solid #bb4;
}

.detailsScoreDown {
    padding-top: 30px;
    text-align: center;
    font-size: 220%;
    white-space: initial;
}
