* {
    font-size: 62, 5%;
    box-sizing: border-box;
    margin: 0;
}

body {
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background-color: #fbfaff;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    -webkit-box-shadow: 0px 5px 15px 8px #e4e7fb;
    box-shadow: 0px 5px 15px 8px #e4e7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
}

#header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem;
}

.share {
    width: 4.5rem;
    height: 3rem;
    background-color: #f55e77;
    border: 0;
    border-bottom: 0.2rem solid #c0506a;
    border-radius: 2rem;
    cursor: pointer;
}

.share:active {
    border-bottom: 0;
}

.share i {
    color: #fff;
    font-size: 2rem;
}

h1 {
    font-family: "Rubik", sans-serif;
    font-size: 1.7rem;
    color: #141a39;
    text-transform: uppercase;
    cursor: default;
}

#leaderboard {
    width: 100%;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #141a39;
    cursor: default;
}

tr {
    transition: all 0.2s ease-in-out;
    border-radius: 0.2rem;
}

tr:not(:first-child):hover {
    background-color: #fff;
    transform: scale(1.1);
    -webkit-box-shadow: 0px 5px 15px 8px #e4e7fb;
    box-shadow: 0px 5px 15px 8px #e4e7fb;
}

tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tr:nth-child(1) {
    color: #fff;
}

td {
    height: 5rem;
    font-family: "Rubik", sans-serif;
    font-size: 1.4rem;
    padding: 1rem 2rem;
    position: relative;
}

.number {
    width: 1rem;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: left;
}

.name {
    padding-top: 15px;
    text-align: left;
    font-size: 1.2rem;
}

.name-top-1 {
    padding-top: 0px;
}

.points {
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.points:first-child {
    width: 10rem;
}

.gold-medal {
    height: 4rem;
    margin-left: 1.5rem;
}

.icon-top-1 {
    width: 70px;
    margin-left: -25px;
    margin-top: -15px;
}

.icon-top-2 {
    width: 60px;
    margin-left: -25px;
    margin-top: -10px;
}

.ribbon {
    width: 100%;
    height: 5.5rem;
    top: -0.5rem;
    background: linear-gradient( 90deg, #ffd700, #ff9900, #ff5e00, #ff0099, #9900ff, #00ccff, #00ff99, #ffd700);
    background-size: 800% 800%;
    position: absolute;
    /* left: -1rem; */
    -webkit-box-shadow: 0px 15px 11px -6px #7a7a7d;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    background-size: 800% 800%;
    animation: shimmer 6s linear infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes sparkle {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.ribbon::before {
    content: "";
    /* height: 1.5rem;
    width: 1.5rem; */
    bottom: -0.8rem;
    left: 0.35rem;
    transform: rotate(45deg);
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 3s infinite;
    position: absolute;
    z-index: -1;
}

.ribbon::after {
    content: "";
    /* height: 1.5rem;
    width: 1.5rem; */
    bottom: -0.8rem;
    right: 0.35rem;
    transform: rotate(45deg);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 4s linear infinite;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

#buttons {
    width: 100%;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.exit {
    width: 11rem;
    height: 3rem;
    font-family: "Rubik", sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #7e7f86;
    border: 0;
    background-color: #fff;
    border-radius: 2rem;
    cursor: pointer;
}

.exit:hover {
    border: 0.1rem solid #5c5be5;
}

.continue {
    width: 11rem;
    height: 3rem;
    font-family: "Rubik", sans-serif;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    background-color: #5c5be5;
    border: 0;
    border-bottom: 0.2rem solid #3838b8;
    border-radius: 2rem;
    cursor: pointer;
}

.continue:active {
    border-bottom: 0;
}

.top-2{
    background-image: url('./images/porco.png');
    background-size: 100%;
    color: #ffffff;
    border-radius: 10px;
}

@media (max-width: 720px) {
    .points{
        font-size: 18px;
    }

    .gold-medal{
        height: 3.2rem;
        margin-left: 10px;
    }

    .icon-top-1 {
        width: 60px;
        margin-top: -20px;
    }

    .icon-top-2 {
        width: 50px;
        margin-top: -20px;
    }

    .name-top-1 {
        padding-top: 15px;
    }
    .name {
        text-align: left;
        font-size: 18px;
    }

    .number {
        font-size: 23px;
    }
}

/* .top-donate {
    background-image: url('./images/bg-vn.png');
    background-size: 100% 100%;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
} */