@font-face {
    font-family: Helvetica;
    src: url(../fonts/HelveticaNeueLTW04-55Roman.ttf);
}

@font-face {
    font-family: Helvetica Bold;
    src: url(../fonts/HelveticaNeueLTW01-75Bold.ttf);
}

.header {
    display: inline-flex;
    height: 15%;
    width: 100%;
    justify-content: left;
    background-color: #2d2d2d;
    color: white;
    font-family: Helvetica Bold;
}

.content {
    width: 80%;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.heading {
    font-size: 54px;
    display: inline-flex;
    margin: 1% auto;
}

.logo {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 30px;
    height: 100px;
    width: auto;
}

body {
    background-color: #111111;
    align-items: center;
    justify-content: center;
    font-family: Helvetica;
}

.leaderboard {
    position: absolute;
    width: 80%;
    height: 75%;
    margin-top: 3%;
    overflow-y: scroll;
    border-radius: 20px;
    margin-left: 10%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.leaderboard::-webkit-scrollbar {
    display: none;
}

.leaderboard-table {
    overflow-x: hidden;
    overflow-y: hidden;
    position: absolute;
    float: center;
    border-spacing: 10%;
    width: 100%;
    table-layout: fixed;
    text-align: center;
    border-collapse: collapse;
    border-radius: 20px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, .40);
    color: white;
    font-size: 22px;
    background: #191919;

    animation-name: autoScroll;
    animation-duration: 30s;
    animation-iteration-count: 1000;
    animation-timing-function: ease-in;

    -webkit-animation-name: autoScroll;
    -webkit-animation-duration: 30s;
    -webkit-animation-iteration-count: 1000;
    -webkit-animation-timing-function: ease-in;
}

.leaderboard-table:hover {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

.leaderboard-table th {
    background-color: #D93954;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1%;
    padding-left: 2%;
    text-align: left;
}

.leaderboard-table tbody {
    height: 80%;
}

.leaderboard-table tr:nth-child(odd) {
    background-color: #2D2D2D;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #191919;
}

.rank {
    width: 15%;
}

.score {
    width: 20%;
}

.username {
    width: 65%;
}

.menu {
    width: 10%;
    display: inline-flex;
    margin: auto auto;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.refresh {
    display: inline-flex;
    border-radius: 5px;
    background-color: #D93954;
    border: none;
    width: 50px;
    height: 50px;
    transition-duration: 0.2s;
    background: url(../images/refresh_icon.png);
    background-size: cover;
}

.refresh:hover {
    opacity: 0.7;
}

.refresh:focus {
    opacity: 0.3;
    transition: all 0.2s;
}

.refresh:active::after {
    opacity: 1;
}

.centered-image img {
    display: block;
    max-width: 10%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes autoScroll {
    0% {
        transform: translateY(0);
    }

    3% {
        transform: translateY(0);
    }

    97% {
        transform: translateY(-95%);
    }

    100% {
        transform: translateY(-95%);
    }
}

@-webkit-keyframes autoScroll {
    0% {
        transform: translateY(0);
    }

    3% {
        transform: translateY(0);
    }

    97% {
        transform: translateY(-95%);
    }

    100% {
        transform: translateY(-95%);
    }
}