/* Alert */
#df-alert {
    width: 100vw;
    height: 100vh;
    z-index: 999;
    position: fixed;
    background-color: rgba(11, 11, 14, 0.85);
    backdrop-filter: blur(4px);
}

.alert {
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 25px;
}

.alert h1 {
    margin-bottom: 15px;
    color: white;
    font-size: bold;
}

.alert .input-group {
    margin-bottom: 5px;
}

.alert .input-group-text {
    width: 126px;
    background-color: #4f8aba;
    color: white;
    font-weight: bold;
    border: none;
}

.alert button {
    margin-top: 8px;
    color: white;
    font-weight: bold;
    padding: 6px 14px;
}

@media screen and (max-width: 576px) {
    #df-alert {
        padding: 25px;
        text-align: center;
    }
}

/* Leaderboard */
#leaderboard-header-2,
#leaderboard-header-3 {
    display: none;
}

.leaderboard-header,
.leaderboard-row {
    display: flex;
    justify-content: space-between;

    color: white;
    padding: 6px 14px;
}

.leaderboard-header .rank,
.leaderboard-row .rank {
    width: 15%;
}

.leaderboard-header .name,
.leaderboard-row .name {
    width: 25%;
}

.leaderboard-header .ranking,
.leaderboard-row .ranking {
    width: 60%;
}

.leaderboard-header {
    background-color: #4f8aba;
    color: white;
    font-weight: bold;
    padding: 6px 14px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.leaderboard-row {
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    align-items: center;
    margin-bottom: 5px;
}

.leaderboard-row .rank {
    font-size: 25px;
    font-weight: 900;
}

.leaderboard-row .rank span {
    font-size: 15px;
    font-weight: 600;
    margin-right: 2px;
}

.leaderboard-row .ranking {
    display: flex;
    justify-content: start;
    align-items: center;
}

.leaderboard-row .ranking p {
    font-size: 20px;
    font-weight: 600;
    margin-right: 15px !important;
}

.leaderboard-row .ranking .progress-bar {
    background-color: rgba(78, 137, 184, 0.3);
    border-radius: 5px;
    height: 100%;
    width: 100%;
}

.leaderboard-row .ranking .progress-bar .progress {
    background-color: #4f8aba;
    height: 30px;
}

@media only screen and (max-width: 768px) {

    #leaderboard-header-2 .leaderboard-header,
    #leaderboard-header-3 .leaderboard-header {
        display: none !important;
    }
}

/* Add border to leaderboard-row that is you */
.me {
    border: 2px white solid !important;
}

/* Shine animation */
@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.shine {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    overflow: hidden;
}

/* First shine effect */
.shine::before,
.shine::after {
    content: '';
    position: absolute;
    top: 0;
    width: .5%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    transform: skewX(-25deg);
    animation: shine 3s linear infinite;
}

/* First shine starts at -100% */
.shine::before {
    width: 5%;
    left: -100%;
    animation-delay: 0s;
}

/* Second shine starts slightly later */
.shine::after {
    left: -150%;
    animation-delay: .02s;
    /* Delays the second shine effect */
}

/* Different background colors for the top 3 players */
#rank-1 {
    background-color: rgba(212, 175, 55, 0.4);
}

#rank-2 {
    background-color: rgba(229, 228, 226, 0.4);
}

#rank-3 {
    background-color: rgba(205, 127, 50, 0.4);
}
