@font-face {
    font-family: "NATS";
    src: url("../assets/fonts/NATS-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-block-start: 0;
    margin-block-end: 0;
}

body {
    margin: 0;
    font-family: "NATS";
    background-color: #1a1a2e;
    color: #fff;
     display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    height:100%;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 1rem auto;
    padding: 20px;
    height:100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header .menu-icon {
    font-size: 24px;
}
/*gameplay page*/

#gameplayscreen {
    position: relative;
    width: 100%;
    height: 62vh;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin: 0 auto;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

#gameplayscreen:hover>svg {
    transform: scale(1.1);
}

#gameplayscreen iframe {
    width: 100%;
    height: 100%;
   pointer-events: auto;
}

#fullscreen_btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#fullscreen_btn:hover {
    background: var(--bg-color);
}

/*gameplay page*/
.tabs {
    display: flex;
    margin-bottom: 3rem;
    gap: 2rem;
}

.tabs .tab {
    padding: 0px 25px;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    background-color: transparent;
    font-weight: 500;
    font-size: 20px;
}

.tabs .tab.active {
    background-color: #fff;
    color: #1a1a2e;
}

.leaderboard-content {
    display: none;
    transform: scale(0);
    transform: all 0.5s ease;
}

.leaderboard-content.active {
    display: block;
    transform: scale(1);
}

.leaderboard {
    text-align: center;
    margin-top: 5rem;
}

.leaderboard .crown {
    position: absolute;
    top: -4rem;
    width: 100px;
    border-radius: 0;
    border: none !important;
    border-radius: 0 !important;
}

.leaderboard .profile {
    position: relative;
    display: inline-block;
    margin: 0 10px;
    line-height: 1.2;
}

.leaderboard .profile > img {
    border: 5px solid #ff6600;
}

/* First profile image */
.leaderboard .profile:nth-child(1) > img {
    border-color: #f4f4f4;
}

/* Second profile image */
.leaderboard .profile:nth-child(2) > img {
    border-color: #ffca28;
}

/* Third profile image */
.leaderboard .profile:nth-child(3) > img {
    border-color: #ff8228;
}

.leaderboard .profile img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
}
.leaderboard .profile p {
    font-size: 1.8rem;
    position: relative;
    top: 10px;
}

.leaderboard .profile .level {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
}
.leaderboard .profile .level:nth-child(even) {
    font-size: 1.3rem;
}
.leaderboard .profile:nth-child(even) {
    transform: scale(1);
}
.leaderboard .profile:nth-child(odd) {
    transform: scale(0.8);
}

.ranking {
    margin: 20px 0 0;
}

.ranking .rank-item {
    display: flex;
    align-items: center;
    padding: 3px 20px;
    border-radius: 15px;
    margin: 10px 0;
    /* background: rgba(255, 255, 255, 0.005); */
    /* border:1px solid rgba(255, 255, 255, 0.1); */
}
.rank-item.your_rank {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid #fff1;
}

.ranking .rank-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.ranking .rank-item .rank {
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.ranking {
    counter-reset: rank;
}

.rank {
    counter-increment: rank;
    position: relative;
}

.rank.first::before,
.rank.second::before,
.rank.third::before {
    color: #2a2a3e;
}
.ranking .rank-item .name {
    flex-grow: 1;
    font-size: 1.5rem;
}

.ranking .rank-item .points {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
}
/* .ranking .rank-item:nth-child(-n+3) .points 
{
    color: rgba(49, 34, 68, 0.7) !important;
} */
.ranking .rank-item.firsts {
    background-color: #ffca28;
    color: #312244 !important;
}

.ranking .rank-item.seconds {
    background-color: #f4f4f4;
    color: #312244;
}

.ranking .rank-item.thirds {
    background-color: #ff8228;
    color: #312244;
}

.ranking .rank-item.firsts .points,
.ranking .rank-item.seconds .points,
.ranking .rank-item.thirds .points {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.7);
}

.rank_num {
    font-size: 1.6rem;
    font-weight: 400;
}

.ranking .rank-item ion-icon {
    position: relative;
    left: 5px;
}
.ranking .rank-item .up ion-icon {
    color: #4bff53;
}
.ranking .rank-item .down ion-icon {
    color: #ff7171;
}
.rank.first ion-icon {
    color: #00821d !important;
}
.rank.second ion-icon,
.rank.third ion-icon {
    color: #820000 !important;
}

.top_rank {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    color: #000;
    border-radius: 50%;
    border: 5px solid #312244;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.top_rank.first {
    background: #ffca28;
}
.top_rank.second {
    background: #f4f4f4 !important;
}
.top_rank.third {
    background: #ff8228;
}

#load-more-btn {
    padding: 1rem 0;
    width: 100%;
    font-size: 1.6rem;
    font-family: "NATS";
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    gap:0.5rem;
    cursor:pointer;
}
#load-more-btn ion-icon 
{
    width:20px !important;
}

.games {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.card_shape {
    position: relative;
}
.card_info {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
.games .game-card {
    width: 46%;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
}
.games .game-card a {
    text-decoration: none;
    color: #fff;
}
.games .game-card img {
    width: 100%;
    border-radius: 10px;
}

.games .game-card .play-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.play-icon .play_btn {
    position: relative;
    left: 13px;
    top: -5px;
    background: #8b00f0;
    padding: 0.4rem 1.2rem;
    display: flex;
    align-items: center;
    border-radius: 15px;
    filter: drop-shadow(0px 10px 10px rgba(139, 0, 240, 0.25));
    transform: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.play-icon .play_btn:focus
{
     outline: none;
    box-shadow: none;
}
.play-icon .play_btn:hover {
    background: rgba(139, 0, 240, 0.9);
}
.play-icon .play_btn img {
    width: 1.6rem;
    border-radius: none;
}
.play-icon .play_btn img {
    width: 20px;
}
.game_info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.1;
    padding-left: 0.5rem;
    justify-content: center;
    width: 94px;
    white-space: nowrap;
    overflow: hidden;
}

.game_info .game_name {
    font-size: 1.6rem;
    font-weight: 500;
    animation:10s animate-text linear 0s infinite normal none;
}
@-webkit-keyframes animate-text {
    0% {
        -webkit-transform: translateX(0%);
                transform: translateX(0%);
    }
    100% {
        -webkit-transform: translateX(-30%);
                transform: translateX(-30%);
    }
}

@-moz-keyframes animate-text {
    0% {
        -moz-transform: translateX(0%);
             transform: translateX(0%);
    }
    100% {
        -moz-transform: translateX(-30%);
             transform: translateX(-30%);
    }
}

@-o-keyframes animate-text {
    0% {
        -o-transform: translateX(0%);
           transform: translateX(0%);
    }
    100% {
        -o-transform: translateX(-30%);
           transform: translateX(-30%);
    }
}

@keyframes animate-text {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-30%);
    }
}
.game_info .paly_count {
    font-size: 1.4rem;
    font-weight: 100 !important;
}

  .ads img {
        width: 100%;
        height: 100px;
        object-fit: cover;

    }

@media (max-width:768px) {
    .ads img {
        width: 100%;
        height: 100px;
        object-fit: cover;

    }
    .container {
        margin: 0rem auto;
        padding: 0 10px;
    }
    #gameplayscreen {
        height: 65vh;
    }
    
    .leaderboard .profile p {
    font-size: 1.2rem;
    position: relative;
}

.top_rank  
{
    top:58%;
}
.game_info .game_name {
    font-size: 1.4rem;
}

.play-icon .play_btn {
    top: -3px;
    left: 4px;
    padding: 0.4rem 1.2rem;
    border-radius: 15px;
}
.game_info {
    position: relative;
    top: -7px;
}
.leaderboard .profile img {
    width: 85px;
    height: 85px;
}

.leaderboard .profile {
    position: relative;
    display: inline-block;
    margin: 0 8px;
    line-height: 1.1;
}

}