@font-face {
    font-family: "04B_30";
    src: url("./fonts/04B_30.ttf");
}

@font-face {
    font-family: 'josefin-sans';
    src: url("./fonts/JosefinSans-Regular.ttf");
    font-weight: 300;
}

@font-face {
    font-family: 'josefin-sans';
    src: url("./fonts/JosefinSans-SemiBold.ttf");
    font-weight: 500;
}


.head-section .head-clip-svg {
    top:-22px;
    position: relative;
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1600 486"><polygon class="st0" points="1600,-2.60 0,-2.6 0,350 795,484 1600,350"/></svg>' )
                 center/contain no-repeat;
    mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1600 486"><polygon class="st0" points="1600,-2.60 0,-2.6 0,350 795,484 1600,350"/></svg>' )
         center/contain no-repeat;
}

.head-section img.head-cards.head-clip-svg {
    display: block !important;
}

.hidden {
    visibility: hidden;
}

.gone {
    display: none !important;
}

.site-main {
    width: 100% !important;
    max-width: unset !important;
}

.head-section {
    position: relative;
}

.logo-section {
    position: absolute;
    left: 50%;
    bottom: -80px;
    transform: translate(-50%, 0);
    z-index: 5;
}

.logo-section__image {
    width: 600px;
}

.logo-section__text {
    font-family: "04B_30";
    position: absolute;
    bottom: 30px;
    right: 10px;
    color: #FE4700;
    font-size: 32px;
}

.leaderboard {
    font-family: "04B_30";
    box-sizing: border-box;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.leaderboard__dates {
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
    font-family: "04B_30";
    width: 100%;
    padding: 0 10px 0 10px;
    margin-top: 100px;
}

.leaderboard__date--last {
    text-align: left;
}

.leaderboard__date--next {
    text-align: right;
}

.leaderboard__date--last,
.leaderboard__date--next {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.leaderboard__date--last:hover,
.leaderboard__date--next:hover {
    color: #FE4700;
}

.leaderboard__date--current {
    text-align: center;
    font-size: 24px;
}

.leaderboard__outer {
    width: 100%;
    height: 100%;
    background-color: #1A0611;
    border: 2px solid #280F1C;
    padding: 15px;
    border-radius: 8px;
}

.leaderboard_inner {
    background-color: #280F1C;
    border-radius: 8px;
}

.leaderboard__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #62415E;
    height: 870px;
}

.leaderboard-header {
    background-color: #301626;
    border-bottom: 2px solid #351A2A;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    border-radius: 8px 8px 0 0;
    color: #62415E;
    padding: 5px;
    font-size: 24px;
}

.leaderboard-items {
    margin: 0;
    list-style-type: none;
    padding-left: 0;
    min-height: 870px;
}

.leaderboard-items.unloaded {
    display: none;
}

.leaderboard-item {
    width: 100%;
    border-bottom: 2px solid #351A2A;
    padding: 25px;
    padding-right: 5px;
    display: flex;
    font-size: 20px;
    align-items: center;
    opacity: 0;
    min-height: 80px;
    overflow: hidden;
}

.leaderboard-item__icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
}

.leaderboard-item__icon {
    position: relative;
    width: 20%;
    height: 32px;
    margin-left: 20px;
}

.leaderboard-item__crown {
    animation: crownBounce 0.4s ease-in-out forwards;
    position: absolute;
    top: 0;
    margin-top: -50%;
    left: 35%;
    transform: translate(-50%, -500%);
    width: 80%;
    visibility: hidden;
    animation-delay: 500ms;
}

.leaderboard-item__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.leaderboard-item__image {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    border-radius: 4px;
    animation: blinkin 0.6s linear forwards;
    animation-timing-function: steps(1, end);
    opacity: 0;
    image-rendering: pixelated;
}

.leaderboard-item:nth-child(even) {
    animation: fadeInRight 0.5s ease-in-out forwards;
    background: rgb(43, 19, 33);
    background: linear-gradient(199deg, rgba(43, 19, 33, 1) 0%, rgba(51, 21, 39, 1) 100%);
}

.leaderboard-item:nth-child(odd) {
    animation: fadeInLeft 0.5s ease-in-out forwards;
}

.leaderboard-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.leaderboard-item__placement {
    color: #d13752;
    width: 15%;
    animation: jump 0.4s ease-in-out;
}

.leaderboard-item__name {
    color: #FE4700;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.leaderboard-item__score {
    color: #d13752;
    text-align: right;
}

.leaderboard-item__name-and-score {
    width: 65%;
    display: flex;
    justify-content: space-between;
}

.leaderboard-item--first:before {
	content:'';
    top:0;
	transform:translateX(100%);
	width:100%;
	height:100%;
	position: absolute;
	z-index:1;
	animation: slide 1s;
    animation-delay: 1s;
    background: linear-gradient(90deg, rgba(255,255,255,0) 18%, rgba(255,255,255,1) 38%, rgba(249,238,190,1) 51%, rgba(255,226,98,0) 53%);
}

.leaderboard-item--first {
    padding-top: 60px;
}

.leaderboard-item--first .leaderboard-item__name-and-score {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 20px;
}

.leaderboard-item--first .leaderboard-item__placement {
    font-size: 42px;
    color: #FAE056;
}

.leaderboard-item--first .leaderboard-item__name {
    color: #FAE056;
    font-size: 24px;
    width: 90%;
}

.leaderboard-item--first .leaderboard-item__score {
    color: #FAE056;
}

.leaderboard-item--first .leaderboard-item__crown {
    visibility: visible;
}

@media (max-width: 750px) {
    .leaderboard__outer {
        padding: 5px;
    }

    .logo-section__text {
        display: none;
    }

    .leaderboard-items {
        min-height: unset;
    }

    .leaderboard__loading {
        min-height: unset;
    }

    .leaderboard-item {
        font-size: 14px;
        padding: 10px;
    }

    .leaderboard__dates {
        font-size: 14px;
        line-height: 1.2;
    }

    .leaderboard-header {
        display: none;
    }

    .leaderboard-item__name-and-score {
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        text-align: right;
        width: 80%;
    }

    .leaderboard-item--first {
        padding-top: 5%;
    }

    .leaderboard-item--first .leaderboard-item__placement {
        font-size: 24px;
    }

    .leaderboard-item--first .leaderboard-item__name-and-score {
        gap: 10px;
    }

    .leaderboard-item--first .leaderboard-item__name{
        font-size: 18px;
    }

    .leaderboard-item__icon {
        margin-left: 0;
    }

    .leaderboard-item__icon-wrapper { 
        width: 80%;
    }

    #primary {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .head-line {
        visibility: hidden;
    }
}

@media (max-width: 470px) {
}

@keyframes slide {
	0% {transform:translateX(-100%);}
	100% {transform:translateX(100%);}
}


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

    25% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.6
    }

    90% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

@keyframes crownBounce {
    0% {
        transform: translate(-50%, -300%);
    }

    40% {
        transform: translate(-50%, -40%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes jump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

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

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translate(-100px, 0px);
    }

    80% {
        opacity: 1;
        transform: translate(0, 0);
        background-color: unset;
    }

    90% {
        transform: scale(0.99);
    }

    100% {
        transform: scale(1.0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translate(100px, 0px)
    }

    80% {
        opacity: 1;
        transform: translate(0, 0);
        background-color: unset;
    }

    90% {
        transform: scale(0.99);
    }

    100% {
        transform: scale(1.0);
        opacity: 1;
    }
}