/* Meyer CSS Reset */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* End of Meyer Reset*/


/*=======MY CSS STARTS HERE =======*/


/*======= LAYOUT =======*/

main{
    max-width: 70em;
    margin: 0 auto;
    text-align: center;
}

body {
    font-family: 'Lato', Helvetica, Arial, sans-serif; /*Lato as my chosen font for paragraphs*/
    max-width: 60em;
    margin: 2em auto; 
    background: #ffffff;
    padding: 2em 3em;
    border-radius: 0.5em; /*corners of the white box has been curved*/
    box-shadow: 0 0 1em rgba(0,0,0,0.1); /*for shadow of white box*/
}

main p {
    text-align: left;
    padding: 0 2em 2em 2em;
}

header {
    padding: 2em;
    background-color: #B8BFD6;
    border-radius: 0.5em;
}

footer {
   padding: 2em;
   background-color: #B8BFD6;
   border-radius: 0.5em;
   font-family: 'Lato', Helvetica, Arial, sans-serif; /*Lato as my chosen font for 'Back to homepage'*/
   font-weight: 600;
   color: white;
}


/*======= TYPOGRAPHY =======*/

h1, h2 {
  font-family: 'Prata', Georgia, 'Times New Roman', serif; /*Prata as my chosen font for headings*/
  font-weight: 700;
  color: #19335A; /* making the h1 and h2 headings a navy colour*/
}

h1 {
    margin: 1.5em;
    text-align: center;
    font-size: 3.5em;
}

h2 {

    text-align: left;
    font-size: 2em;
    margin: 2em 0em 1em 0em;
}

p {
    font-size: 1.3em;
    line-height: 1.6em;
    padding-bottom:2em;
    
}

nav {
    font-family:'Roboto', Helvetica, Arial, sans-serif; /*Roboto as my chosen font for the navigation text*/
    display: flex;
    align-items: center;
}

/*======= NAVIGATION & LINKS =======*/

nav ul {
   display: flex;
   gap: 15px; /* the amount of space between each of the links*/
   list-style: none;
   justify-content: center;
   align-items: center; /*to center the navigation links*/
   font-size: 1.3em;
}

nav li {

  display: inline-block;
  padding-left: 1.7em;

}

nav li + li {
    border-left: 2px solid #808080; /* creates a small grey vertical line between each navigation link*/
    padding-left: 2em;
}

a {
  text-decoration: none; /* removes underline under links*/

}

nav ul li a {
  color: #0C0C0C; /* the navigation text is a very dark grey colour*/

}

nav ul a:hover {
    color: #ffffff; /*when the user's mouse hovers over text, it turns black*/
}

/*footer anchor styling */

footer a {
    color: #ffffff; /*text in footer is white*/
    text-decoration: underline;
    font-size: 1.1em;
}

footer a:hover {
     color: #0C0C0C; /* footer text is a very dark grey colour*/
}

/*======= IMAGES =======*/

img {
    margin: 2em;
    box-shadow: 0.125em 0.125em 0.4em grey; /* This will add shadow around all images */
    border-radius: 1em; /* This will curve the images corners*/
}