body {
    background: linear-gradient(to bottom, rgb(255, 255, 0), rgb(100, 100, 0));
    min-height: 100vh;
}

@font-face {
    font-family: Posver;
    src: url('fonts/Posver-Regular.ttf?version=2');
}

@font-face {
    font-family: Arial;
    src: url('fonts/arial.ttf') format('truetype');
}

.awesomeBackground {
    width: 100%;
    min-height: 100vh;
    background-image: url('images/cyberboxer/en/awesomeBackgroundPattern_leaderboardList.png');
    background-repeat: repeat;
    animation-name: awesomeBackgroundAnimation_LeaderboardList;
    animation-duration: 5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.leaderboardBackground {
    min-height: 100vh;
    background-image: url('images/cyberboxer/en/leaderboard_frame.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
}

#locationText {
    color: #ffffff;
    font-size: 1.25em;
    font-weight: 400;
}

#scores {
    padding-bottom: 1vh;
}

.entryDiv {
    position: relative;
    margin-bottom: 10%;
    width: 84%;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
    cursor: pointer;
}

.entryGlow {
    position: absolute;
}

.entryBackground {
    width: 100%;
}

.avatarDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 36%;
    transform: translate(-50%, -50%);
    height: 190%;
}

.avatarImage {
    position: absolute;
    height: 80%;
    border-radius: 50%;
}

.avatarGlow {
    position: absolute;
    height: 120%;
}

.avatarFrame {
    z-index: 1;
    height: 120%;
}

#modalDialog {
    background-color: #000000;
    background-image: url('images/cyberboxer/en/awesomeBackgroundPattern_leaderboardModal.png');
    background-size: 256px;
    border: 5px solid white;
    animation-name: awesomeBackgroundAnimation_LeaderboardModal;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

#modalHeader {
    border: none;
}

#modalLoading {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.0;
    margin-bottom: 0px;
}

.positionText {
    font-family: Posver, sans-serif;
    color: yellow;
    text-align: center;
    font-size: 4vw;
    position: absolute;
    top: 54%;
    left: 14%;
    transform: translate(-50%, -50%);
}

.scoreText {
    font-family: Posver, sans-serif;
    color: white;
    text-align: center;
    position: absolute;
    top: 54%;
    left: 72%;
    transform: translate(-50%, -50%);
}

.lowScoreText {
    font-size: 6.6vw;
}

.highScoreText {
    font-size: 5.6vw;
}

.weightClassText,
.punchForceText {
    font-family: Posver, sans-serif;
    font-size: 3.0vw;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    position: absolute;
    left: 72%;
    transform: translate(-50%, -50%);
}

.weightClassText span,
.punchForceText span {
    font-family: Arial, sans-serif;
    font-size: 0.40em;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.75);
    white-space: nowrap;
}

.weightClassText {
    text-transform: uppercase;
    top: 10%;
}

.punchForceText {
    top: 90%;
}

.postcard__content {
    container-type: inline-size;
    background: transparent;
    border: none;
}

.postcard__stacking-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.postcard__stackable {
    grid-area: 1 / 1;
    width: 100%;
    pointer-events: none;
}

.postcard__default-bg {
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 3%;
}

.postcard__custom-bg {
    z-index: 1;
    height: 100%;
    object-fit: cover;
    border-radius: 3%;
}

.postcard__main-bg {
    z-index: 2;
    height: 100%;
    object-fit: cover;
    border-radius: 3%;
}

.postcard__avatar-image {
    z-index: 3;
    position: absolute;

    top: 3%;
    left: 58%;
    transform: translateX(-50%);

    width: 62%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
    border-radius: 50%;
    pointer-events: auto;
}

.postcard__avatar-frame {
    z-index: 4;
}

.postcard__texts {
    z-index: 5;
    position: absolute;
    pointer-events: auto;

    top: 61%;
    left: 56%;
    transform: translateX(-50%);
    width: 80%;

    text-align: center;
}

.postcard__text-line-1 {
    font-family: Arial, sans-serif;
    font-size: 4.3cqi;
    font-weight: 500;
    font-style: italic;
    -webkit-text-stroke: 1.2px white;
    color: #ffffff;
    margin-bottom: 0.1cqi;
}

.postcard__text-line-2 {
    font-family: Arial, sans-serif;
    font-size: 2.8cqi;
    -webkit-text-stroke: 1.0px;
    color: #ffffff;
    margin-bottom: 0cqi;
}

.postcard__highlight-color {
    color: yellow;
}

.postcard__text-line-3 {
    line-height: 1.1;
}

.postcard__force-text {
    font-family: Posver;
    font-size: 10cqi;
    color: yellow;
}

.postcard__force-unit {
    font-family: Arial, sans-serif;
    font-size: 5cqi;
    -webkit-text-stroke: 2px;
    color: white;
}

.postcard__slash-divider {
    font-family: Arial, sans-serif;
    font-size: 8cqi;
    color: yellow;
}

.postcard__points-column {
    font-size: 2.8cqi;
    line-height: 1.1;
    white-space: nowrap;
}

.postcard__points-column--regular {
    font-family: Arial, sans-serif;
    font-weight: bold;
    -webkit-text-stroke: 1px;
    color: white;
}

.postcard__points-column--highlighted {
    font-family: Posver;
    font-weight: normal;
    color: yellow;
}

.postcard__weight-class-image {
    z-index: 6;
    position: absolute;
    pointer-events: auto;

    top: 81%;
    left: 39%;
    transform: translateX(-50%);
    width: 41%;
}

.postcard__overlay {
    z-index: 7;
    height: 100%;
    object-fit: fill;
}

.postcard__controls {
    z-index: 7;
    height: 0px;
}

.postcard__button {
    display: block;
    background: transparent;
    border: none;
    outline: none;
    color: transparent;
    cursor: pointer;
}

.postcard__link-button {
    position: absolute;
    top: 93.8%;
    left: 30%;
    width: 7%;
    height: 6%;
}

.postcard__fb-button {
    position: absolute;
    top: 93.8%;
    left: 38.3%;
    width: 7%;
    height: 6%;
}

.postcard__x-button {
    position: absolute;
    top: 93.8%;
    left: 46.5%;
    width: 7%;
    height: 6%;
}

.postcard__wp-button {
    position: absolute;
    top: 93.8%;
    left: 54.8%;
    width: 7%;
    height: 6%;
}

.postcard__dl-button {
    position: absolute;
    top: 93.8%;
    left: 63%;
    width: 7%;
    height: 6%;
}

.postcard__close-button {
    position: absolute;
    z-index: 8;
    top: 0.7%;
    left: 93%;
    width: 5%;
    height: 5%;
    pointer-events: auto;
}

@media (min-width: 576px) {
    .positionText {
        font-size: 25px;
    }

    .lowScoreText {
        font-size: 38px;
    }

    .highScoreText {
        font-size: 30px;
    }

    .weightClassText,
    .punchForceText {
        font-size: 16px;
    }

    .weightClassText span,
    .punchForceText span {
        font-size: 0.40em;
    }
}

@media (min-width: 768px) {
    .positionText {
        font-size: 35px;
    }

    .lowScoreText {
        font-size: 53px;
    }

    .highScoreText {
        font-size: 42px;
    }

    .weightClassText,
    .punchForceText {
        font-size: 23px;
    }

    .weightClassText span,
    .punchForceText span {
        font-size: 0.40em;
    }
}

@media (min-width: 992px) {
    .positionText {
        font-size: 45px;
    }

    .lowScoreText {
        font-size: 72px;
    }

    .highScoreText {
        font-size: 59px;
    }

    .weightClassText,
    .punchForceText {
        font-size: 27px;
    }

    .weightClassText span,
    .punchForceText span {
        font-size: 0.40em;
    }
}

@media (min-width: 1200px) {
    .positionText {
        font-size: 55px;
    }

    .lowScoreText {
        font-size: 85px;
    }

    .highScoreText {
        font-size: 70px;
    }

    .weightClassText,
    .punchForceText {
        font-size: 27px;
    }

    .weightClassText span,
    .punchForceText span {
        font-size: 0.40em;
    }
}

@media (min-width: 1400px) {
    .positionText {
        font-size: 65px;
    }

    .lowScoreText {
        font-size: 100px;
    }

    .highScoreText {
        font-size: 80px;
    }

    .weightClassText,
    .punchForceText {
        font-size: 27px;
    }

    .weightClassText span,
    .punchForceText span {
        font-size: 0.40em;
    }
}

@keyframes awesomeBackgroundAnimation_LeaderboardList {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 100px;
    }
}

@keyframes awesomeBackgroundAnimation_LeaderboardModal {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 256px 512px;
    }
}

/* Modal fix for iOS */
.modal-dialog {
    position: absolute;
    margin-inline: auto;
    left: var(--bs-modal-margin);
    right: var(--bs-modal-margin);
    padding-bottom: var(--bs-modal-margin);
    width: calc(100% - 2 * var(--bs-modal-margin));
}

@media (min-width: 576px) {
    .modal-dialog {
        width: 100%;
    }
}