/* reset rule */
* {
    margin: 0; border: 0; padding: 0; box-sizing: border-box;
}

/* page styles */
body{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color:lightslategray;
    color: #222;
    /* padding: 16px; */
    min-height: 4000px;
    
}

h1{
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3.5rem;
    margin-bottom: 80px;
    margin-top: 40px;
}

h1 span{
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    
}

article {
    background-color: rgba(50, 50, 50,.6);
    margin: 80px 10px;
    min-height: 500px;
    color: #ffff64;
    padding: 16px;
}

h2{
    margin-bottom: 30px;
}

/* main nav menu */
h1 + nav{
    height: 80px;
    background-color: #234;
    padding: 0px 10px;
    position: sticky;
    top: 0;
}

h1 + nav a{
    color: rgb(173, 173, 3);
    border: 2px solid rgb(173, 173, 3);
    display: inline-block;
    height: 60px;
    margin-top: 10px;
    padding: 0px 16px;
    text-decoration: none;
    line-height: 54px;
}

/* h1 + nav a:first-child {
    margin-left: 10px;
} */

h1 + nav a:last-child {
    float: right;
}

/* nav 1 */
#article1 {
    height: 1000px;
}

#article1 h2 {
    text-align: center;
    color: #eee;
    padding-top: 10px;
}

#article1 div {
    background-image: url(/images/article1.jpg);
    background-size: cover;
    background-position: bottom center;
    width: 100%;
    height: 88%;
}
#nav1 {
    display:flex;
    justify-content:center;
    height: 60px;
    padding: 0px 500px;
    background-color:rgb(7, 146, 146);
    border: 1px solid #222;
    width: 100%;
}

#nav1 a{
    display: block;
    /* background-color: burlywood; */
    width: 200px;
    text-align: center;
    /* border: black solid 2px; */
    line-height: 55px;
    font-size: 1.4rem;
    text-decoration: none;
    color: black;
}

#nav1 a:first-child{
    text-decoration: underline;
}

#nav1 a:hover {
    border: black solid 2px;
    background-color:aqua;
    /* color: #eee; */
}

/* Nav 2 */
#article2 {
    background-image:url(/images/article2.jpg);
    background-position: center ;
    background-repeat: no-repeat;
    background-size: cover;
    height: 1000px;
    
    padding: 0;
}

#article2 div {
    background-color: rgba(22, 22, 22, .6);
    background-size: 100%;
    height: 1000px;
}

#article2 h2 {
    text-align: center;
    margin-top: 350px;
    font-size: 3rem;
    color: #eee;
}

#nav2 {
    text-align: center;
    font-size: 2rem;
    padding-top: 150px;
}

#nav2 a{
    display: inline-block;
    padding: 0px 20px;
    color:#666;
    text-decoration: none;
}

#nav2 a:nth-child(2) {
    text-decoration: underline;
}

#nav2 a:hover {
    color: #eee;
}

/* nav 3 */

#article3 {
    /* position: relative; */
    padding: 0;
    height: 800px;
    margin: 100px 10px
}

#article3 h2 {
    height: 100px;
    text-align: center;
    padding-top: 30px;
    background-color: darkslategray;
    color: #eee;
    font-size: 2em;
    
}
#nav3 {
    float: left;
    border: solid black 2px;
    height: 800px;
    width:15%;
    padding: 200px 0;
    /* display: flex; */
    background-color: darkolivegreen;
}

#nav3 a {
    display: block;
    text-align: center;
    font-size: 2rem;
    color: #eee;
    text-decoration: none;
    margin: 30px 0;
}

#nav3 a:hover {
    text-decoration: underline;
}

#article3 div {
    float: right;
    border: solid black 2px;
    height: 800px;
    
    width: 85%;
    background-image: url(/images/demo.jpg);
    background-size: cover;
    background-position: bottom;
}

/* nav 4 */

#article4{
    background-image: url(/images/article4.jpg);
    height: 1000px;
    background-position: center;
    background-size: cover;
}

#article4 h2{
    text-align: right;
    color: #ccc;
    font-size: 3rem;
}

#article4 nav {
    float: right;
    text-align: right;
    
}

#nav4 a {
    display: block;
    height: 60px;
    width:300px;
    border-radius: 45px;
    background-color:#444;
    padding-right: 100px;
    padding-top: 15px;
    margin:10px 60px;;
    font-size: 1.2rem;
    text-decoration: none;
    color: #eee;
}

#nav4 a:hover {
    background-color: #eee;
    color: orange;
    text-shadow: black 1px 1px;
}

/* nav 5 */
#article5 {
    min-height: 1500px;
}

#article5 h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #eee;
    margin-bottom: 100px;
}

#nav5  {
    display:flex;
    height: 700px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#nav5 a {
    display: block;
    border: solid black 2px;
    height:300px;
    width: 500px;
    margin: 0px 100px 80px 100px;
    text-decoration: transparent;
    color: transparent;
    
}

#im1 {
    background-image: url(/images/im1.jpg);
    background-size: cover;
}

#im2 {
    background-image: url(/images/im2.jpg);
    background-size: cover;
}

#im3 {
    background-image: url(/images/im3.jpg);
    background-size: cover;
}

#im4 {
    background-image: url(/images/im4.jpg);
    background-size: cover;
}

#im5 {
    background-image: url(/images/im5.jpg);
    background-size: cover;
}

#nav5 a:hover {
    color: #eee;
    text-align: center;
    font-size: 3em;
    filter: grayscale(100);
    padding-top: 20px;
    text-shadow: #222 2px 2px;
    
}
