
ul,
p {
    margin: 1em;
    padding: 0;

    list-style: none;
}

/* Site and Race name */
#header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;

    text-align: center;

    z-index: 1000;
}
    #login_logout {
        position: absolute;
        right: 60px;
        float: none;
    }

    #race-title {
        margin: 0;

        font-size: 1.8em;
        letter-spacing: 1px;
        line-height: 1.75em;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #site,
    #mobile-menu {
        position: absolute;
        left: .85em;
        top: .15em;

        font-size: 1.2em;
        line-height: 2.4em;

        opacity: .9;
    }

    #site {
        line-height: 0;

        opacity: 1;
        -webkit-transition: opacity .6s;
                transition: opacity .6s;
    }
        #site:hover {
            opacity: .7;
            -webkit-transition: opacity .15s;
                    transition: opacity .15s;
        }

/* Floating panel box */
#panels {
    position: fixed;
    left: 1em;
    top: 4em;

    color: #1a2029;
    border: 1px solid #adadad;
    border-width: 0 1px 1px;

    overflow: hidden;
    width: 350px;
    z-index: 75;

    -webkit-transition: opacity .6s;
            transition: opacity .6s;
}
    #panels:hover {
        opacity: 1;

        -webkit-transition: opacity .15s;
                transition: opacity .15s;
    }

    .panel {
        display: block;
        position: relative;

        background: #e9eaee;
        box-shadow: 0 0 1px #fff;

        overflow: hidden;
    }

    .panel.recent .success {
        padding: .5em;

        background: rgba(73, 188, 183, .15);

        font-size: 1.1em;
        line-height: 1.5em;
        text-align: center;
        width: 80%;
        margin: 10px auto;
    }

    .panel.recent .logged-miles {
        width: 302px;
    }

    .panel.my-runs .success {
        padding: .5em;

        background: rgba(73, 188, 183, .15);

        font-size: 1.1em;
        line-height: 1.5em;
        text-align: center;
        width: 80%;
        margin: 10px auto;
    }

    .panel .header {
        margin: 0;
        padding: .4em .8em;

        font-weight: normal;
        font-size: .9375em;
        text-transform: uppercase;
        overflow: hidden;

        cursor: pointer;
        -webkit-transition: background-color .6s;
                transition: background-color .6s;
    }
        .panel .header:hover {
            -webkit-transition: background-color .15s;
                    transition: background-color .15s;
        }

        .panel .header:before {
            position: relative;
            top: .45em;
            height: 0px;
            width: 0px;

            content: " ";
            display: block;
            float: left;
            margin-right: .4em;

            border: 6px solid #fff;
            border-color: #fff transparent transparent transparent;
            opacity: .7;
        }

    .panel .header .notification {
        float: right;
        font-size: .8em;
        text-transform: lowercase;
    }

    .panel .lastupdate {
        display: none;
    }

    .panel.active .lastupdate {
        display: block;
    }

    .panel > .content {
        display: none;
    }
        .panel.active > .content.my-runs {
            display: none;
        }
        .panel.my-runs > .content {
            padding: 0 .5em;
        }
        .panel.active > .content {
            display: block;
            overflow: auto;
        }
        .panel.active .header {
            padding-bottom: .4em;
        }

        .panel.active .header:before {
            border-color: transparent transparent #fff transparent;
            top: 0;
        }


/* First Panel */
#race-info {
    color: #49bcb7;

    overflow: hidden;
}
    #race-info li {
        float: left;
        width: 49%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
        #race-info li { margin-bottom: 1em; }
        #race-info li:nth-last-child(1), #race-info li:nth-child(2n+1) { margin-bottom: 0; }
        #race-info li:nth-child(odd) { margin-right: 1%; }
        #race-info li:nth-child(even) { margin-left: 1%; }
        #race-info li.about-end-date { margin-bottom: 0; }

    #race-info span {
        display: block;

        color: #9ea7b3;

        font-size: .85em;
        text-transform: uppercase;
    }

.panel-block,
#race-info,
.panel-form,
#about-race,
.charity-header,
#quizlab-frame,
#log-miles-form {
    margin: .5em .5em;
    padding: .5em .5em;

    background: rgba(255,255,255,.95);
}
@media (max-width: 320px) {
    .panel-block,
    #race-info,
    .panel-form,
    #about-race,
    .charity-header,
    #log-miles-form {
        margin: .5em 0;
    }
}

#about-race img {
    max-width: 100%;
}

.panel-block h4,
.panel-form h4,
.spectator-listing-label {
    margin: .3em 0 .5em;

    font-size: 1.1em;
    text-align: center;
}
.panel-block ul {
    margin: 0;
}

    #race-signup .remaining {
        color: #49bcb7;
    }

    .panel-form form {
        font-size: .9em;
        line-height: 2.35em;
    }

    .panel-form .form_message_for_user {
        font-weight: 700;
        line-height: 1.3em;
        text-align: center;
    }

    .panel-form .label {
        text-align: center;
    }

    .panel-form .group + .group {
        display: none;
    }

    .panel-form .field {
        position: relative;
        width: 78%;

        margin: 0 auto .5em;
    }
        .panel-form .field .field {
            margin-bottom: 0;
            width: 90%;
        }

    .search-form input[type=text],
    .panel-form form .field > input,
    .panel-form select,
    .panel-form textarea,
    .panel-form .completable,
    .panel .groupedbuttons {
        display: block;
        padding: 0 1%;
        width: 98%;
        max-width: 98%;

        border: 1px solid #aaa;
        color: #444;
        line-height: 1.5em;
    }
    .panel-form form .field > input[disabled],
    .panel-form textarea[disabled] {
        opacity: .7;
        background: #f8f8f8;
        border-color: #bdbdbd;
        color: #888;
    }
        .panel-form select {
            background: transparent;
            border-radius: 0;
            width: 100%;
            max-width: 100%;
        }
        .panel-form .completable {
            padding: 0;
            width: calc(100% - 1px);
        }

        .panel .groupedbuttons {
            padding: 0;
            max-width: 100%;
            width: 100%;

            line-height: 1em;
            text-align: center;
        }
            .panel .groupedbuttons-items {
                overflow: hidden;
            }
            .panel .groupedbuttons-item {
                float: left;
                padding: 0.3em 0 .2em;

                border-right: 1px solid #aaa;
                color: #444;
                cursor: pointer;
                text-decoration: none;
                transition: background-color .6s, color .6s, text-shadow;
            }
                .panel .groupedbuttons-item:hover {
                    background: #e8e8e8;
                    transition: background-color .15s, color .15s, text-shadow;
                }
                .panel .groupedbuttons-item.selected {
                    background: #49bcb7;
                    color: #fff;
                    text-shadow: 0 0 1px rgba(0,0,0,.3);
                    transition: background-color .15s, color .15s, text-shadow;
                }
                .panel .groupedbuttons-item:last-child {
                    border-right: none;
                }

            .panel .groupedbuttons-item:nth-child(1) { width: 54%; }
            .panel .groupedbuttons-item:nth-child(2) { display: none; }
            .panel .groupedbuttons-item:nth-child(3) { width: 45.5%; }

            .panel .has_teams .groupedbuttons-item:nth-child(1) { width: 38%; }
            .panel .has_teams .groupedbuttons-item:nth-child(2) { width: 35%; display: block; }
            .panel .has_teams .groupedbuttons-item:nth-child(3) { width: 26%; }

        #race-signup #field_team_select + #field_team_name {
            height: 0;
            margin-bottom: 0;
            opacity: 0;
            transition: all .5s;
            overflow: hidden;
        }
            #race-signup #field_team_select + #field_team_name.visible {
                height: 1.5em;
                margin-bottom: .5em;
                opacity: 1;
                transition: all .5s;
                overflow: visible;
            }
            #race-signup #field_team_select + #field_team_name.visible.has_error {
                height: 3em;
            }

    .panel-form .agreement {
        line-height: 1.3em;
        font-size: .8em;
        text-align: center;
    }
        .panel-form .agreement a {
            color: #319eb3;
            font-size: 1.05em;

            transition: color .6s;
        }
            .panel-form .agreement a:hover {
                color: #7ea5b5;
                text-decoration: none;

                transition: color .15s;
            }

    .panel-form .help {
        position: absolute;
        right: 4px;
        bottom: 5px;

        color: #fff;

        cursor: help;
        overflow: hidden;
    }
        .panel-form .help:hover {
            overflow: visible;
        }

        .panel-form .help,
        .panel-form .help .icon {
            height: 14px;
            width: 14px;
        }

        .panel-form .help .icon {
            background-color: #bbb;
            border-radius: 13px;

            font-size: 13px;
            font-weight: bold;
            line-height: 14px;
            text-align: center;

            opacity: .6;
        }
            .panel-form .help .icon:before {
                content: "?";
                display: block;
            }

        .panel-form .help .tooltip {
            position: absolute;
            top: 25px;
            right: -40px;

            padding: .35em .5em .25em;
            width: 12em;

            background: #4b525b;
            border-radius: .5em;
            box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
            font-size: .95em;
            line-height: 1.25em;

            opacity: 0;
            z-index: 10;
        }
            .panel-form .help .tooltip:before {
                content: "";
                display: block;

                position: absolute;
                right: 41px;
                top: -12px;

                border: 6px solid #4b525b;
                border-color: transparent transparent #4b525b transparent;
                cursor: default;
            }

            .panel-form .help:hover .tooltip {
                opacity: 1;
                transition: opacity .15s;
            }

    .panel-form button,
    .panel-form input.button,
    .charity-back-me,
    .charity-back-us,
    .team-join-button,
    .group-recruit-invite-email button,
    #result-share-container button,
    #charity-footer button,
    .charity-header .button {
        clear: both;
        display: block;
        margin: 1.5em auto 0;
        padding: .35em 1.75em .3em;

        font-size: 14px;
        cursor: pointer;

        background-color: #49bcb7;
        color: #fff;

        border: 1px solid #38aba6;
        text-shadow: 0 0 1px rgba(0,0,0,.3);

        line-height: 1em;
        text-transform: uppercase;

        -webkit-transition: background-color .6s, box-shadow .6s, text-shadow .6s, opacity .6s;
                transition: background-color .6s, box-shadow .6s, text-shadow .6s, opacity .6s;
    }
    .charity-edit-me {
        display: none;
    }
    #result-share-container button {
        margin: 0;
        margin-bottom: 4px;
        position: relative;
        text-transform: lowercase;
        width: 100%;
    }
    #result-share-container .image-generator-spinner {
        position: absolute;
        width: 100%;
        height: calc(100% - 0.35em);
        top: 0;
        left: 0;
        background: #319EB3;
        z-index: 9999;
        padding-top: 0.35em;
        text-align: center;
        cursor: default;
    }
    #charity-footer button {
        margin: 0.8em auto;
    }
        .panel-form input.button[disabled],
        .panel-form button[disabled] {
            background-color: #bdbdbd;
            border-color: #b3b3b3;
            opacity: .7;
            text-shadow: 0 0 1px rgba(0,0,0,.3);

            -webkit-transition: background-color .15s, opacity .15s;
                    transition: background-color .15s, opacity .15s;
        }
        .panel-form input.button[disabled],
        .panel-form button[disabled] * {
            cursor: default;
        }

        .panel-form input.button:not([disabled]):hover,
        .panel-form button:not([disabled]):hover,
        .charity-back-me:hover,
        .charity-back-us:hover,
        .charity-header .button:hover,
        .team-join-button:hover,
        #result-share-container button:hover,
        #charity-footer button:hover {
            background-color: #5acdc8;
            box-shadow: 0 0 2px rgba(0,0,0,.3);
            text-shadow: 0 0 2px rgba(0,0,0,.3);

            -webkit-transition: background-color .15s, box-shadow .15s, text-shadow .15s, opacity .15s;
                    transition: background-color .15s, box-shadow .15s, text-shadow .15s, opacity .15s;
        }

    .panel-form button.with-extra-text {
        padding: .5em 1.25em 0;
        font-size: 1.05em;
    }
        .panel-form .button-extra {
            display: block;
            font-size: .7em;
            text-transform: none;
        }

    #race-signup #forgot-nickname {
        margin-top: 1.3em;

        font-size: .8em;
        text-align: center;
    }
        #forgot-nickname a {
            display: inline-block;

            border-bottom: 1px solid transparent;
            color: #477486;
            line-height: .85em;

            transition: color .6s, border .6s;
        }
            #forgot-nickname  a:hover {
                border-color: #7ea5b5;
                color: #7ea5b5;

                transition: color .15s, border .15s;
            }


.panel-form .loading {
    opacity: .9;
}
    .panel-form .loading button,
    .panel-form .loading button:hover {
        background: #888 url("../img/ajax-loader-small.ad7910a0d856.gif") no-repeat center center;
        border-color: #666;
        color: transparent;

        box-shadow: none;
        cursor: default;
        text-shadow: none;
    }

.race-recruit-invite-email input,
.group-recruit-invite-email input {
    width: 99%;
}

#race-recruit-invite-email,
.group-recruit-invite-email {
    display: none;
}

#race-finished-join {
    display: none;
}

.panel-message {
    text-align: center;
}

.panel-message a {
    color: #477486;
    font-weight: bold;
    opacity: 1;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: opacity .6s;
    transition: opacity .6s;
}

.panel-message a:hover {
    opacity: .7;
    -webkit-transition: opacity .15s;
    transition: opacity .15s;
}

.panel-form .success,
.panel .info {
    padding: .5em;

    background: rgba(73, 188, 183, .15);

    font-size: 1.1em;
    line-height: 1.5em;
    text-align: center;
}
.panel .info {
    font-size: .9em;
    background: rgba(181, 188, 73, .15);
}
    .panel .info a {
        color: #5c626d;
        -webkit-transition: opacity .6s;
                transition: opacity .6s;
    }
        .panel .info a:hover {
            opacity: .7;
            -webkit-transition: opacity .15s;
                    transition: opacity .15s;
        }

.panel .filtered-content,
.panel .show-filtered .unfiltered-content {
    display: none;
}
    .panel .show-filtered .filtered-content,
    .panel :not(.show-filtered) .unfiltered-content {
        display: block;
    }


#race-recruit,
.group-recruit {
    text-align: center;
}

.social_invite {
    margin: 10px 0px 10px 0px;
}

.smaller {
    font-size: 70%;
}

.panel-form .error:not(.nofield) {
    width: 98%;
    margin: 0 auto;
    padding: .15em 1%;

    background: #f2dede;
    border: 1px solid rgba(169, 68, 66, 0.39);
    border-bottom: 0;
    box-shadow: inset 0px -10px 5px -10px rgba(0, 0, 0, 0.3);

    font-size: .9em;
    line-height: 1.25em;
}
    .panle-form .group .error,
    .panel-form .completable .error {
        margin: -1px 0 0 -1px;
    }

.panel-form .error.nofield {
    margin: .5em 0 0;
    padding: .5em;

    background: rgba(188, 73, 73, .2);

    line-height: 1.25em;
}
    .panel-form form .field .error + input,
    .panel-form .error + select,
    .panel-form .error + .completable {
        border-color: #cb7878;
    }

.panel-form .assurance:not(.nofield) {
    width: 98%;
    margin: 0 auto;
    padding: .15em 1%;

    background: #66FF99;
    border: 1px solid rgba(102, 102, 102, 0.39);
    border-bottom: 0;
    box-shadow: inset 0px -10px 5px -10px rgba(0, 0, 0, 0.3);

    font-size: .9em;
    line-height: 1.25em;
}

.runner {
    line-height: 56px;

    cursor: default;
    -webkit-transition: color .6s, background 3s ease-out;
            transition: color .6s, background 3s ease-out;
}

    .runner-link {
        cursor: pointer;
        color: inherit;
        opacity: 1;
        text-decoration: none;
    }
    .runner-link:hover {
        opacity: .7;
        -webkit-transition: color .15s, background 3s ease-out;
                transition: color .15s, background 3s ease-out;
    }
    .runner-link-uniteam {
        cursor: default;
    }
    .runner.noimage {
        line-height: 2em;
    }

    .runner .icon,
    .marker-tooltip .icon {
        height: 50px;
        width: 50px;

        display: inline-block;
        overflow: hidden;
        vertical-align: middle;

        border-radius: 0;
    }
        .runner .icon img,
        .marker-tooltip .icon img {
            height: 50px;
            width: 50px;
        }

    .runner .icon img {
        position: absolute;
    }

    .runner .icon .spectator {
        background-image: url("../img/megaphone-50x50-horizontal.e5c92d1cb528.png");
        position: absolute;
        width: 50px;
        height: 50px;
    }

    .runner .icon {
        position: relative;
        vertical-align: top;
        margin-right: 0.4em;
    }


    .runner .name {
        width: 28%;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
        white-space: nowrap;
    }
        .runner .name.multirow {
            position: relative;
            top: -.6em;
        }
    .runner .name.captain {
        margin-top: -.75em;
    }
    .runner .name.captain::after {
        content: '(captain)';
        display: block;
        margin: -1em 0 0;
        line-height: 1em;
    }
    .runner.spectator .name {
        width: 78%;
    }
    .spectator-listing-label {
        display: none;
    }
    .runner .team {
        display: inline-block;
        margin-left: .4em;
        max-width: 55%;

        font-size: .9em;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
        white-space: nowrap;
    }
    .runner .team_of_runner {
        display: block;
        font-size: .9em;
        text-overflow: ellipsis;
        vertical-align: top;
        white-space: nowrap;
        line-height: 1.0em;
        margin-bottom: .4em;
        position: relative;
        bottom: 15px;
        height: 0px;
    }

    .runner .place_number {
        display: inline-block;
        text-align: right;
        margin-right: .4em;
        vertical-align: top;
        min-width: 30px;
    }

    .place_number.place-number-hidden {
        visibility: hidden;
    }

/* Common between first and second panel */
.distance {
    float: right;
    white-space: nowrap;
    text-align: right;
    height: 0px;
}
    .distance.multirow {
        position: relative;
        top: -.6em;
    }
    .distance.doublerow {
        position: relative;
        line-height: normal;
        top: .3em;
    }
    .spectatorcount {
        font-size: 80%;
    }

.race-group-stats .runner.noimage {
    line-height: 1.5em;
    margin-bottom: .3em;
}
.race-group-stats .runner .place_number {
    height: 2em;
    display: block;
    float: left;
}
.race-group-stats .runner .name {
    display: block;
    width: auto;
}
.race-group-stats .runner .distance {
    display: block;
    text-align: left;
    float: none;
    height: auto;
}
.race-group-stats li:after {
    content: ' ';
    display: table;
    clear: both;
}


.panel-block,
#race-info,
.panel-form {
    border: 1px solid #dfe0e2;
}

.search-form {
    margin: .5em .5em 1.5em;
}


/* Second Panel */
#chat-list {
    margin: .5em .5em;
    position: relative;
}

    #chat-comment-form {
        display: none;
    }

    #chat-form {
        margin: .5em .5em 1.5em;
    }

    .modal .submission_distance {
        font-weight: bold;
    }

    .log-miles-form .field {
        margin-top: 2px;
    }
        /*
        .log-miles-form .field:last-child {
            margin-bottom: 0;
        }
        */
        .log-miles-form input {
            height: 26px;
            padding: 0 2px 0 2px;

            border: 1px solid lightgrey;
            border-radius: 0;
            -webkit-appearance: none;
        }
        .log-miles-form select {
            height: 28px;
            padding: 0 2px 0 2px;
            border: 1px solid lightgrey;
            border-radius: 0;
        }
        .log-miles-form .date-input {
            width: 40px;
            text-align: center;
            margin-right: 2px;
        }
        .log-miles-form .activity-input {
            width: 118px;
            margin-right: 2px;
        }
        .log-miles-form .distance-input {
            width: 60px;
            margin-right: 2px;
        }
        .log-miles-form .unit-input {
            width: calc(100% - 236px);
        }
        .log-miles-form .comment-input {
            height: 3em;
        }
        .log-miles-form .location-input {
            width: calc(100% - 6px);
        }
        .log-miles-form .log-separator {
            clear: both;
            padding-top: 1px;
        }
        .log-miles-form .selected-image-container {
            text-align: center;
            margin-top: 6px;
        }
        .log-miles-form .selected-image-container a,
        .log-miles-form .selected-image-container .error,
        .log-miles-form .selected-image-container img {
            display: none;
        }
        .log-miles-form .selected-image {
            width: 100%;
            height: auto;
        }
        .log-miles-form .selected-image-group {
            position: relative;
            width: 60%;
            margin: 0 auto;
        }
        .log-miles-form .delete-selector {
            text-decoration: none;
            background-color: white;
            position: absolute;
            top: 4px;
            right: 4px;
            color: grey;
            border: 1px solid grey;
            border-radius: 4px;
        }
        .log-miles-form .rotate-selector {
            text-decoration: none;
            background-color: white;
            position: absolute;
            bottom: 8px;
            right: 4px;
            color: grey;
            border: 1px solid grey;
            border-radius: 4px;
        }
        .log-miles-form .initially-hidden {
            position: absolute;
            top: -1000px;
        }
        .log-miles-form .icon-camera-full {
            width: auto;
            margin-right: 4px;
        }
        .log-miles-form .icon-camera-full.turned-on {
            background-color: lightgrey;
        }
        .log-miles-form .icon-camera-full.turned-on:hover {
            background-color: #e5e5e5;
        }
        .log-miles-form .button-add-remove {
            background: #fff;
            border: 1px solid #aaa;
            width: auto;
            padding: 3px 6px;
        }
        .log-miles-form .button-add-remove.remove-log {
            float: left;
        }
        .log-miles-form .button-add-remove:hover {
            background: #e5e5e5;
        }
        .log-miles-form .button-add-remove .icon-cancel {
            color: red;
        }
        .log-miles-form .button-add-remove .icon-plus-circle {
            color: #6EAFBA;
        }
        .log-miles-form .button-submit {
            float: right;
        }
        .log-miles-form .hide-button {
            display: none;
        }

    .log-miles-form form.loading {
        position: relative;
    }
        .loading-message {
            display: none;
            position: absolute;
            bottom: -1px; /* form buttons are outside of form by 1 px; Who can tell me why?? */
            left: 0;
            right: 0;
            top: 0;
            padding-top: 2em;

            background: rgba(255,255,255,.95);
        }
            .loading-message p {
                margin-left: 75px;

                color: #002;
                font-size: .9em;
                text-shadow: 0 0 3px #fff;
            }

        .log-miles-form form.loading .loading-message {
            display: block;
        }

    .log-miles-form .error {
        margin-bottom: 0;
        padding: .1em .3em;
    }
        .log-miles-form .error.nofield {
            margin: .5em 0 0;
        }

    .log-miles-form textarea {
        -webkit-appearance: none;
        border-radius: 0;
    }

.panel p.empty {
    padding: .15em .4em 0em;
    margin: .5em;

    background: rgba(255,255,255,.8);
}


#header,
#panels .header,
.marker-tooltip {
    background: #4b525b; /* = rgba(50,58,69,.85) = #323a45 with transparency */
    color: #fff;
}

    #panels .header:hover {
        background: #3a414a;
    }

    .marker-tooltip {
        color: #222;
    }

    .marker-tooltip .content {
        padding: .5em;
        background: rgb(255,255,255);
        line-height: 50px;
    }

    .marker-tooltip .extra {
        padding: .5em;
        background: #eef7f4;
        border-top: 1px solid #dfe0e2;
    }

    .marker-tooltip .extra .result-image {
        width: 290px;
        max-height: 128px;
        padding-top: 2px;
        text-align: center;
    }
        .marker-tooltip .extra .result-image img {
            max-width: 100%;
            max-height: 128px;
        }

    .marker-tooltip .extra-line {
        line-height: 36px;
        padding-left: 7px;
    }

        .marker-tooltip .extra-line .icon,
        .marker-tooltip .extra-line img {
            width: 36px;
            height: 36px;
        }

    .marker-tooltip .name {
        font-weight: bold;
        vertical-align: middle;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .marker-tooltip .content .name {
            width: 140px;
            font-size: 1.8em;
        }

        .marker-tooltip .content .distance {
            position: absolute;
            right: 0.8em;
        }

        .marker-tooltip .extra-line .icon {
            background-color: #666;
        }

        .marker-tooltip .extra-line .time {
            vertical-align: middle;
        }

    .marker-tooltip .extra-line .distance {
        position: relative;
        top: 2px;
    }


        .marker-tooltip .extra-line .name {
            max-width: 120px;
        }

        .marker-tooltip .extra .latest-text {
            text-align: center;
        }

        .marker-tooltip .extra-loading {
            height: 2em;
            width: 100%;
            background: transparent url("../img/ajax-loader.c5cd7f530057.gif") no-repeat center center;
        }

#marker-tooltip-template {
    display: none;
}

#race-title,
#panels .header {
    text-shadow: 0 0 3px rgba(0,0,0,.5);
}

#map {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 3.15em; /* 1.8 * 1.75 // from .race-title */

    border: none;

    z-index: 50;
}

.marker-tooltip {
    position: absolute;
    padding: .5em .5em;
    font-size: .9em;
    width: 300px;
    z-index: 100;
    position: fixed;
}
    .marker-tooltip .header {
        margin: 0;

        font-size: 1.05em;
    }

.gmnoprint.control-type {
    right: 30px !important;
    top: 1px !important;
    bottom: initial !important;
}


/* team input label */
#completable_id_team_select {
    width: 100%;
    max-width: 100%;
}

form input[id^=id_team_name]:focus {
    padding-left:20%;
    width: 79%;
    max-width: 79%;
}

#id_field_team_name_helper {
    display: none;
    position: absolute;
    left: 4px;
    bottom: -8px; /* positioning from top is not easy due to error message */
}

#id_user_type {
    margin: 0;
}

/* special views */
.route #header,
.route #djDebug,
.route #panels,
.route #footer,
.route.hidecontrols .gmnoprint,
.route.hidecontrols .gm-style-cc,
.route.hidecontrols .gm-style a { display: none !important; }
.route #map { top: 0; }
.route #map .gmnoprint:last-child { margin-top: auto }

/* mobile views */
#mobile-menu {
    left: .4em;
    top: .3em;

    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.6em;

    cursor: pointer;
    text-transform: uppercase;
    -webkit-transition: opacity .6s;
            transition: opacity .6s;
}
    #mobile-menu:hover {
        opacity: .7;
        -webkit-transition: opacity .15s;
                transition: opacity .15s;
    }

.mobile-only { display: none; }

@media (max-width: 800px) {
    #race-title {
        padding: 0 2em 0 7em;
    }

    input, select, textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 640px) {
    #header {
        font-size: .8em;
    }

    #site img {
        height: 28px;
    }

    #site {
        top: .2em;
    }

    #map {
        top: 2.5em;
    }
    #login_logout {
        right: .7em;
    }
        #login_logout .runner .icon{
            height: 30px;
            width: 30px;
        }
}

@media (max-width: 480px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    #djDebug #djDebugToolbarHandle {
        display: none !important;
    }

    #logout_icon img {
        vertical-align: sub;
    }

    #login_logout .login_logout_container {
        height: 100%;
    }

    #race-title {
        padding: 0;
        width: 55%;
        margin: 0 auto;
    }

    #header,
    #panels {
        position: relative;
    }

    #panels {
        display: none;

        left: 0;
        top: 0;
        width: auto;

        border: none;
        font-size: 0.95em;
        opacity: 1;
    }
        #panels.opened {
            margin: 1em .5em;
        }

    #panels,
    .panel {
        overflow: initial;
    }

    .panel {
        background: transparent;
        box-shadow: none;
    }

    .panel .header:before {
        display: none;
    }

    #panels.opened .header {
        display: none;
    }
    .panel.active .header {
        font-weight: 700;
    }
    #panels.opened .active .header {
        cursor: default;
        display: block;
        outline: none;
    }
        #panels.opened .active .header:hover {
            opacity: .9;
        }

        #panels.opened .active .header,
        #panels.opened .active .header:hover {
            -webkit-transition: none;
                    transition: none;
        }

        #panels *:active {
            -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
               -moz-tap-highlight-color: rgba(0,0,0,0) !important;
                    tap-highlight-color: rgba(0,0,0,0) !important;
        }

    #panels.opened .map.active .header {
        display: none;
    }

    .panel.active > .content {
        display: none;
        position: relative;
    }
    #panels.opened .panel.active > .content {
        display: block;
    }

    .panel-form .completable {
        width: 100%;
    }

    .panel-block,
    #race-info,
    .panel-form {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1em;
        padding-right: 1em;
    }
        .panel-form .field {
            width: 90%;
        }
            .panel-form .field .field {
                width: 78%;
            }

    .runner:hover {
        color: #6d737e;
    }
    .runner,
    .runner:hover {
        -webkit-transition: none;
                transition: none;
    }
        .runner .team {
            line-height: 1.6em;
        }

    .panel p.empty {
        margin: .5em 0 0;
    }

    .runner .name {
        width: 25%;
    }

    .marker-tooltip {
        left: 5% !important;
        right: 5% !important;
        margin-top: 15px;
        width: auto;
    }

    .log-miles-form #field_date {
        width: 30%;
    }
    .log-miles-form #field_distance {
        width: 50%;
        margin: 0 .5em;
    }
    .log-miles-form #field_result_image {
        width: 15%;
    }
}

@media (max-width: 400px) {
    .log-miles-form input,
    .log-miles-form .qq-upload-button {
        height: 25px;
    }

    .log-miles-form #field_date {
        width: auto;
    }
    .log-miles-form #field_date .side-label {
        margin: 0 -6px;
        background-size: 32px;
    }
    .log-miles-form #field_distance {
        margin: 0 .6em;
        width: auto;
    }
        .log-miles-form #field_distance input {
            width: 2.75em;
        }
        .log-miles-form #field_distance .side-label select {
            padding-top: .15em;
            padding-bottom: .05em;
            font-size: 1em !important;
        }
    .log-miles-form #field_result_image {
        width: 14%;
    }
    .log-miles-form .qq-upload-button {
        padding: 0 0 0 1px;
        font-size: 17px;
    }
}

.meta.chat-like,
.meta.chat-comment,
.meta.like,
.meta.comment {
    transition: background 3s ease-out;
}

#signup-form-bottom-spacer {
    margin-bottom: 2.5em;
}

#field_entry_fee {
    width: 25%;
    margin-top: 1.5em;
}

.currency-input {
    font-size: 1.5em;
    margin: 0 auto;
    color: #444;
    text-align: center;
}

.currency-input span:not([class*=normal-span]) {
    position: absolute;
    left: 0.26em;
}

.currency-input input {
    display: inline;
    width: 82%;
    padding: 0 0 0 0.8em;
    border: 1px solid #aaa;
}

#field_entry_fee_caption_text {
    line-height: 1.2em;
    margin-bottom: 2em;
}

#field_promo_code {
    width: 78%;
    font-size: 0.7em;
    margin-bottom: 12px;
    margin-top: 12px;
}

#field_promo_code input,
#field_promo_code input.button {
    margin-top: 0;
    font-size: inherit;
    padding: 0 3px;
    display: inline-block;
    width:50%;
    box-sizing: border-box;
}
#field_promo_code input.button {
    color: #fff;
}
#field_promo_code input.button[disabled] {
    background-color: #bdbdbd;
    border-color: #b3b3b3;
    opacity: .7;
}

.donate-fields,
.before-button-fields {
    line-height: normal;
}

#field_donate_text,
#field_address_text {
    font-weight: bold;
    margin-top: 1.5em;
}

#field_donate_text .html-display {
    text-align: center;
}

#donation-form #address-group-container,
#donation-form #address-group-2-container {
    margin-bottom: 0;
}

    #address-group-container .field,
    #address-group-2-container .field {
        display: inline-block;
        vertical-align: top;
    }

    #address-group-container .field input,
    #address-group-2-container .field input {
        padding: 0 2px;
    }

#field_city {
    width: 49%;
}

#field_state {
    width: 49%;
    left: 4px;
}

#field_region {
    width: 48%;
    left: 3px;
}

#field_country select,
#field_state select {
    padding: 0;
    width: 99%;
    height: 1.58em;
}

#field_country select:invalid,
#field_state select:invalid {
    color: #A9A9A9;
}

#field_country select:invalid option,
#field_state select:invalid option {
    color: black;
}

#field_country {
    width: 50%;
}

#field_zip_code {
    width: 48%;
}

.total-amount {
    border: 1px solid #CCCCCC;
    display: inline;
    padding: 0 20px;
}

.referer_link {
    padding: 0.5em 1em 1em 0.5em;
    border: 1px solid lightgrey;
    margin: 10px;
    word-break: break-word;
}

.choice-with-other-widget ul {
    margin: 1px;
    column-count: 2;
    -moz-column-count: 2;
    list-style: none;
}

.choice-with-other-widget ul li {
    line-height: 1.5em;
}

.choice-with-other-widget input[type="radio"] {
    margin-right: 0.2em;
}

.choice-with-other-widget input[type="number"] {
    padding: 0px 2px;
    width: 50%;
}

.about_rules {
    padding-left: 1em;
}

.race-bib .image {
    max-height: 218px;
    line-height: 157px;
    width: 100%;
    overflow: hidden;
}
.race-bib .image img {
    min-height: 157px;
    width:100%;
    margin: 1em auto;
    cursor: pointer;
}
.race-bib .image img.error,
.race-bib .image img.loading {
    display: none;
}
.race-bib .image::after {
    content: "\A\A patience human,\00a0 please do\A 10 pushups\A while we build your bib.";
    white-space: pre;
    line-height: 1.3em;
    color: #5c626d;
    display: block;
    position: relative;
    width: 100%;
    height: 157px;
    background: rgba(255,255,255,.95) url("../img/ajax-loader.c5cd7f530057.gif") no-repeat center 120px;
    border-radius: 5px;
    margin: 1em auto;
}

.pager-control {
    cursor: pointer;
}

.user-type-caption-text {
    font-weight: bold;
    margin-top: 0.2em;
}

#field_user_type_caption_text, #field_user_type {
    line-height: normal;
    margin-bottom: 1em;
}

#field_user_type_caption_text {
    margin-bottom: 0.2em;
}

.bling-offer {
    text-align: center;
    width: 78%;
    margin: 0 auto .5em;
}

.bling-offer .bling-offer-caption-text {
    font-weight: bold;
    margin-bottom: 0.2em;
    text-align: left;
}

.bling-offer .blings-container + .blings-container {
    margin-top: 1em;
}

.bling-offer .blings-container select {
    display: inline-block;
    width: 14em;
}

.bling-offer .blings-container .blings-radio {
    text-align: left;
}

.bling-offer .buy-button-container button {
    background-color: #2C91A7;
    color: #fff;
    border: 1px solid transparent;
    border-width: 1px 0;
    font-weight: bold;
    border-radius: 2px;
    margin-top: 0.4em;
}

.bling-offer .samples, .bling-offer .eligible-blings {
    margin-top: 0.8em;
}

.bling-offer .bling-image {
    width: 100%;
    margin-top: 0.2em;
}

.bling-offer .samples img {
    display: none;
}

.bling-extra-html {
    display: none;
}

.blings-radio input[type=radio],
.blings-radio input[type=checkbox] {
    margin-top: 8px;
}

#race-signup {
    display: none;
}

#signup_form_show_button {
    margin:0 auto 0;
}

.image-thumbnail:hover {
    cursor: pointer;
}

.participation_and_achievements-content {
    text-align: center;
    margin: 1em;
}

.participation_and_achievements-content p, .participation_and_achievements-content h1 {
    margin: 0;
}

.participation_and_achievements-content .bold {
    font-weight: bold;
}

.panel .segments {
    padding: 0;
    max-width: 100%;
    width: 100%;
    line-height: 1em;
    text-align: center;
}

.panel .segments-items {
    overflow: hidden;
    border: none;
}

.panel .segments button {
    float: left;
    width: 50%;
    padding: 0.3em 0 .2em;
    border: 1px solid #aaa;
    border-right-width: 0;
    color: #444;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .6s, color .6s, text-shadow;
    outline: none;
}
.panel .segments button:hover {
    background: #fff;
}

.panel .segments button.selected {
    background: #6eafba;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.3);
    transition: background-color .15s, color .15s, text-shadow;
}
.panel .segments button.selected:hover {
    background: #6eafba;
}

.panel .segments button:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.panel .segments button:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right-width: 1px;
}
