* :root {
    --nav-color: #f7f7f7;
}

canvas {
    width: 100%;
    height: 300px;
    background-color: #90a1a8;
}

#rerace {
    background-color: #7875d3;
    border-color: #7875d3;
    color: white;
}

.intro {
    text-align: center;
    margin: 30px 6em 30px 6em;
}

.intro-text {
    margin-top: 20px;
    font-size: x-large;
}

.main {
    border-radius: 20px;
    background-color: #f28359;
    padding: 20px;
    box-shadow: 5px 10px 18px #888888;
}

.text-container {
    display: inline-block;
}

.char {
    padding: 0px 1px;
    font-size: x-large;
}

.space {
    padding: 0px 4px;
}

.results-container {
    text-align: center;
    display: none;
}

.results-list {
    border-radius: 20px;
    width: 220px;
    padding: 0;
    box-shadow: 5px 10px 18px #888888;
}

.results-list > li {
    border: 2px solid black;
    background-color: var(--nav-color);
}

.leaderboard-list {
    border-radius: 20px;
    width: 220px;
    padding: 0;
    box-shadow: 5px 10px 18px #888888;
    margin-left: 20px;
    border: 1px solid black;
}

.leaderboard-list > li {
    border: 1px solid black;
    background-color: var(--nav-color);
}

.leaderboard-header {
    border-bottom: 2px solid black !important;
}

.list-group-item+.list-group-item {
    border-top: 2px;
}

.dropdown-button {
    padding: 0;
}

.dropdown-button:focus,
.dropdown-button:active {
    box-shadow: none;
}

.dropdown-svg {
    transition: color 0.15s;
    transition-timing-function: ease-out;
}

.dropdown-svg:hover {
    color: var(--cyan);
}

.badge {
    font-size: 1em;
    color: black;
}

html {
    overflow-y: overlay;
}

@media screen and (max-width: 220px) {
    .results-list,
    .leaderboard-list {
        width: 100%;
    }
}

@media screen and (max-width: 479px) {
    .results-container {
        flex-direction: column;
        align-items: center !important;
    }

    .results-list {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .leaderboard-list {
        margin-left: 0;
        margin-top: 20px;
    }
} 

#race-container {
    width: 100%;
    height: 300px;
    position: relative;
    background: url(../img/NEWnewroad-01.png); 
    background-repeat: no-repeat; 
    background-position: right 0px;
    background-size: cover;
    margin-bottom: 30px;
}

#animate {
    width: 70px;
    height: 33px;
    background: url(../img/car1.png);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 44px;
    left: 0;
} 

#animate2 {
    width: 70px;
    height: 33px;
    object-fit: cover;    
    background: url(../img/car2.png);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 103px;
    left: 0;
}

#animate3 {
    width: 70px;
    height: 33px;
    background: url(../img/car3.png);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 164px;
    left: 0;
}

#animate4 {
    width: 70px;
    height: 33px;
    background: url(../img/car4.png);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 222px;
    left: 0;
}

.labeled {
    position: absolute;
    left: 70px;
    background:#fff;
    border-radius: 6px 6px 6px 0;
    padding: 2px 7px;
    top: -16px;
} 
