@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-1: #262b3f;
    --color-2: #fff;
    --color-3: rgb(30, 35, 54);
    --color-4: rgb(255, 255, 255, .5);
    --color-5: greenyellow;

}

body {
    width: 100%;
    height: 100vh;
    background: rgb(30, 35, 54);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

header {
    width: 85%;
    height: 95%;
    box-shadow: 0px 0px 30px rgb(20, 19, 19);
    border-radius: 10px;
    display: flex;
}

header aside,
article {
    width: 85%;
    height: 100%;
    /* border: 1px solid #fff; */
    border-radius: 10px;
    background: var(--color-3);
}

header aside {
    width: 15%;
    border-radius: 10px 0px 0px 10px;
    background: #663da6;
}

header aside h1 {
    width: 100%;
    height: 10%;
    /* border: 1px solid #fff; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

header aside i {
    margin-left: 5px;
}

header aside button {
    display: block;
    padding: 8px 20px;
    margin: auto;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    background: #270458;
    color: #fff;
    margin-top: 5px;
    transition: .3s linear;
}

header aside button:hover {
    background: rgb(30, 35, 54);
}

header aside ul {
    position: relative;
    margin-top: 10px;
    list-style: none;
    margin-left: 12%;
    padding-bottom: 20px;
}

header aside ul::before {
    content: '';
    position: absolute;
    width: 88%;
    height: 2px;
    background: rgb(184, 184, 184, .1);
    bottom: 0;
}


header aside ul li {
    padding: 2.5px 0px;
}

header aside ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 400;
    transition: .3s linear;
}

header aside ul li a:hover {
    color: #fff;
}

header aside ul li a i {
    margin-right: 15px;
}

header aside ul .active_li {
    border-right: 3px solid #fff;
}

header aside ul .active_li a {
    color: #fff;
    font-size: 13px;
}

.subs {
    width: 99%;
    height: auto;
    /* border: 1px solid #fff; */
    margin-top: 15px;
    margin-left: 12%;
}

.subs h5 {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.subs .cards {
    width: 88%;
    height: 585px;
    /* border: 1px solid #fff; */
    overflow-x: auto;
    margin-top: 15px;
}

.subs .cards::-webkit-scrollbar {
    width: 5px;
    background: rgb(184, 184, 184, .2);
    border-radius: 20px;
    visibility: hidden;
    transition: .3s linear;
}

.subs .cards::-webkit-scrollbar-thumb {
    background: rgb(184, 184, 184, .7);
    border-radius: 20px;
    visibility: hidden;
    transition: .3s linear;
}

.subs .cards:hover::-webkit-scrollbar-thumb {
    visibility: hidden;
}

.subs .cards:hover::-webkit-scrollbar {
    visibility: hidden;
}

.subs .cards .card {
    margin-bottom: 10px;
    /* border: 1px solid #fff; */
    display: flex;
    align-items: center;
}

.subs .cards .card .img_box {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
}

.subs .cards .card .img_box::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: greenyellow;
    border-radius: 50%;
    border: 3px solid #663da6;
    top: 13px;
    right: -5px;
}

.subs .cards .card .img_box img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.subs .cards .card .content {
    margin-left: 8px;
}


.subs .cards .card .content h6 {
    width: 100px;
    color: #fff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}



.subs .cards .card .content p {
    width: 100px;
    color: rgb(255, 255, 255, .5);
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


header article nav {
    width: 100%;
    height: 9%;
    /* border: 1px solid #fff; */
    border-radius: 0px 10px 0px 0px;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-1);
}

header article nav button {
    padding: 7px 20px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: #663da6;

}

header article nav button a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

header article nav .search {
    width: 40%;
    background: var(--color-3);
    padding: 4px 10px;
    transition: .5s linear;
    border-radius: 20px;
}

header article nav .search input {
    width: 95%;
    background: none;
    border: none;
    outline: none;
    padding: 0px 10px;
    color: var(--color-2);
    transition: .5 linear;
}

header article nav .search i {
    color: var(--color-4);
    font: 13px;
    transition: .5s linear;
}

header article nav .right_bx {
    width: 38%;
    /* border: 1px solid #fff; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header article nav .right_bx i {
    color: var(--color-4);
    font-size: 20px;
    cursor: pointer;
    transition: .3s linear;
}
header article nav .right_bx #refresh {
   animation: rotate 0.01s linear;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
}

header article nav .right_bx i:hover {
    color: rgb(255, 255, 255);
}

header article nav .right_bx button {
    padding: 0px 20px;
    background: rgb(184, 184, 184, .2);
    border: 2px solid rgb(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    transition: .5s linear;
}
header article nav .right_bx a {
    text-decoration: none;
}

header article nav .right_bx button span {
    margin: -2px 0px 0px 10px;
}

header article nav .right_bx .active_battery {
    background: #663da6;
    box-shadow: 0px 0px 20px #663da6;
}

header article nav .right_bx .user_data {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: .5s linear;
}

header article nav .right_bx .user_data h6 {
    width: 70%;
    color: var(--color-4);
    font-weight: 600;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s linear
}

header article nav .right_bx .user_data h5 {
    color: #fff;
    background: #663da6;
    border-radius: 50%;
    padding: 8px 9px;
    font-size: 11px;
    margin: 0px 5px;
    transition: .5s linear;
}

header article nav .right_bx .user_data i {
    color: var(--color-2);
    font-size: 12px;
    transition: .7s linear;
}

header article nav .right_bx .user_data:hover i {
    transform: rotate(180deg);
}

header article nav .right_bx .user_data .card {
    position: absolute;
    width: 130px;
    height: 0px;
    /* border: 1px solid #fff; */
    top: 50px;
    z-index: 9999;
    display: flex;
    align-items: center;
    flex-direction: column;
    right: -19px;
    overflow: hidden;
    opacity: 0;
    transition: .3s linear;
}

header article nav .right_bx .user_data:hover .card {
    height: 200px;
    opacity: 1;
    overflow: unset;
}

header article nav .right_bx .user_data .card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(107, 107, 107);
    border-radius: 10px;
    z-index: -1;
}

header article nav .right_bx .user_data .card::after {
    content: '';
    position: absolute;
    border-top: 15px solid rgb(184, 184, 184, .1);
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    top: -10px;
    right: 20px;
    transform: rotate(45deg);
}

header article nav .right_bx .user_data .card img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-top: 10px;
}

header article nav .right_bx .user_data .card h6 {
    width: unset;
    overflow: unset;
    text-align: center;
    display: block;
    margin-top: 10px;
    color: #fff;
    transition: .3s linear;
}

header article nav .right_bx .user_data .card p {
    font-size: 9px;
    color: rgb(255, 255, 255, .5);
    margin-bottom: 10px;
    transition: .3s linear;
}

header article nav .right_bx .user_data .card .card_gta_img {
    width: 110px;
    height: 60px;
    border-radius: 15px;
    margin: 15px;
}

header article .game2 {
    position: relative;
    width: 100%;
    height: 90%;
    /* border: 1px solid #fff; */
    padding: 0px 30px;
    overflow: hidden;
}


header article .game2 h3 {
    color: var(--color-2);
    font-size: 14px;
    font-weight: 600;
    transition: .5s linear;
}

header article .game2 .game_bx {
    width: 100%;
    height: 95%;
    /* border: 1px solid #fff; */
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    gap: 10px;
}

header article .game2 .game_bx::-webkit-scrollbar {
    width: 5px;
    border-radius: 20px;
    background: rgb(184, 184, 184, .2);
    visibility: hidden;
}

header article .game2 .game_bx::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: rgb(184, 184, 184, .7);
    visibility: hidden;
}

header article .game2 .game_bx:hover::-webkit-scrollbar {
    visibility: visible;
}

header article .game2 .game_bx:hover::-webkit-scrollbar-thumb {
    visibility: visible;
}

header article .game2 .game_bx .card {
    width: 100px;
    height: 170px;
    /* border: 1px solid #fff; */
    margin: 0px 5px 11px 0px;
}

header article .game2 .game_bx .card img {
    width: 100%;
    height: 80%;
    border-radius: 10px;
    transition: transform .2s;
}

header article .game2 .game_bx .card img:hover {
    transform: scale(1.1);
    margin-bottom: 5px;
}

header article .game2 .game_bx .card .content {
    width: 100%;
    height: 20%;
    overflow: hidden;
    text-align: center;
}

header article .game2 .game_bx .card .content h6 {
    width: 100%;
    color: var(--color-2);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s linear;
}

/* header article .game2 .game_bx .card .content p{
   width: 100%;
   font-size: 9px;
   font-weight: 500;
    color: var(--color-4);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s linear;
} */


/* Tablets and below */
@media (max-width: 1024px) {
 

    header article nav .search {
        width: 60%;
        margin-top: 8px;
        order: 3;
    }

}

/* Mobile */
@media (max-width: 768px) {


    header article nav .search {
        width: 100%;
        order: 2;
    }

    header article nav .search input {
        width: 90%;
        font-size: 14px;
    }

 
}

/* Small screens */
@media (max-width: 480px) {
    header article nav .search {
        padding: 6px 8px;
    }

    header article nav .search input {
        font-size: 12px;
    }

 
}

/* ===================================
   Tablets and Below (≤ 1024px)
=================================== */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    header aside {
        width: 100%;
        border-radius: 10px 10px 0 0;
    }

    header article {
        width: 100%;
    }

    header article nav {
        flex-wrap: wrap;
        padding: 0.625rem; /* 10px */
        gap: 0.625rem;
    }

    header article nav .search {
        width: 100%;
    }

    header article nav .right_bx {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    /* Game cards */
    header article .game1 .game_bx .card {
        min-width: 11.25rem; /* 180px */
    }
}

/* ===================================
   Mobile Phones (≤ 768px)
=================================== */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }

    header {
        flex-direction: column;
        box-shadow: none;
        border-radius: 0;
        height: auto;
    }

    header aside {
        order: 2;
        border-radius: 0;
    }

    header article {
        order: 1;
    }

    header article nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    header article nav .search {
        order: 3;
        width: 100%;
    }

    header article nav .right_bx {
        order: 2;
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    header article .game1 .btns {
        top: -0.3125rem; /* -5px */
        right: 0.625rem; /* 10px */
    }

    header article .game2 .game_bx {
        justify-content: center;
        gap: 0.5rem;
    }
}

/* ===================================
   Small Mobile (≤ 480px)
=================================== */
@media (max-width: 480px) {
    header article .game1 .game_bx .card {
        min-width: 8.75rem; /* 140px */
    }

    header article .game2 .game_bx .card {
        width: 45%;
    }

    header article nav button {
        padding: 0.3125rem 0.625rem; /* 5px 10px */
        font-size: 0.75rem; /* 12px */
    }

    .subs .cards {
        height: auto;
        padding: 0.5rem;
    }
}
