* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1f2122;
}

header {
    width: 90%;
    margin: auto;
    height: auto;
    display: flex;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
}

.search {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: transparent;
    border: 2px solid gray;
    outline: none;
    width: 300px;
    color: white;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
}

nav a {
    padding: 10px 20px;
    color: gray;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: .4s;
}

nav a:hover {
    color: #e75e8d;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#profile {
    padding: 10px 30px;
    border-radius: 30px;
    background-color: gray;
    color: #1f2122;
    transition: .4s;
}

#profile:hover {
    background-color: #e75e8d;
    color: white;
}

#profile img {
    border-radius: 50%;
}

#menubtn {
    display: none;
}

label,
.srchbtn {
    width: 40px;
    height: 40px;
    border: 1px solid gray;
    border-radius: 5px;
    display: none;
    justify-content: center;
    align-items: center;
    color: gray;
    font-size: 20px;
    background-color: #1f2122;
}

.search_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

main {
    width: 90%;
    margin: auto;
    background-color: #27292a;
    padding: 60px;
    border-radius: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.baner {
    width: 100%;
    height: 400px;
    background-image: url(https://templatemo.com/templates/templatemo_579_cyborg_gaming/assets/images/banner-bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 20px;
}

.banerinfo {
    width: 400px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 15px;
}

.banerinfo h4 {
    font-size: 20px;
    color: white;
}

.banerinfo h1 {
    font-size: 40px;
    color: white;
}

.banerinfo h1 span {
    color: #e75e8d;
}

.banerinfo button {
    font-size: 14px;
    color: #fff;
    background-color: #e75e8d;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all .3s;
    border: none;
    cursor: pointer;
}

.banerinfo button:hover {
    background-color: white;
    color: #e75e8d;
}

.mostpopularbox {
    width: 100%;
    height: auto;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    background-color: #1f2122;
    border-radius: 23px;
    position: relative;
}

.mostpopularbox h1 {
    font-size: 40px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.mostpopularbox h1 span {
    font-size: 40px;
    color: #e75e8d;
}

.populargamebox {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.populargamebox .game {
    width: 250px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    background-color: #27292a;
    padding: 10px;
    gap: 15px;
    cursor: pointer;
}

.game img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.game div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #fff;
}

.game div span i {
    margin-right: 5px;
    color: #e75e8d;
}

.game div:nth-child(2) i {
    margin-right: 5px;
    color: gold;
}

.game h5 {
    color: #171819;
}

.mostpopularbox button {
    font-size: 14px;
    color: #fff;
    background-color: #e75e8d;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all .3s;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 97%;
}

.mostpopularbox button:hover {
    background-color: white;
    color: #e75e8d;
}

.platformgamebox {
    width: 100%;
    height: auto;
    padding: 50px 20px;
    display: start;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    background-color: #1f2122;
    border-radius: 23px;
    position: relative;
}

.platformgamebox h1 {
    font-size: 40px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px;
}

.platformgamebox h1 span {
    color: #e75e8d;
}

.platformgamebox .item ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f2122;
    border-radius: 15px;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    gap: 20px;
    color: #fff;
}

.platformgamebox .item ul li {
    display: flex;
    flex-direction: column;
}

.platformgamebox .item ul li img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    cursor: pointer;
}

.platformgamebox .item ul li h4 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.platformgamebox .item ul li h4 span,
.platformgamebox .item ul li span {
    display: block;
    font-size: 13px;
    color: #565656;
    margin-top: 3px;
}

.platformgamebox .item .btn2 {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #888;
    background: transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
}

.platformgamebox .item .btn2.download {
    border: 1px solid #e75e8d;
    color: #e75e8d;
    cursor: pointer;
    transition: 0.3s;
}

.platformgamebox .item .btn2.download:hover {
    background: #e75e8d;
    color: #fff;
}

@media(min-width:1024px) and (max-width:1200px) {
    .logo img {
        width: 130px;
    }

    .search {
        width: 230px;
    }

    nav ul {
        gap: 0;
    }

    nav a {
        padding: 10px;
    }
}

@media(min-width:768px) and (max-width:1024px) {
    .logo img {
        width: 130px;
    }

    .search {
        width: 230px;
    }

    nav ul {
        gap: 0;
        flex-direction: column;
    }

    nav a {
        padding: 10px;
    }

    header {
        position: relative;
    }

    nav {
        width: 250px;
        position: absolute;
        right: 0;
        top: 100%;
        flex-direction: column-reverse;
        background-color: #1f2122;
        padding: 0 20px;
        height: 0;
        overflow: hidden;
        transition: .4s;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #menubtn:checked~nav {
        height: 300px;
        padding: 20px;
    }

    label {
        display: flex;
    }

    .mostpopularbox {
        padding: 50px 0;
    }

    .mostpopularbox .game {
        width: 200px;
    }

    .item ul {
        flex-wrap: wrap;
    }
}

@media(min-width:552px) and (max-width:768px) {
    .logo img {
        width: 130px;
    }

    .search {
        width: 270px;
    }

    nav ul {
        gap: 0;
        flex-direction: column;
    }

    nav a {
        padding: 10px;
    }

    header {
        position: relative;
        width: 100%;
    }

    nav {
        width: 250px;
        position: absolute;
        right: 0;
        top: 100%;
        flex-direction: column-reverse;
        background-color: #1f2122;
        padding: 0 20px;
        height: 0;
        overflow: hidden;
        transition: .4s;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #menubtn:checked~nav {
        height: 300px;
        padding: 20px;
    }

    label {
        display: flex;
    }

    .mostpopularbox {
        padding: 50px 0;
    }

    .mostpopularbox .game {
        width: 200px;
    }

    .item ul {
        flex-wrap: wrap;
    }

    main {
        width: 100%;
        padding: 5px;
    }

    .mostpopularbox h1,
    .mostpopularbox h1 span {
        font-size: 30px;
    }
}

@media(max-width:552px) {
    .logo img {
        width: 130px;
    }

    .search {
        display: none;
    }

    nav ul {
        gap: 0;
        flex-direction: column;
    }

    nav a {
        padding: 10px;
    }

    header {
        position: relative;
        width: 100%;
    }

    nav {
        width: 100%;
        position: absolute;
        right: 0;
        top: 100%;
        flex-direction: column-reverse;
        background-color: #1f2122;
        padding: 0 20px;
        height: 0;
        overflow: hidden;
        transition: .4s;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #menubtn:checked~nav {
        height: 300px;
        padding: 20px;
    }

    label,
    .srchbtn {
        display: flex;
    }

    .mostpopularbox {
        padding: 50px 0;
    }

    .mostpopularbox .game {
        width: 100%;
    }

    .item ul {
        flex-wrap: wrap;
    }

    main {
        width: 100%;
        padding: 5px;
    }

    .mostpopularbox h1,
    .mostpopularbox h1 span,
    .platformgamebox h1,
    .platformgamebox h1 span,
    .banerinfo h1 {
        font-size: 20px;
    }

    .game img {
        height: 300px;
        object-fit: cover;
    }
}