body {
    background-image: url('../webimages/bg-desktop.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-color: #000;
    color: #fff;
    font-family: 'Metropolis', sans-serif;
    margin: 0;
    min-height: 100vh;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    body {
        background-image: url('../webimages/bg-mobile.svg');
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    body {
        background-image: url('../webimages/bg-mobile.svg');
    }
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

#gameDiv {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.row img {
    width: 75%;
    height: auto;
    margin: 0 10px;
    border-radius: 15px;
}

.textDiv {
    margin-top: 2rem;
}

.button {
    padding: 10px 20px;
    background-color: #EC1C24;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    #gameDiv {
        width: 100%;
    }

    .row {
        flex-direction: column;
        text-align: center;
    }

    .row img {
        margin: 15px 0;
    }

    .textDiv {
        margin-top: 1.2rem;
    }

    .textDiv .button {
        margin-bottom: 25px;
    }
}

.hide {
    display: none;
}

.show {
    display: block;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 100%;
    width: 50%;
    filter: drop-shadow(3px 6px 5px #C71C22);
}

@media (max-width: 768px) {
    .popup-content img {
        width: 500px;
    }

    .popup-content {
        position: absolute;
        top: 45%;
        left: 25%;
        transform: translate(-15%, -50%);
        max-width: 90%;
        max-height: 90%;
        text-align: center;
    }
}

main.table {
    width: 95%;
    height: auto;
    background-color: rgb(255 255 255 / 6%);
    backdrop-filter: blur(7px);
    box-shadow: 0 0.4rem 0.8rem #0005;
    border-radius: .8rem;
    overflow: hidden;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
}

.table__header {
    width: 100%;
    height: 10%;
    background-color: #fff4;
    padding: .8rem 1rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table__header .input-group {
    width: 35%;
    height: 100%;
    background-color: #fff5;
    padding: 0 .8rem;
    border-radius: 2rem;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: .2s;
}

.table__header .input-group:hover {
    width: 45%;
    background-color: #fff8;
    box-shadow: 0 .1rem .4rem #0002;
}

.table__header .input-group img {
    width: 1.2rem;
    height: 1.2rem;
}

.table__header .input-group input {
    width: 100%;
    padding: 0 .5rem 0 .3rem;
    background-color: transparent;
    border: none;
    outline: none;
}

.table__body {
    width: 95%;
    max-height: calc(89% - 1.6rem);
    background-color: transparent;

    margin: .8rem auto;
    border-radius: .6rem;

    overflow: auto;
    overflow: overlay;
}


.table__body::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

.table__body::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: #0004;
    visibility: hidden;
}

.table__body:hover::-webkit-scrollbar-thumb {
    visibility: visible;
}

table {
    width: 100%;
}

td img {
    width: 36px;
    height: 36px;
    margin-right: .5rem;
    border-radius: 50%;

    vertical-align: middle;
}

table,
th,
td {
    border-collapse: collapse;
    padding: 0.4rem;
    text-align: center;
}

thead th {
    position: sticky;
    top: 0;
    left: 0;
    background-color: #d5d1defe;
    cursor: pointer;
    text-transform: capitalize;
}

tbody tr:nth-child(even) {
    background-color: #0000000b;
}

tbody tr {
    --delay: .1s;
    transition: .5s ease-in-out var(--delay), background-color 0s;
    text-align: center;
}

tbody tr.hide {
    opacity: 0;
    transform: translateX(100%);
}

tbody tr:hover {
    background-color: rgb(255 255 255 / 4%) !important;
}

tbody tr td,
tbody tr td p,
tbody tr td img {
    transition: .2s ease-in-out;
}

tbody tr.hide td,
tbody tr.hide td p {
    padding: 0;
    font: 0 / 0 sans-serif;
    transition: .2s ease-in-out .5s;
}

tbody tr.hide td img {
    width: 0;
    height: 0;
    transition: .2s ease-in-out .5s;
}

.lbUserCoins {
    padding: 8px;
    border-radius: 24px;
    text-align: center;
    background-color: rgba(253, 253, 253, 0.3);
    color: #fff;
    display: inline-flex;
}

.lbUserCoins img {
    height: 20px;
    margin-top: -2px;
}

/* @media (max-width: 1000px) {
    td:not(:first-of-type) {
        min-width: auto;
    }
} */

.lbUserProfileImg {
    width: auto !important;
}

.lbStatusIcon {
    width: 20px !important;
    height: 20px !important;
    display: inline !important;
}

.tableC1 {
    width: 50px;
    padding: 10px;
}

.tableC2 {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
    width: 10vw;
    margin-right: 6.5rem;
}

.tableC3 {}

.pageTitle {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.listRow3 {
    border: 2px solid #C71C22;
    border-radius: 25px;
    border-bottom-left-radius: 25px;
}

.text-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .text-overlay {
        font-size: 16px;
    }
}

#top3Users {
    display: grid;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%;
    /* transform: translate(-50%, 54%); */
    transform: translate(-50%, 45%);
    width: 100%;
    height: auto;
    overflow: hidden;
}

#top3Users img {
    width: 85vw;
}

.user1NameDiv {
    top: 70%;
    left: 40%;
}

.user1NameDiv span {
    font-size: 1rem;
}

.user1ScoreDiv {
    top: 80%;
    left: 47%;
}

.user1ImgDiv {
    top: 26%;
    left: 39%;
}

.user1ImgDiv img {
    width: 88px;
    border-radius: 50%;
}

.user2NameDiv {
    top: 84%;
    left: 5%;
}

.user2NameDiv span {
    font-size: 1rem;
}

.user2ScoreDiv {
    top: 94%;
    left: 12%;
}

.user2ImgDiv {
    top: 55%;
    left: 9%;
}

.user2ImgDiv img {
    width: 60px !important;
    border-radius: 50%;
}

.user3NameDiv {
    top: 84%;
    left: 73%;
}

.user3NameDiv span {
    font-size: 1rem;
}

.user3ScoreDiv {
    top: 94%;
    left: 80%;
}

.user3ImgDiv {
    top: 55%;
    left: 76%;
}

.user3ImgDiv img {
    width: 60px !important;
    border-radius: 50%;
}

.lbTop3UserProfileImg {
    width: 98px !important;
}

.user1Name, .user2Name, .user3Name {
    display: block;
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixed-buttons {
    position: fixed;
    bottom: 1.3rem;
}


.shimmer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    overflow: hidden;
  }

  .shimmer {
      position: absolute;
      top: 0;
      left: -100%;
      width: 200%;
      height: 100%;
      background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
      animation: shimmer-animation 2s infinite linear;
      -webkit-animation: shimmer-animation 2s infinite linear; /* Safari and Chrome */
      -moz-animation: shimmer-animation 2s infinite linear; /* Firefox */
      -o-animation: shimmer-animation 2s infinite linear; /* Opera */
      -ms-animation: shimmer-animation 2s infinite linear; /* Internet Explorer */
  }

  @keyframes shimmer-animation {
      0% {
          transform: translateX(-100%);
      }
      100% {
          transform: translateX(100%);
      }
  }

  @-webkit-keyframes shimmer-animation {
      0% {
          -webkit-transform: translateX(-100%);
      }
      100% {
          -webkit-transform: translateX(100%);
      }
  }

  @media only screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait),
        only screen and (max-device-width: 896px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
      table, th, td {
          padding: 0.22rem;
      }

      .fixed-buttons {
          position: fixed;
          bottom: 0.87rem;
      }
  }