@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --Soft-orange: hsl(35, 77%, 62%);
    --Soft-red: hsl(5, 85%, 63%);
    --Off-white: hsl(36, 100%, 99%);
    --Grayish-blue: hsl(233, 8%, 79%);
    --Dark-grayish-blue: hsl(236, 13%, 42%);
    --Very-dark-blue: hsl(240, 100%, 5%);
}

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

body {
    background-color: var(--Off-white);
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    padding: 10px;
}

body.no-scroll {
    overflow: hidden;
}

.body-overlay {
    width: 30%;
    height: 100%;
    position: fixed;
    top: 0;
    right: -70%;
    z-index: 2;
    display: none;
    opacity: 0;
    transition: all 2s ease-in-out;
}

.body-overlay.active {
    display: block;
    right: 70%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: all 2s ease-in-out;
}

header {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--Off-white);
    padding: 0 10px 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    margin-bottom: 20px;

    nav {
        width: 50px;
        height: 3px;
        position: relative;
        cursor: pointer;
        z-index: 4;
       

        .hamburger {
            width: 40px;
            height: 3px;
            background-color: var(--Very-dark-blue);
            position: relative;
            display: flex;
            z-index: 5;

            &::before, &::after {
                content: "";
                width: 40px;
                height: 3px;
                background-color: var(--Very-dark-blue);
                position: absolute;
                transition: all .5s ease-in-out;
                z-index: 5;
            }

            &::before {
                bottom: 7px;
            }

            &::after {
                top: 7px;
            }

            &.open {
                visibility: hidden;
                justify-self: end;
            }

            &.open::before {
                top: 0%;
                bottom: 0%;
                transform: rotate(45deg);
                visibility: visible;
                z-index: 5;
            }

            &.open::after {
                bottom: 0%;
                top: 0%;
                transform: rotate(-45deg);
                visibility: visible;
                z-index: 5;
            }
        }
        

        .navigation {
            position: fixed;
            top: 0;
            right: -150%;
            background-color: var(--Off-white);
            height: 100%;
            width: 70%;
            transition: all 0s ease-in-out;
            display: flex;
            justify-content: start;
            align-items: center;
            padding-left: 30px;
            z-index: 4;

            ul {
                position: relative;
                top: -5%;
                cursor: default;
               
                
                    

                    .nav-list {
                        list-style: none;
                        margin-bottom: 20px;
                        font-weight: 700;
                        font-size: 1.4rem;
                        
                        
                        a {
                            text-decoration: none;
                            color: var(--Very-dark-blue);
                        }

                        &:hover {
                            transform:  translateY(-3px);
                            font-weight: 700;
                            transition: all .5s ease-in-out;
                        }
                    }

                    
                
            }
            
            &.open {
                right: 0;
            }
        }

       
    }

   
}


main {
    margin-top: 50px;
    z-index: 1;
    margin-bottom: 50px;

    .hero-section {
        margin-bottom: 20px;
        img {
            max-inline-size: 100%;
            margin-bottom: 10px;
        }
    
        .header {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 10px;
        }
    
        .intro {
            display: flex;
            flex-direction: column;
    
            .intro-para {
                font-weight: 400;
                font-size: 1.05rem;
                margin-bottom: 20px;
            }
    
            #read-more {
                width: 200px;
                height: 50px;
                background-color: var(--Soft-red);
                color: var(--Very-dark-blue);
                font-size: 1rem;
                font-weight: 800;
                letter-spacing: 2px;
                border: none;
                cursor: pointer;
            }
        }
    }


    .new-section {
        height: 480px;
        background-color: var(--Very-dark-blue);
        color: var(--Off-white);
        padding: 20px;
        margin-bottom: 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .new {
            color: var(--Soft-orange);
            font-size: 2rem;
            margin-bottom: 20px
        }

        .new-div {
            height: 150px;

            .title {
                font-size: 1.2rem;
                font-weight: 900;
                margin-bottom: 20px;
            }

            .content {
                font-size: .94rem;
                font-weight: 200;
            }
        }

        .new-div:not(:last-child) {
            border-bottom: 1px solid var(--Off-white);
            margin-bottom: 20px;
            padding-bottom: 30px;
        }
    }


    .gaming-section {
        height: 50vh;

        .gaming-container {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            
            img {
                width: 100px;
                height: 100px;
                margin-right: 20px;
            }

            .gaming-div {
                
                .number {
                    font-size: 2rem;
                    color: var(--Soft-red);
                    margin-bottom: 5px;
                }

                .gaming-title {
                    font-size: 1rem;
                    font-weight: 900;
                    margin-bottom: 5px;
                }

                .gaming-content {
                    font-size: 1.05rem;
                    font-weight: 300;
                }
            }
        }
    }

}




@media (min-width: 600px) {
    * {
        margin: 0;
        padding: 0;
    }
    
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 100vw;
    }

    header {
        width: 1050px;
        position: static;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 0 25px;
        margin: 0;

        nav {
            width: 50%;
            height: 100%;
            padding: 0;

            .hamburger {
                display: none;
            }

            .navigation {
                width: 100%;
                position: static;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: row;
                padding: 0;

                ul {
                    position: static;
                    top: 0;
                    display: flex;
                    align-items: center;
                    justify-content: end;
                    height: 100%;
                    width: 100%;
                        
                    .nav-list {
                        list-style: none;
                        margin-bottom: 0px;
                        font-weight: 400;
                        font-size: 1rem;
                        padding: 0;
                        margin: 0;

                        a {
                            text-decoration: none;
                            padding: 0;
                            margin-left: 30px;
                            color: var(--Very-dark-blue);
                        }
                    }
                    
                }
                
            
                
               
            }

        }
    }

    main {
        width: 1000px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        

        .hero-section {
            width: 650px;
            height: 480px;
            grid-column: 1;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            margin-right: 20px;
            margin-bottom: 20px;

            img {
                margin-bottom: 20px;
            }

            .hero-writeup {
                display: flex;
                justify-content: space-between;
                flex-direction: row;
                

                .header {
                    width: 40%;
                }
    
                .intro {
                   width: 60%;
                   height: 150px;
                   margin-top: 20px;

                   .intro-para {
                    margin-bottom: 20px;
                    font-size: 1.1rem;
                   }

                }

            }

            

        }

        .new-section {
            width: 350px;
            height: 480px;
            grid-column: 2;
            grid-row: 1;
            margin: 0;
            margin-bottom: 20px;
        }

        .gaming-section {
            grid-column: 1/3;
            grid-row: auto;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            width: 1030px;
            height: 200px;
            padding: 0;
            margin: 0;

            .gaming-container {
                display: flex;
                align-items: center;
                margin-bottom: 20px;
                margin-right: 0;
                padding: 0;
                width: 700px;
                
                img {
                    width: 100px;
                    height: 100px;
                    margin-right: 20px;
                }
    
                .gaming-div {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding: 0;


                    .number {
                        font-size: 2rem;
                        color: var(--Soft-red);
                        margin-bottom: 8px;
                        
                    }
    
                    .gaming-title {
                        font-size: 1rem;
                        font-weight: 800;
                        margin-bottom: 5px;
                        padding: 0;

                    }
    
                    .gaming-content {
                        font-size: .72rem;
                        font-weight: 400;
                    }
                }
            }
        }
    }
}



@media (min-width: 500px) and (max-width: 768px) and (orientation: landscape) {
    body {
        min-width: 150vw;
    }
}