body {
    background-color: lightblue;
}

  /* position of slideshow on the page */
#slideshow { 
    margin: 10px auto; 
    position: relative; 
    width: 1480px; 
    height: 500px; 
    padding: 10px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.4); 
}

/* postion of images within the slideshow */
#slideshow > div { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    right: 10px; 
    bottom: 10px; 
}
  
header {
    color: rgb(22, 22, 22);
    text-align: center;
    font-size: 50px;
    background-color: rgb(255, 255, 255);
}
  
p {
    font-family: verdana;
    font-size: 20px;
    text-align: center;
}
  
 /* the div class for the navigation bar */ 
.topnav {
    background-color: #333;
    width: 1503px;
    height: 60px;
}
  
  
.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 20px 161px;
    font-size: 17px;
}
  
/* navbar hover */ 
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* the div id for links above circular images */
#picbox {
    background-color: rgb(255, 255, 255);
    width: 1500px;
    height: 200px;
}

#picbox a {
    float: left;
    color: #0026ff;
    text-align: center;
    padding: 20px 95px;
    text-decoration: none;
    font-size: 17px;
}

/* links above circular image hover */
#picbox a:hover {
    text-decoration: underline;
    color: rgb(0, 0, 0);
}


#food {
    position: relative;
    margin-top: -130px;
    margin-left: 60px;;
}


#climate {
    position: relative;
    margin-top: -105px;
    margin-left: 295px;
}

#freshwater { 
    position: relative;
    margin-top: -105px;
    margin-left: 550px;
}

#wildlife {
    position: relative;
    margin-top: -105px;
    margin-left: 810px;
}

#forests {
    position: relative;
    margin-top: -105px;
    margin-left: 1055px;
}

#oceans {
    position: relative;
    margin-top: -105px;
    margin-left: 1290px;
    
}

/* div class for box around main body content (news articles) */
.container {
    background-color: #333;
    width: 1503px;
    height: 600px;
}

#planet {
    position: relative;
    margin-top: 20px;
    margin-left: 5px;
    padding: 10px;
    z-index: 0;
}

/* news articles dim when hovered over */
#planet a:hover {
    opacity: 0.6;
}

#pollution {
    position: relative; /* has to be opposing text */
    margin-top: -375px;
    margin-left: 650px;
    padding: 10px;
    z-index: 0;  /* has to be 0 so it can allow for the text to come to front */
}

#pollution a:hover {
    opacity: 0.6;
}

#adopt {
    position: relative;
    margin-top: -10px;
    margin-left: 5px;
    padding: 10px;
    z-index: 0;
}

#adopt a:hover {
    opacity: 0.6;
}

#gifts {
    position: relative;
    margin-top: -233px;
    margin-left: 240px;
    padding: 10px;
    z-index: 0;
}

#gifts a:hover {
    opacity: 0.6;
}

#crisis {
    position: relative;
    margin-top: -233px;
    margin-left: 500px;
    padding: 10px;
    z-index: 0;
}

#crisis a:hover {
    opacity: 0.6;
}

#pandemic {
    position: relative;
    margin-top: -303px;
    margin-left: 1000px;
    padding: 10px;
    z-index: 0;
}

#pandemic a:hover {
    opacity: 0.6;
}

#injustice {
    position: relative;
    margin-top: -610px;
    margin-left: 1000px;
    padding: 10px;
    z-index: 0;
}

#injustice a:hover {
    opacity: 0.6;
}

h1 {
    position: absolute;
    z-index: 1;  /* acts as a 'bring text to front' variable allowing for the text over image along with position absolute to the posisiton relative of image */
    margin-top: -80px;
    font-size: 40px;
    padding-left: 15px;
    color: blue;
    text-shadow: 2px 2px rgb(255, 255, 255);  /* text shadow adds drop shadow effect on text to make it stand out more from background - easier to read */
}

/* link underlines when hovered over with mouse */
h1:hover {
    text-decoration: underline;
}

h2 {
    position: absolute;
    z-index: 1;
    margin-top: -70px;
    font-size: 25px;
    padding-left: 15px;
    color: blue;
    text-shadow: 2px 2px rgb(255, 255, 255);
}

h2:hover {
    text-decoration: underline;
}

h3 {
    position: absolute;
    z-index: 1;
    margin-top: -100px;
    font-size: 30px;
    padding-left: 15px;
    color: blue;
    text-shadow: 2px 2px rgb(255, 255, 255);
}

h3:hover {
    text-decoration: underline;
}

h4 {
    position: absolute;
    z-index: 1;
    margin-top: -70px;
    font-size: 30px;
    padding-left: 15px;
    color: blue;
    text-shadow: 2px 2px rgb(255, 255, 255);
}

h4:hover {
    text-decoration: underline;
}

h5 {
    position: absolute;
    z-index: 1;
    margin-top: -70px;
    font-size: 30px;
    padding-left: 15px;
    color: blue;
    text-shadow: 2px 2px rgb(255, 255, 255);
}

h5:hover {
    text-decoration: underline;
}

h6 {
    position: absolute;
    z-index: 1;
    margin-top: -60px;
    font-size: 20px;
    padding-left: 5px;
    color: blue;
    text-shadow: 1px 1px rgb(255, 255, 255);
}

h6:hover {
    text-decoration: underline;
}

#footer {
    background-color: #333;
    width: 1503px;
    height: 25px;
    text-align: center;
}
  
