@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}

:root {
    --grey: #495362;
    --blue: #0474D3;
    --red: #EC4C2E;
    --white: #FEFEFC;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--grey);
}

html {
    font-size: 62.5%;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar {
    width: 1300px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo img {
    width: 7rem;
}

.menu a {
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    margin: 2rem;
    transition: .3s ease;
}

.menu a:hover {
    color: var(--blue);
}

.search_bar input {
    outline: none;
    border: none;
    border-radius: 1.5rem;
    width: 20rem;
    height: 3rem;
    padding-left: 1rem;
    caret-color: var(--grey);
    border: 2px solid rgba(183, 183, 183, 0.533);
}

.sbtn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    outline: none;
    border: 2px solid rgba(237, 229, 229, 0.714);
    cursor: pointer;
    background-color: var(--blue);
    color: var(--white);
    box-shadow: inset 4px 4px 10px -4px rgba(96, 96, 96, 0.429);
}

.hero .hero_box {
    display: flex;
    flex-wrap: wrap-reverse;
    width: 80%;
    margin: auto;
}

.hero_box .box {
    flex: 1 1 40rem;
}

.box img {
    width: 100%;
    filter: drop-shadow(5px 0 10px rgba(24, 24, 24, 0.592));
}

.heading {
    font-size: 8rem;
    color: var(--white);
}

.heading .redtext {
    color: var(--red);
}

.heading .bluetext {
    color: var(--blue);
}

.herotext {
    font-size: 2rem;
    width: 85%;
    color: var(--white);
}

.btngroup {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.btn {
    font-size: 2rem;
    padding: .5rem 1rem;
    color: var(--white);
    outline: none;
    border: 3px solid rgba(214, 209, 209, 0.67);
    box-shadow: 5px 3px 10px -4px #000000a8;

}

.btnred {
    background-color: var(--red);
}

.btnblue {
    background-color: var(--blue);
}

.box-section {
    display: flex;
    width: 80%;
    margin: auto;
    gap: 3rem;
    justify-content: space-around;
}

.game-box {
    background-color: var(--grey);
    width: 15.7rem;
    height: 15.7rem;
    border-radius: 40px;
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 10px 5px 20px -8px #0000005e;
}

.game-box img {
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(46, 46, 46, 0.684));
}

.box-3 img {
    width: 110%;
    object-fit: cover;
}

.togglebtn {
    width: 4rem;
    height: 4rem;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    display: none;
}


@media(max-width:998px) {

    html {
        font-size: 50%;
    }

    .togglebtn {
        display: block;
        place-items: center;
        display: grid;

    }

    .navbar {
        margin-top: 2rem;

    }

    .menu {
        position: absolute;
        top: 100%;
        right: 0%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 100;
        width: 30rem;
    }
    .menu a{
        transform: translateX(30rem);
        transition: var(--durataion) ease;
        background-color: var(--grey);
        padding: .4rem;
    }
    .menu.active a{
        transform: translateX(0);
    }

    .hero {
        margin-top: 6rem;
    }

    .heading {
        font-size: 5rem;
    }

    .box-section {
        margin-top: 5rem;
    }

}


@media(max-width:450px) {
    html {
        font-size: 40%;
    }

    .search_bar input {
        width: 30rem;
        height: 4rem;
    }

    .sbtn {
        height: 4rem;
        width: 4rem;
        border-radius: 5px;
    }
}