*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    background-color: white;
    font-family: "inter",sans-serif;
    min-height: 100dvh;
}
.container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    max-width: 1024px;
    width: 100%;

}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-icon{
    cursor: pointer;
    z-index: 1001;
}
.close-icon{
   
    position: absolute;
    top: 25px;
    left: 10px;
    color:blue;
    cursor: pointer;
}
.slider{
    position: fixed;
    background-color:white;
    top: 0;
     right: -250px; 
    width: 250px;
    height: 100%;
    transition: right 0.5s ease;
    z-index: 1000;
    padding-top: 70px;
}
.slider ul{
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
    margin-top: 60px;

}
ul li a{
    display: block;
    color: white;
    text-decoration: none;
    color: hsl(240, 100%, 5%);
    font-size: 1.5rem;
    text-transform: capitalize;
}
.slider.active{
    right: 0;
}
.overlay{
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;

}
.overlay.active{
    display: block;
}
.desktop-nav{
    display: none;
}
.desktop-nav ul{
    display: flex;
    gap: 20px;
    list-style: none;
   
    
}
.desktop-nav ul li a{
    font-size: 1.25rem;
}
.desktop-nav a:hover{
    color: hsl(5, 85%, 63%);
}

/* section */
.desktop{
    display: none;
}
.mobile{
    width: 100%;
    margin-top: 20px;
    height: auto;
}
.future h1{
    font-size: 2.5rem;
    font-weight: 800 ;
    line-height: 40px;
    margin-top: 20px;
    color: hsl(240, 100%, 5%);
}
.read-more p{
    margin-top: 10px;
    font-size: 1.25rem;
    color: hsl(236, 13%, 42%);
}
.read-more button{
    margin-top: 15px;
    height: 45px;
    width: 140px;
    text-align: center;
    font-size: 1rem;
    border: none;
    text-transform: uppercase;
    background-color: hsl(5, 85%, 63%);
    letter-spacing: 2px;
    font-weight: 700;

}
.read-more button:hover{
    background-color:hsl(240, 100%, 5%);
    color: white;
}
.new{
    background-color: hsl(240, 100%, 5%);
    color: white;
    padding: 1.5rem;
    margin-top: 50px;
}
.new h2{
    margin-top: 10px;
    text-transform: capitalize;
    color: hsl(35, 77%, 62%);
}
.cars{
    margin-top: 20px;

}
.cars p{
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 20px;
    color: hsl(236, 13%, 42%);
}
.art{
    margin-top: 20px;

}
.art p{
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 20px;color:hsl(236, 13%, 42%);
}
.fund{
    margin-top: 20px;

}
.fund p{
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 20px;
    color: hsl(236, 13%, 42%);
}
hr{
    margin-top: 30PX;
}
.game{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.retro img{
float: left;
height: 120px;
margin-right: 15px;
}
.gog img{
float: left;
height: 120px;
margin-right: 15px;
}
.top-pc img{
float: left;
height: 120px;
margin-right: 15px;
}
.retro h2{
    color:hsl(5, 85%, 63%) ;
    font-weight: 800;
    letter-spacing: 4px;
}
.gog h2{
    color:hsl(5, 85%, 63%) ;
    font-weight: 800;
    letter-spacing: 4px;
}
.top-pc h2{
    color:hsl(5, 85%, 63%) ;
    font-weight: 800;
    letter-spacing: 4px;
}
.retro h3{
    font-weight: 700;
    font-size: 1rem;
    color: hsl(240, 100%, 5%);
    margin-top: 10px;
}
.gog h3{
    font-weight: 700;
    color: hsl(240, 100%, 5%);
    margin-top: 10px;
     font-size: 1rem;
}
.top-pc h3{
    font-weight: 700;
    color: hsl(240, 100%, 5%);
    margin-top: 10px;
     font-size: 1rem;
}
.retro p{
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 20px;
    color: hsl(236, 13%, 42%);
}
.gog p{
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 20px;
    color: hsl(236, 13%, 42%);
}
.top-pc p{
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 20px;
    color: hsl(236, 13%, 42%);
}
.nav-link{
    display: none;
}



/* desktop view */

@media screen and (min-width:1020px){
    body{
        display: flex;
        justify-content: center;
         align-items: center; 
    }
    
    .mobile{
        display: none;

    }
    .desktop{
        display: block;
        height: auto;
        width: 56rem;
        margin-top: 50px;
        margin-right: 40px;
    }
    .menu-icon, .slider, .overlay{
        display: none;

    }
    .desktop-nav{
        display: block;

    }
    .container{
        display: flex;
        flex-direction:column ;
        max-width: 1440px;
        width: 100%;
        justify-content: center;

       
    }
    .box-1{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .f-r-m{
        display: flex;
        justify-content: space-between;
    }
    .read-more p{
        font-size: 1rem;
    }
    
    .game{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .read-more{
        max-width: 450px;
        width: 100%;
        margin-right: 50px;
        margin-top: 15px;

    }
    .future{
        max-width: 250px;
    }


}