:root {
    --card-background-color: #fff;
    --card-text-color: #000;
    --btn-background-color: #0060f6;
    --btn-text-color: #fff;
}

[data-theme="dark"] {
    --card-background-color: #1f1f1f;
    --card-text-color: #fff;
    --btn-background-color: #fff;
    --btn-text-color: #303030;
}

.number-holder {
    transition: all 500ms ease-in-out;
}

.scoreboard {
    display: flex;
    border-radius: 35px;
    width: 85%;
    margin: 0 auto;
    margin-top: 75px;
    margin-bottom: 25px;
    padding: 3rem 50px;
    flex-direction: column;
    background: var(--card-background-color);
    color: var(--card-text-color);
    box-shadow: 0 0.4px 3.6px rgba(0, 0, 0, 0.004),
        0 1px 8.5px rgba(0, 0, 0, 0.01), 0 1.9px 15.7px rgba(0, 0, 0, 0.019),
        0 3.4px 28.2px rgba(0, 0, 0, 0.03), 0 6.3px 54.4px rgba(0, 0, 0, 0.047),
        0 15px 137px rgba(0, 0, 0, 0.07);
    font-family: 'Montserrat';
}

@media screen and (max-width: 1010px) {
    .scoreboard {
        width: 98%;
        margin-top: 15.2%;
    }
}

@media screen and (max-width: 800px) {
    .social {
        display: none;
    }

    .scoreboard__podiums {
        display: none;
    }
}

.scoreboard__item {
    display: flex;
    padding: 1rem 0;
    width: 100%;
    flex-wrap: wrap;
    opacity: 0;
    top: 20px;
    transition: 500ms ease-in-out;
    font-family: 'Montserrat';
}

.scoreboard__item.is-visible {
    opacity: 1;
    top: 0;
    transition: 500ms ease-in-out;
}

.scoreboard__title {
    width: 300px;
    font-weight: 600;
}

.scoreboard__title small {
    color: #333;
}

.scoreboard__status {
    font-weight: 300;
}

.scoreboard__numbers {
    font-weight: 600;
    text-align: right;
    align-self: flex-end;
    margin-left: 20px;
    flex: 1;
}

.scoreboard__bar {
    width: 100%;
    background: #ececec;
    height: 10px;
    position: relative;
    border-radius: 5px;
    transition: all 500ms ease-in-out;
    display: flex;
    flex-basis: 100%;
}

.scoreboard__bar:before {
    content: "";
    width: 100%;
    flex-basis: 100%;
    clear: both;
    display: block;
}

.scoreboard__bar-bar {
    position: absolute;
    height: 10px;
    left: 0;
    top: 0;
    width: 0;
    max-width: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, #F0CF65 0%, #ebc137 100%);
    transition: all 250ms ease-in-out;
}

.scoreboard__podiums {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 20px auto 20px auto;
    margin-top: 0;
    min-height: 350px;
}

.scoreboard__podiums .scoreboard__podium {
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    flex-wrap: wrap;
    flex: 1;
    opacity: 0;
    top: -10px;
    transition-duration: 100ms;
    animation-duration: 100ms;
}

.scoreboard__podiums .scoreboard__podium.is-visible {
    top: 0;
    opacity: 1;
    transition: all 500ms ease-in-out;
}

.scoreboard__podiums .scoreboard__podium-rank {
    font-size: 4rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 0px;
}

.scoreboard__podiums .scoreboard__podium-base {
    height: 0;
    background: #ececec;
    color: #fff;
    min-width: 150px;
    border-radius: 5px;
    transition: all 1000ms ease-in-out;
    opacity: 0;
    position: relative;
}

.scoreboard__podiums .scoreboard__podium-base.is-expanding {
    opacity: 1;
}

.scoreboard__podiums .scoreboard__podium-base--first {
    background: linear-gradient(to bottom, #BD4F6C 0%, #9e3b55 100%);
}

.scoreboard__podiums .scoreboard__podium-base--second {
    background-color: #F0CF65;
    background: linear-gradient(to bottom, #F0CF65 0%, #ebc137 100%);
}

.scoreboard__podiums .scoreboard__podium-base--third {
    background-color: #5E9EAD;
    background: linear-gradient(to bottom, #5E9EAD 0%, #49828f 100%);
}

.scoreboard__podiums .scoreboard__podium-number {
    text-align: center;
    font-size: 1.5rem;
    /*margin-top: 10px;*/
}

.scoreboard__podiums .scoreboard__podium-number small {
    display: block;
    font-size: 60%;
    color: #333;
    line-height: 1.5;
    text-transform: uppercase;
}

.credits {
    font-size: 14px;
    text-align: center;
    margin: 20px 0;
}

#scoreboard__items {
    position: relative;
    margin: 0;
    padding: 0;
    list-style-type: decimal;
}

.oneup-audio {
    display: none;
}

.style-switch {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border: none;
    font-size: 15px;
}

body .dark-mode {
    background: #111;
    color: #fff;
}

body .dark-mode .scoreboard {
    background: #111;
    color: #fff;
}

body .dark-mode .scoreboard small {
    color: #eee !important;
}

body .dark-mode .scoreboard__bar {
    background: #333;
}

.bump {
    animation: bump 500ms ease-in-out;
}

@keyframes bump {
    0% {}

    50% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }
}

.button-yellow {
    background-color: #ebc137;
    color: #fff;
}

.li-class .tooltip-text {
    z-index: 1000;
    display: none;
    background: rgba(1, 2, 1, 0.7);
    color: #fff;
    padding-top: 2.5px;
    padding-bottom: 2.5px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    position: fixed;
    z-index: 128364871263984;
    margin-top: -26px;
    left: 200px;
    font-size: 13.9px;
    border-radius: 5px;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.50);
}

.tooltip-text:after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    height: 10px;
    border-color: transparent rgba(1, 2, 1, 0.7) transparent transparent;
}

@keyframes cssAnimation {
    0% {
        opacity: 0;
    }

    7% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

@-webkit-keyframes cssAnimation {
    0% {
        opacity: 0;
    }

    7% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.podium-name-first,.podium-name-second,.podium-name-third,.podium-num-first,.podium-num-second,.podium-num-third {
    color: var(--card-text-color);
}