/* Add CSS selectors for these semantic elements: 
   header, nav, main, article, aside, footer. 
   
   Most of your project 1 CSS should go in this file - that way
   the effects will be applied to each page in the template.
*/

* {
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
header{
    background-color: orange;
    display: flex;
    justify-content: center;
}
nav{
    background-color: blue;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 8px;
}
nav > a{
    margin: 0px 8px;
}
main{
    display: flex;
    flex-wrap: wrap;
}

p{  
    font-size: larger;
    font-family:fantasy;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 1px;
    margin-inline-end: 0px;
}


footer{
    background-color: blue;
    color: white;
    box-sizing: border-box;
    margin: 0%;
    padding: 1%;
}
img{
    float: right;
    margin-left: 15px;
}

/*
   You'll probably want to add margins and padding to elements
   because by default, everything will have them set to 0.
*/

body {
    background-color: beige;
    background-size: 100%; /* Pick a nicer background color or image */
    margin: 0 4%;
    }

body > header {
    text-align: center;
}
aside{
    background-color: orange;
    order: 2;
    flex: 1 2 20%;

}
article> header{
    display: block;
    background-color: orange;
}
article{
    order: 1;
    flex: 2 1 50%;
}

h1{
    font-size: 80px ;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: brown;
}
a:link{
    color: rgb(157, 165, 42);
    }
a:visited{
        color: rgb(255, 255, 255);
    
    }
a:hover{
        background: red;
    }
a:active{
        background:rgb(0, 255, 170);
    }

table, th, td{
    border: 2px solid;
    text-align: left;
    color: rgb(192, 8, 8);
}
th, td{
    padding: 10px;
    margin: 10px;
    color:black;
    }
tr:nth-of-type(even){
    background-color: rgb(194, 47, 27);
}
tr:nth-of-type(odd){
    background-color: orange;
    }
    
th{
    background-color: #b61c1c;
    color: white;
}
