/* css reset rule */
*{
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}
    /* universal styling */
    /* all devices follow these rules */

 body{
    min-height: 100vh;
    border: 2px solid rgb(255, 255, 255);
}


#container {
    margin: 4px;
    height: 100vh;
}
header{
    background-color: #001aff;
    height: 80px;
    padding: 8px;
}

#banner {
    width: 300px;
    height: 64px;

    background-color: rgba(255,255,255,.7);
}
main {
    
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
}
main aside{ 
    background-color: #BF5700;
    min-height: 300px;
    flex: 0 0 200px;
    padding-bottom: 12px;
}
aside nav a{
    display: inline-block;
    width: 90%; height: 50px;
    background-color: #F5C59E;
    margin: 5% 5% 0 5%;
}
main article{
        background-color: rgb(255, 255, 255);
        min-height: 300px;
        flex: 1 0 0;
    }
    article .image{
        
            background-color: goldenrod;
            width: 200px; height: 200px;
            padding: 8px;
            margin-top: 11%;
            float: left;
            margin-right: 10px;
    }
        article p{
            font-family: verdana;
            margin: 8px;
            font-size: 15pt;
            line-height: 1.5;
        }
    article header{
        background-color: #3A3
    }


    /* tablet and phone styling */
@media screen and (max-width: 800px){
    #banner {
    width: 100%;

}
main {
flex-direction: column;
}
main aside{ 
    min-height: 80px;
    max-height:80px;
    flex: 1 0 200px;
}
 aside nav{
     display: flex;
}
aside nav a{
        
    height: 60px;
    background-color: #F5C59E;
    margin: 8px;
}
aside nav a:nth-child(4),
aside nav a:nth-child(5){
     display: none;
}
main article{
            
     min-height: 600px;
            
}
 article .image{
            
    width: 100%; height: 250px;
    padding: 8px 0px 16px 0px;
    float: left;
}
article p {
 margin: 8px 4px 20px 4px;
}


}