body {
	background-color: #FFFFFF;
	font-size: 14px;
	font-family: 'Helvetica';
	color: #000000;
	margin: 0;
    padding: 0;
}
html[xmlns] .clearfix {
    display: block;
}
* html .clearfix {
    height: 1%;
}

#stab_iframe {
    max-width: 1200px;
    margin: 0 auto 15px;
    padding: 0 10px;
    box-sizing: border-box;
    clear: both;
}

.stab_column {
    width: 270px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 10px #0f0f0f22;
}

.rider_column {
    background-color: #FFFFFF;
    box-shadow: 0px 0px 10px #0f0f0f22;
}

.stab_logo {
    display: block;
    margin-left: auto;
    margin-right: auto;    
    margin-bottom: 35px;
}

.txt_info {
    font-size: 16px;
    line-height: 1.375;    
}

.rider_color {
    height: 65px;
    line-height: 65px;
    background-color: #000000;
    color: #FFFFFF;
    font-size: 26px;
    text-align: center;
    padding: 0 8px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rider_info, .rider_info_sec {
    background-color: #FFFFFF;
    height: 80px;
    display: flex;
}

.rider_info_sec {
    background-color: #ebebeb;
}

.rider_info_cell_title {
  font-size: 14px;
  color: rgb(151, 151, 151);
  line-height: 1.2;
}

.rider_info_cell_value, .rider_info_cell_value_small {
  font-size: 26px;
  color: rgb(0, 0, 0);
  line-height: 1.2;
  height: 32px;
}

.rider_red, .rider_orange, .rider_black, .rider_blue, .rider_yellow {
  font-weight: bold;
}

.rider_red {
    color: #ee4144;
}

.rider_orange {
    color: #e78958;
}

.rider_blue {
    color: #598cc0;
}

.rider_black {
    color: #000000;
}

.rider_yellow {
    color: #fac543;
}

.rider_red_bg {
    background-color: #ee4144;
}

.rider_orange_bg {
    background-color: #e78958;
}

.rider_blue_bg {
    background-color: #598cc0;
}

.rider_black_bg {
    background-color: #000000;
}

.rider_yellow_bg {
    background-color: #fac543;
}

/* Custom rider colors */
.rider_white_bg {
    background-color: #FFFFFF;
}

.rider_custom_red {
    color: #DE2222;
    font-weight: bold;
}

.rider_custom_yellow_bg {
    background-color: #FFDD00;
}

.rider_custom_blue_bg {
    background-color: #00AEEC;
}

.rider_custom_yellow {
    color: #FFDD00;
    font-weight: bold;
}

.rider_custom_pink_bg {
    background-color: #EE5BA0;
}

.rider_custom_orange_bg {
    background-color: #F58A1F;
}

.rider_custom_pink {
    color: #EE5BA0;
    font-weight: bold;
}

.rider_custom_orange {
    color: #F58A1F;
    font-weight: bold;
}

.rider_white {
    color: #FFFFFF;
    font-weight: bold;
}

/* darkened #FFDD00, for best-wave scores on the light grey score table */
.rider_custom_gold {
    color: #A38C00;
    font-weight: bold;
}

.rider_info_cell_value_small {
  font-size: 20px;
    margin-top: 16px;
    margin-bottom: 0px;
}

.rider_info_cell_left {
    width: 67px;
    flex: auto;
    text-align: center;
    padding-top: 15px;
    line-height: 23px;
}

.rider_info_cell_right {
    width: 165px;
}

.rider_crowdscore {
    clear: both;
    height: 110px;
    background-color: #FFFFFF;
}

.rider_crowdscore_title {
    height: 25px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 25px;
    text-align: center;
}

.txt_crowd_wait, .txt_crowd_success, .txt_crowd_type {
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
}

.txt_crowd_wait {
    color: #979797;
    margin-top: 20px;
    margin-left: 15px;
    margin-right: 15px;
}

.txt_crowd_success {
    color: #588bc0;
    margin-top: 20px;
    margin-left: 15px;
    margin-right: 15px;
}

.txt_crowd_type {
    font-size: 20px;
    color: rgb(0, 0, 0);
    padding-top: 20px;
}

.crowd_input {
    width: 100%;
    height: 45px;
    margin-top: 20px;
    clear: both;    
}

input {
  background-color: #FFFFFF;
  font-size: 20px;
  color: rgb(151, 151, 151);
  line-height: 1.2;
  text-align: center;
  height: 45px;
  width: 140px;
}

.crowd_input_area {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.crowd_slider_area {
    flex-grow: 100;
    text-align: center;
    font-size: 14px;
    font-family: "Helvetica";
}

.crowd_input_value {
    font-size: 26px;
    font-family: "Helvetica";
    font-weight: bold;
}

.crowd_slider_container {
  width: 95%; /* Width of the outside container */
  margin-top: 5px;
}

/* The slider itself */
.crowd_slider {
  margin-top: 5px;
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 5px; /* Specified height */
  background: #959595; /* Grey background */
  outline: none; /* Remove outline */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.crowd_slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 20px; /* Set a specific slider handle width */
  height: 20px; /* Slider handle height */
  border-radius: 50%; 
  background: #000000; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.crowd_slider::-moz-range-thumb {
  width: 20px; /* Set a specific slider handle width */
  height: 20px; /* Slider handle height */
  border-radius: 50%; 
  background: #000000; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.crowd_btn {
  background-color: #000000;
  font-size: 14px;
  font-family: "Helvetica";
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  line-height: 1.267;
  text-align: center;
  text-decoration: none;
  height: 45px;
  width: 76px;
  float: right;
  border: none;
  margin-top: 10px;
  outline: none;
}

.crowd_slider_plus, .crowd_slider_minus {
    text-decoration: none;
  font-size: 14px;
  font-family: "Helvetica";
    color: #959595;
}

.crowd_slider_plus {
    float: right;
}

.crowd_slider_minus {
    float: left;
}

.rider_scores {
    background-color: #ebebeb;
    margin-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    max-height: 317px;
    overflow-y: auto;
}

.rider_scores::-webkit-scrollbar {
        width: 5px;
    }

    /* Track */
.rider_scores::-webkit-scrollbar-track {
        box-shadow: inset 0 0 2px #d2d2d2; 
        border-radius: 10px;
    }

    /* Handle */
.rider_scores::-webkit-scrollbar-thumb {
        background: #d2d2d2; 
        border-radius: 10px;
    }

    /* Handle on hover */
.rider_scores::-webkit-scrollbar-thumb:hover {
        background: #000000; 
    }

.table_scores {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table_scores_normal {
    width: 55%;
    border-collapse: collapse;
    margin: auto;
    margin-top: 15px;
}

/* row 2 is the "Needs: n" line. It is empty for whoever is in 1st, so pin its
   height -- otherwise that panel's wave rows sit 19px higher than the rest. */
.table_scores_normal tr:nth-child(2) td,
.table_scores tr:nth-child(2) td {
    height: 21px;
    box-sizing: border-box;
}

th, td {
/*    border: 1px solid black;*/
    font-size: 14px;
    color: rgb(151, 151, 151);
    line-height: 1.357;
    text-align: center;
}

.txt_score_pending {
    color: rgb(238, 65, 68);
    font-style: italic;
    line-height: 2.5;
}

.txt_score_normal, .txt_score_highlight {
    font-size: 20px;
    line-height: 2.5;
}

.txt_score_normal {
    color: rgb(0, 0, 0);
}

.rider_scroll {
    height: 25px;
    background-color: #000000;
}

.img_arrow {
    display: block;
    margin-left: auto;
    margin-right: auto;    
    padding-top: 8px;
}

#score_overlay {
    position:absolute;
    background-image: url("../img/stab100/icon_overlay.png");
    width: 140px;
    height: 83px;
    display: none;
}

.score_overlay_content {
    font-size: 14px;
    color: rgb(255, 255, 255);
    line-height: 1.357;    
    text-align: center;
    padding-top:20px;
}

/* The bubble is 83px tall with an 8px arrow on top, so the body is 75px.
   Two 19px lines centre at 8 + (75 - 38) / 2 = 26px. The default 20px above is
   for the three-line overlay still used by the older event pages. */
#score_overlay.overlay_two_lines .score_overlay_content {
    padding-top: 26px;
}




.stepcarousel{
    position: relative; /*leave this value alone*/
    -webkit-box-sizing: border-box; /* set box model so container width and height value includes any padding/border defined */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* the stepcarousel is disabled (see the commented-out setup call in the HTML),
   so the belt is a plain centred flex row that wraps instead of an absolutely
   positioned filmstrip -- absolute positioning collapsed #mygallery to 0 height. */
.stepcarousel .belt{
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.stepcarousel .panel{
    flex: 0 0 auto;
    width: 270px;
    margin: 15px 10px 5px 10px;
    box-sizing: border-box;
}

span.paginatecircle{ /* CSS for paginate circle spans. Required */
    background: white;
    border: 2px solid black;
    border-radius: 10px;
    width: 6px;
    height: 6px;
    cursor: pointer;
    display: inline-block;
    margin-right: 4px;
}

span.paginatecircle:hover{
    background: gray;
}

span.paginatecircle.selected{
    background: black;
}

#mygallery-paginate {
    width: 300px;
    text-align: center;
}

/* Responsive Design
   The belt wraps on its own, so panels reflow 4 -> 2 -> 1 across without needing
   a breakpoint per column count. These only handle type scale and the point at
   which a fixed 270px column stops fitting. */

@media screen and (max-width: 768px) {
    .rider_info_cell_left {
        width: auto;
        flex: 1;
        padding-top: 10px;
    }

    .rider_info_cell_title {
        font-size: 12px;
    }

    .rider_info_cell_value {
        font-size: 20px;
    }

    .rider_color {
        font-size: 22px;
    }
}

/* four riders wrap to an orphaned 3 + 1 at these widths; cap the container to
   two columns so it breaks evenly 2 x 2 instead. Scoped to body.riders_4 so the
   3- and 5-rider pages that share this stylesheet keep their own wrapping. */
@media screen and (min-width: 621px) and (max-width: 1179px) {
    body.riders_4 #stab_iframe {
        max-width: 600px;
    }
}

/* below this a 270px column no longer fits comfortably, so go full width */
@media screen and (max-width: 620px) {
    .stepcarousel .panel {
        flex: 1 1 100%;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stab_column {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .rider_info_cell_left {
        padding-top: 8px;
    }

    .rider_info_cell_title {
        font-size: 11px;
    }

    .rider_info_cell_value {
        font-size: 18px;
    }

    .rider_color {
        font-size: 20px;
        height: 55px;
        line-height: 55px;
    }

    .crowd_input_area {
        margin-left: 10px;
        margin-right: 10px;
    }
}
