/* ========================== */
/* ====== STAT FILTERS ====== */
/* ========================== */
#stat-filters { 
    /* height: 21px; */
    margin-bottom: 10px;
    position: relative;
}

#stat-filters ul {
    /* height: 1.4em; */
    margin: auto;
    padding: 0;
    position: relative;
    left: 0;
    bottom: 0;
}

#stat-filters ul > li { 
    display: inline-block;
    font-size: 1em;
    line-height: 1em;
    list-style: none;
    margin: 0 1em 0.5em 0;
    vertical-align: top;
    /* margin-right: 1em; */
}

#stat-filters ul > li + li {
    /* margin-left: 1em; */
}

#stat-filters ul > li > a {
    color: #333333;
    text-transform: uppercase;
}

#stat-filters ul > li > a > small {
    font-size: 0.75em;
}

#stat-filters > #filter-follow {
    bottom: 0;
    height: 3px;
    left: 0;
    position: absolute;
    width: 0px;

    transition:         width 0.3s, left 0.3s, top 0.3s;
    -mos-transition:    width 0.3s, left 0.3s, top 0.3s;
    -ms-transition:     width 0.3s, left 0.3s, top 0.3s;
    -o-transition:      width 0.3s, left 0.3s, top 0.3s;
    -webkit-transition: width 0.3s, left 0.3s, top 0.3s;
}

@media all and (max-width: 600px) {
    #stat-filters small { 
        display: block;
    }
}

/* ============================ */
/* ====== STAT SELECTORS ====== */
/* ============================ */
#stat-selectors {
    clear: left;
    float: left;
    width: 100%;
    white-space: nowrap;
}

#stat-selectors ul {
    display: table;
    padding-left: 0;
    margin-bottom: 0;
}

#stat-selectors ul > li {
    display: table-cell;
    height: 36px;
    margin: 0 0 0 -1px;
    padding: 0 13px 0 10px;
    vertical-align: middle;

    transition:         background-color 0.5s;
    -moz-transition:    background-color 0.5s;
    -ms-transition:     background-color 0.5s;
    -o-transition:      background-color 0.5s;
    -webkit-transition: background-color 0.5s;
}

#stat-selectors ul > li > a {
    color: #fff;
    display: block;
    padding: 0 8px;
    text-transform: uppercase;
    white-space: normal;
}

#stat-selectors ul > li.is-selected a:hover {
    cursor: default;
}

#stat-selectors ul > li + li {
    border-left: 1px solid #fff;
}

#stat-selectors ul > li.is-selected {
    margin: 0;
}

#stat-selectors ul > li.is-selected,
#stat-selectors ul > li.is-selected + li  {
    border-left: none;
}

#stat-selectors ul > li > select {
    font-size: 0.85em;
    height: 25px;
    padding: 2px 2px;
    width: 150px;
}

@media all and (max-width: 1300px) {
    #stat-selectors ul > li > a {
        font-size: 0.85em;
        padding: 1px 2px 0;
        line-height: 11px;
    }
}

@media all and (max-width: 481px) {
    #stat-selectors ul > li {
        padding: 0;
    }

    #stat-selectors ul > li > a {
        font-size: 8px;
        height: auto;
        padding: 0 4px;
    }

    #stat-selectors ul > li + li > label {
        border-left: none;
    }

    #stat-selectors ul > li > select {
        width: 100%;
    }
}

/* ======================== */
/* == STATS GRID HEADER === */
/* ======================== */
.stats-grid-header {

}

.stats-grid-header > h6 {
    float: left;
}

.stats-grid-header > .year-toggle {
    float: right;
    margin-right: 5px;
}

.stats-grid-header > .year-toggle > label {
    color: #fff;
    font-size: 0.75em;
    margin-right: 8px;
    text-transform: uppercase;
}

.stats-grid-header > .year-toggle > select {
    font-size: 0.75em;
    height: 26px;
}


/* ======================== */
/* ====== STATS GRID ====== */
/* ======================== */
#stats-data {
    float: left;
    min-height: 125px;
    position: relative;
    width: 100%;

    transition:         height 0.5s;
    -moz-transition:    height 0.5s;
    -ms-transition:     height 0.5s;
    -o-transition:      height 0.5s;
    -webkit-transition: height 0.5s;
}

#stat-loader {
    opacity: 0;
    filter: alpha(opacity=0);
    position: relative;

    transition:         opacity 0.25s;
    -o-transition:      opacity 0.25s;
    -moz-transition:    opacity 0.25s;
    -ms-transition:     opacity 0.25s;
    -webkit-transition: opacity 0.25s;
}

#stat-loader.is-showing {
    opacity: 1;
    filter: alpha(opacity=1);
}

#stat-loader > .spinner-box {
    bottom: 0;
    left: 50%;
    position: absolute;
    margin: auto;
    pointer-events: none;
    right: 0;
    top: 95px;
    z-index: 3;
}

.stats-grid {
    float: left;
    padding: 3px 3px 5px 6px;
    min-height: 60px;
    position: relative;
    width: 100%;

    transition: opacity 0.25s;
    -o-transition: opacity 0.25s;
    -moz-transition: opacity 0.25s;
    -ms-transition: opacity 0.25s;
    -webkit-transition: opacity 0.25s;
}

.stats-grid > .stats-grid-data  {
    position: relative;

    transition: opacity 0.25s;
    -o-transition: opacity 0.25s;
    -moz-transition: opacity 0.25s;
    -ms-transition: opacity 0.25s;
    -webkit-transition: opacity 0.25s;
}

.stats-grid > .stats-grid-data h6 {
    color: #fff;
    display: inline-block;
    float: left;
    margin: 5px 5px 10px;
}

.stats-grid > .stats-grid-data > .grid {
    clear: both;
    overflow-y: hidden;
}

.stats-grid > .stats-grid-data > .grid > .grid-wrapper {
    width: 925px;

    transition:         opacity 0.5s;
    -moz-transition:    opacity 0.5s;
    -ms-transition:     opacity 0.5s;
    -o-transition:      opacity 0.5s;
    -webkit-transition: opacity 0.5s;
}

.stats-grid > .stats-grid-data > .grid > .grid-wrapper a {
    color: #fff;
    font-weight: normal;
}

.stats-grid > .stats-grid-data > .grid > .grid-wrapper a:hover {
    text-decoration: underline;
}

.stats-grid > .stats-grid-data > .grid table {
    table-layout: fixed;
}

.stats-grid > .stats-grid-data > .grid table.small-table {
    width: 100%;
}

.stats-grid > .stats-grid-data > .grid th,
.stats-grid > .stats-grid-data > .grid td {
    border: 1px solid #000;
    color: #fff;
    font-size: 0.9em;
    padding: 4px 6px;
}

.stats-grid > .stats-grid-data > .grid th {
    background-color: #000;
    font-weight: bold;
    text-transform: uppercase;
}

.stats-grid > .stats-grid-data > .grid td {
    background-color: #333333;
    min-width: 57px;
    max-width: 170px;
}

.stats-grid > .stats-grid-data > .grid table.small-table td {
    min-width: initial;
    max-width: initial;
}

.stats-grid > .stats-grid-data > .grid tbody tr:nth-child(even) td {
    background-color: #131313;
}

.stats-grid > .stats-grid-data > .grid table.floated-table {
    float: left;
    width: 33%;
}

.stats-grid > .stats-grid-data .driverCareerEntries {
    margin-top: 15px;
}

.stats-grid .clearfix {
    clear: both;
    margin: 10px 0;
}

.box-score-table {
    float: left;
    margin-right: 25px;
}

.footnote,
.grid-return a {
    font-size: 0.8em;
}

.footnote {
    float: left;
    padding: 5px 0;
}

.grid-return {
    float: right;
    padding: 5px 0;
}

.sublevel-wrapper {
    background: #fff;
    border: 2px solid #000;
    padding: 5px;
    position: relative;
}

.sublevel-header {
    background: #000;
    color: #fff;    
    font-size: 0.9em;
    font-weight: bold;
    padding: 4px 7px;
    text-transform: uppercase;
}

@media all and (max-width: 1280px) and (min-width: 960px) {
    .stats-grid > .stats-grid-data > .grid table.floated-table {
        width: 50%;
    }
}

@media all and (max-width: 600px) {
    .stats-grid > .stats-grid-data > .grid table.floated-table {
        width: 50%;
    }
}

@media all and (max-width: 481px) {
    .stats-grid > .stats-grid-data > .grid table.floated-table {
        width: 100%;
    }
}

/* ======================== */
/* ====== POPUP MENU ====== */
/* ======================== */
#menu-container {
    float: left;
    position: relative;
    width: 100%;
}

.stat-menu,
#driver-menu {
    border-bottom: 2px solid #000;
    display: none;
    padding: 5px 0;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 2;
}

.stat-menu h6,
#driver-menu h6 {
    color: #fff;
    display: inline-block;
    margin: 5px 5px 10px;
    width: 85%;
}

.stat-menu .menu-listing ,
#driver-menu .menu-listing {
    background-color: #ededed;
    border: 2px solid #000;
    clear: both;
    margin: 0 5px;
    overflow: hidden;
    padding: 4px 0;
    position: relative;
}

.stat-menu .menu-listing .column,
#driver-menu .menu-listing .column {
    display: inline-block;
    vertical-align: top;
    width: 45%;
}

#driver-menu .menu-listing .column {
    width: 24%;
}

.stat-menu .menu-listing .column a,
#driver-menu .menu-listing .column a {
    color: #000;
    font-weight: normal;
}

.stat-menu .menu-listing .column a:hover
#driver-menu .menu-listing .column a:hover {
    text-decoration: underline;
}

#menu-letter-select-viewport,
#content-letter-select-viewport {
    background-color: #000;
    height: 35px;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;

    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
}

#menu-letter-select,
#content-letter-select {
    background-color: #000;
    margin: -3px 0 0;
    text-align: center;
    width: 880px;

    transition: margin-left 0.5s;
    -o-transition: margin-left 0.5s;
    -ms-transition: margin-left 0.5s;
    -moz-transition: margin-left 0.5s;
    -webkit-transition: margin-left 0.5s;
}

#content-letter-select {
    margin: 0 0 0 6px;
}

#content-letter-select-viewport-wrapper {
    clear: both;
    position: relative;
}

#content-letter-select-viewport {
    top: 0;
    z-index: 1;
    width: 100%;
}

#menu-letter-select ul,
#content-letter-select ul {
    margin-bottom: 0;
    padding-left: 0;
}

#menu-letter-select ul li,
#content-letter-select ul li {
    background-color: #000;
    display: inline-block;
    height: 27px;
    text-align: center;
    width: 32px;

    transition:         color 0.5s, background-color 0.5s;
    -ms-transition:     color 0.5s, background-color 0.5s;
    -moz-transition:    color 0.5s, background-color 0.5s;
    -o-transition:      color 0.5s, background-color 0.5s;
    -webkit-transition: color 0.5s, background-color 0.5s;
}

#menu-letter-select ul li.is-selected,
#content-letter-select ul li.is-selected {
    background-color: #969694;
}

#menu-letter-select ul li a,
#content-letter-select ul li a {
    color: #fff;
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 4px;
}

#content-letter-select ul li a:hover {
    cursor: pointer;
    text-decoration: none;
}

#menu-letter-select ul li.is-selected a,
#content-letter-select ul li.is-selected a {
    color: #000;
}

#menu-letter-select ul li.is-selected a:hover,
#content-letter-select ul li.is-selected a:hover {
    cursor: default;
}

.open-popup,
.close-popup {
    display: inline-block;
    float: right;
    margin: 5px 8px 5px 0;
}

.open-popup a,
.close-popup a {
    color: #fff;
    font-size: 0.7em;
}

.driver-letter {
    display: none;
    margin-top: 40px;
}

.driver-letter.is-selected {
    display: block;
}

.menu-letter-scrollLeft,
.menu-letter-scrollRight,
.content-letter-scrollLeft,
.content-letter-scrollRight {
    background: #000;
    height: 31px;
    padding-top: 9px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 10px;
}

.menu-letter-scrollLeft.is-hidden,
.menu-letter-scrollRight.is-hidden,
.content-letter-scrollLeft.is-hidden,
.content-letter-scrollRight.is-hidden {
    opacity: 0;
}

.menu-letter-scrollLeft:hover,
.menu-letter-scrollRight:hover,
.content-letter-scrollLeft:hover,
.content-letter-scrollRight:hover {
    cursor: pointer;
}

.menu-letter-scrollLeft.is-hidden:hover,
.menu-letter-scrollRight.is-hidden:hover,
.content-letter-scrollLeft.is-hidden:hover,
.content-letter-scrollRight.is-hidden:hover {
    cursor: default;
}

.menu-letter-scrollLeft,
.content-letter-scrollLeft {
    left: 0;
}

.menu-letter-scrollRight,
.content-letter-scrollRight {
    right: 0;
}

.driver-summary-name {
    margin-bottom: 5px;
    margin-top: 36px;
    font-weight: bold;
}

.sublevel-footer {
    color: #fff;
    font-size: 0.8em;
    padding: 4px;
}

.driver-cta {
    margin: 4px 0;
}

.menu-listing .driver-cta {
    margin-left: 5px;
}

.driver-cta a  {
    color: #000 !important;
    font-size: 0.7em;
    font-weight: bold !important;
    margin-left: 4px;
}

@media all and (max-width: 600px) {
    .stats-grid-header > .year-toggle {
        float: left;
        margin-left: 5px;
        margin-bottom: 10px;
    }

    #driver-menu .menu-listing .column {
        width: 45%;
    }
}

@media all and (max-width: 400px) {
    .stats-grid > .stats-grid-data h6 {
        width: 100%;
    }
}