body, header, nav, main, footer, h2, h1, h3{
    margin: 0;
    padding: 0;
    border: 0;
}

header h2{
    text-align: center;
    font-size: 2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

@media screen and (min-width: 320px){
    
    nav {
        margin-bottom: 200px;
        background-color: whitesmoke;
        height: 260px;
    }
    
    nav ul{
        text-align: center;
    }
    nav li{
        display:block;
    }
    nav li a{
        border-top: 2px solid black;
        display: block;
        color: #1c3f6e;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        padding-left: 2em;
        padding-right: 2em;
        margin-right: 50px;
    }
    
    /* Footer */
    footer{
        text-align: center;
        color: whitesmoke;
    }
    
    /* Main Content on Home Page */
    #games h3{
        text-align: center;
    }
    
    #updates h3{
        text-align: center;
    }
    
    #new h3{
        text-align: center;
    }
    
    #streams h3{
        text-align: center;
    }
    
    main{
        margin-top: -150px;
    }
    
    main h3{
        padding-top: 10px;
    }
    @media only screen and (min-width: 320px) {
        
    }
    
    /* Main Content on Games Page */
    #codGame{
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
       }
    
       #nba{
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
       }
    
       #fortnite{
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
       }
    
       #rivals{
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
       }
    /* Navigation Page */
      /* Games page */
      #codGame {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
        width: 250px;
       }
    
       #codGame img{
            height: auto;
            width: 100%;
       }
    
       #nba{
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
        width: 250px;
       }
    
       #nba img{
        height: auto;
        width: 100%;
       }
    
       #fortnite{
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
        width: 250px;
    
       }
    
       #fortnite img{
        height: auto;
        width: 100%;
       }
    
       #rivals{
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
        width: 250px;
       }
    
       #rivals img{
        height: auto;
        width: 100%;
       }
    
       footer{
        margin-top: 200px;
        color: white;
       }
}


/* Viewport for large phones and tablet */
@media only screen and (min-width: 481px) {

    nav{
        background-color: whitesmoke;
       /* display: block; */
       margin-top: 50px;
       text-align: center;
       height: auto;
    }

    nav li a{
        padding: 0;
        padding-top: 5px;
        padding-bottom: 5px;
        color: black;
        display: inline-block;
        border-top: none;
    }

    

   #games{
    width: 300px;
    float: left;
    margin-left: 50px;
   }

   #games a{
    text-align: center;
   }

   #updates{
    width: 300px;
    float: right;
    margin-right: 50px;
   }

   #updates a{
    text-align: center;
   }

   #new{
    float: left;
    width: 300px;
    margin-left: 50px;
    margin-top: 50px;
   }

   #new a{
    text-align: center;
   }

   #streams{
    float: right;
    width: 300px;
    margin-right: 50px;
    margin-top: 50px;
   }

   #streams a{
    text-align: center;
   }

   /* Games page */
   #codGame {
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
    margin-left: 50px;
   }

   #codGame img{
        height: auto;
        width: 100%;
   }

   #nba{
    float: right;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
    margin-right: 50px;
   }

   #nba img{
    height: auto;
    width: 100%;
   }

   #fortnite{
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
    margin-left: 50px;

   }

   #fortnite img{
    height: auto;
    width: 100%;
   }

   #rivals{
    float: right;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
    margin-right: 50px;

   }

   #rivals img{
    height: auto;
    width: 100%;
   }

   footer{
    display: inline-block;
    color: white;
   }
   
}

/* Viewport for tabels in landscape orientation, laptops and small desktop monitors */
@media only screen and (min-width: 1024px){
    #games{
        display: inline-block;
        margin-top: 50px;

    }
    #new{
        display: inline-block;

    }

    #updates{
        display: inline-block;
        margin-top: 50px;

    }
    #streams{
        display: inline-block;
    }
    #codGame{
        box-shadow: none;
        width: 500px;
        
       
    }

    #fortnite{
        box-shadow: none;
        width: 500px;
        
    }

    #nba{
     
        box-shadow: none;
        width: 500px;
    }

    #rivals{
        box-shadow: none;
        width: 500px;
        
    }
    footer{
        margin-top: 400px;
    }
}

   

/* Viewport fot large destop  monitor  */
@media only screen and (min-width: 1280px){
    /* Navigation bar */
    nav{
        background-color: whitesmoke;
       display: block;
       margin-top: 50px;
       text-align: center;
       height: auto;
    }

    nav li a{
        color: black;
        display: inline-block;
    }

    nav li a:hover{
        color: #7886C7;
    }

    /* Main content */
    .main-index{
        display: inline-block;
        margin-top: 100px;
        
    }

    /* Games, upcoming, streamers and update blocks */
   #games{
    width: 300px;
    margin-left: 250px;
    margin-top: 50px;
   }

   #games a{
    text-align: center;
   }

   #updates{
    width: 300px;
    margin-top: 50px;
   }

   #updates a{
    text-align: center;
   }

   #new{
    width: 300px;
    margin-left: 50px;
    margin-right: 50px;
   }

   #new a{
    text-align: center;
   }

   #streams{
    width: 300px;
    margin-left: 50px;
   }

   #streams a{
    text-align: center;
   }

    /* Games page */
   #codGame {
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    margin-left: 100px;
   }

   #codGame img{
        height: auto;
        width: 100%;
   }

   #nba{
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    margin-left: 200px;
   }

   #nba img{
    height: auto;
    width: 100%;
   }

   #fortnite{
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    margin-left: 200px;

   }

   #fortnite img{
    height: auto;
    width: 100%;
   }

   #rivals{
    float: left;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 250px;
    margin-left: 200px;

   }

   #rivals img{
    height: auto;
    width: 100%;
   }

   footer{
    margin-top: 800px;
    color: white;
   }
}