@font-face {
    font-family: 'superLobster';
    src: url('fonts/Super Lobster.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }


#endgame-leaderboard {
    position: absolute;
    width: 75%;
    height: 90%;
    left: 10%;
    top: 2%;
    z-index: 600;
    display: none;
    background-image: url(../images/endgame/Asset\ 17.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#leaderboard-final {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: 90%;
    margin-top: 10%;
    position: absolute; 
    
    padding-top: 90px; 
    box-sizing: border-box;
    
}


#leaderboard-final h1 {
    margin: 0;
    font-size: 2em; 
    text-align: center;
}


.endgame-btns {
    display: flex;
    gap: 5%;
    justify-content: center;
    width: 100%;
    height: 12%;
}

.endgame-btn {
    padding: 10px 20px;
    font-size: 1em;
    width: 37%;
    cursor: pointer;
    /*background-image: url(../images/EnvironemntImages/game/tube.png);
    background-position: center;
    background-size: cover;*/
    border: none;
    color: white;
    border-radius: 5px;
}


.leaderboard-row {
    /*background-image: url(../images/endgame/leaderboardLine.png);*/
    background-image: url(endgameImages/leaderboardLine.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;


    padding-left: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    height: 15%;
    margin-top: 5px;
    position: relative;
    border-radius: 20px;
    z-index: 2;
}

.rank{
    display: flex;
    justify-content: center;
    /*background-image: url(../images/endgame/smallToilate.png);*/
    background-image: url(endgameImages/smallToilate.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: 4vb;
    width: 10%;
    height: 70%;
}


.rank, .name, .time, .sound {
    font-size: 1.2em;
    color: #015001;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

.time{
    right: 0;
    color: white;
}

.avatar img, .sound img, .time img {
    height: 80%;
    width: 30%;
    object-fit: contain;
}

.rank {
    width: 20%;
    font-size: 4vb;
    text-align: center;
}

.avatar {
    height: 60%;
    width: 10%;
    display: flex;
    justify-content: center;
    background-color: white;

    border: 5px solid black;
    border-radius: 50px;
}

.avatar img{
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.name {
    display: flex;
    justify-content: left;
    color: green;
    font-family: 'superLobster', sans-serif;
    align-items: center;
    width: 35%;
    height: 60%;
    font-size: 4vb;
    background-color: white;
    border-radius: 10px;
    border: 5px solid black;
    padding-left: 10px;
}

.time {

    width: 25%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 4vb;
}





@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideUpFadeInFixed {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}
