@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #161616;
    color: #fff;
}

a, .btn-link {
    color: #0366d6;
}

.nav-bottom {
    width: 100%;
    position: fixed;
    bottom: 0%;
    display: table;
    z-index: 2000;
    background-color: #6c757d;
}
    .nav-bottom > .btn {
        width: 33%;
        border-radius: 0;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-fullwidth {
    width: 100% !important;
}

.btn .oi {
    margin-right: 0.6em;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    margin-bottom: 2rem;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient( 180deg, #495057 0%, #212529 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.table-round {
    min-width: 3em;
    background-position: center;
}

.res-points {
    color: lightgreen;
}

.table-standings th {
    padding-left: 0rem;
    padding-right: 0rem;
}

.res-no-points {
    color: darkcyan;
}

.res-pos-1 {
    color: yellow;
}

.res-pos-2 {
    color: lightgray;
}

.res-pos-3 {
    color: goldenrod;
}

.res-DNF, .res-DSC, .res-DNS {
    color: dimgray;
}

.res-DSQ, .res-BAN {
    color: lightcoral;
}

.round-header {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.table-round-id {
    display: block;
    font-size: 1.4rem;
}

.table-standings {
    font-size: 0.75rem;
}

@media only screen and (max-width: 412px) {
    .table-mobile {
        overflow-x: auto;
        display: block;
    }

        .table-mobile td {
            font-size: 1rem;
            padding: 6px;
        }

            .table-mobile td img {
                width: 18px;
            }
}
@media only screen and (max-width: 400px) {
    .table-mobile td {
        font-size: 0.95rem;
        padding: 6px;
    }
}
@media only screen and (max-width: 380px) {
    .table-mobile td {
        font-size: 0.85rem;
        padding: 6px;
    }
}
@media only screen and (max-width: 365px) {
    .table-mobile td {
        font-size: 0.78rem;
        padding: 6px;
    }
}
@media only screen and (max-width: 320px) {
    .table-mobile td {
        font-size: 0.6rem;
        padding: 6px;
    }
}


    .table-standings thead tr {
        background-color: #32383e;
        /*background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));*/
    }

    .table-standings th {
        padding-top: 2rem;
        padding-bottom: .2rem;
        border-right: solid 3px;
    }

    .table-round-shortName {
        display: block;
    }


    /* Bootstrap modifications */
    /* Lighten text on dark back drops */
    .table-dark .text-success {
        color: lightgreen !important;
    }

    .table-dark .text-danger {
        color: lightcoral !important;
    }

    /* Quick Spacing*/

    .margin-left {
        margin-left: 0.3rem;
    }

    .pad-left {
        padding-left: 0.3rem !important;
    }

    .margin-top {
        padding-top: 1rem !important;
    }

    /* Avatar */

    .entrant-hero-panel {
        margin-bottom: 1.8rem;
        padding-left: 0.6rem;
    }

    .hero-text {
        float: left;
        padding: 0.3em 0.6em;
        width: 100%;
    }

    .hero-avatar {
        overflow: hidden;
        height: 6.2rem;
    }

        .hero-avatar img {
            width: 6rem;
            margin-top: -1rem;
            float: right;
            margin-right: 1rem;
        }

    .hero-top-level-stats {
        width: 100%;
    }

    .stats-title {
        margin-top: -2.0rem;
        margin-bottom: 0.2rem;
        padding-right: 18px;
        float: right;
    }

    .hero-top-level-stats .stats .label {
        font-size: 0.8rem;
        float: left;
        margin-right: 0.2rem;
    }

    .hero-top-level-stats .stats .stats-value {
        margin-right: 0.4rem;
        font-weight: bold;
        font-size: 3rem;
        width: 100%;
        padding: .4rem .2rem;
        text-align: center;
    }

    .hero-tile {
        float: left;
        width: 32%;
        background-color: #222;
        margin: 0px 6px 0px 0px;
        padding: 6px;
    }

    .btn-page-nav {
        float: right;
    }

    .nav-title {
        font-size: 1.1rem;
        margin-left: 0.4rem;
    }

    .nav-buttons {
        margin-right: 0.4rem;
    }

        .nav-buttons button {
            font-size: 1.25rem;
            line-height: 1;
            background-color: transparent;
            border: 0px solid transparent;
            padding: 0.1rem 0.4rem 0px 0px;
        }

        .nav-buttons img {
            height: 1.2rem;
        }

    .alert {
        border: none;
        border-radius: 0px;
    }

    .alert-dark {
        background-color: #32383e;
        color: #fff;
    }

    .modal-popup {
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        position: fixed;
        background-color: #FFF4;
        z-index: 9999;
        padding: 10px;
    }

    .btn-bar {
        position: relative;
        vertical-align: middle;
    }

        .btn-bar > .btn-bar:not(:last-child) > .btn, .btn-bar > .btn:not(:last-child):not(.dropdown-toggle) {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .btn-bar > .btn-bar:not(:first-child) > .btn, .btn-bar > .btn:not(:first-child) {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            margin-left: -4px;
        }

        .btn-bar > .btn {
            position: relative;
            -webkit-box-flex: 0;
            -ms-flex: 0 1 auto;
            flex: 0 1 auto;
        }

    .min-width-6rem {
        min-width: 6rem;
    }

    .tile {
        min-height: 5rem;
        cursor: pointer;
    }

        .tile > img {
            width: 100%;
            opacity: 0.3;
            border: solid 2px rgb(22 22 22 / 0.00);
        }

        .tile > .tile-title {
            margin: -3rem 0 3rem 1rem;
            font-size: 2rem;
            font-weight: bold;
        }

        .tile > .tile-details {
            margin: -7.5rem 0 4.5rem 1rem;
            font-size: 1.2rem;
        }

        .tile > img:hover {
            opacity: 0.8;
            border: solid 0px rgb(22 22 22 / 0.00);
        }

    .team-standings-image > img {
        width: 1.75rem;
        margin: -2rem 0;
        filter: grayscale(20%);
    }

    .club-logo {
        width: 70px;
        position: absolute;
        top: 10px;
        left: 20px;
    }

    .stats-panel {
        max-width: 100%;
        margin: 0px -15px;
        padding-left: 15px;
        background-color: #212529;
        width: 100%;
    }

        .stats-panel .row {
            background-color: #212529;
        }

    .res-position {
        border-left: 5px solid transparent !important;
        max-width: 2em !important;
    }

    .pos-selected {
        border-left: 5px solid #fff !important;
    }

    .pie-title {
        font-size: 1.4rem;
        margin-left: 3rem;
        margin-bottom: -2rem;
        z-index: 1000;
    }