/* Eric Reset */

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;
  line-height: 1;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
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 Eric Reset */

/* my universal styles */

* {
  box-sizing: border-box;
}


/* for fire feature  */

.feature strong  {
  font-weight: 700;
  font-size: 14rem;
  font-family: 'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  color: #fd2729;
  position: relative;
  top: 16px;
}

.feature h1 {
  font-size: 7rem;
  text-align: center;
  font-family:'Oswald', 'Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* General Styling */

body {
  font-family:'Roboto', Tahoma, Arial, Helvetica, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background-color: #e2cb47;
  color: #111111;
}

/*this slight variation on original colour slightly lighter to make it easier to read original yellow was #e3ca43  */

main {
  margin: 3rem auto;
  max-width: 80%;
}


/* Nav Bar */

nav ul, nav a {
  display: flex;
  justify-content: space-evenly;
  margin: 1.5rem auto;
  align-items: center; 
  list-style: none;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #6E1111;
}

/* Headings, Paragraphs, and Strong */

 h2{
  font-size: 3rem;
  padding: 1.5rem;
  font-family: 'Oswald','Franklin Gothic Medium', 'Gill Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: left;
  color: black;
}

p {
  padding: 1rem;
  line-height: 1.8;
  font-size: 2rem;
}

strong { 
  font-family:'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  font-weight: 400;
  color: #fd2729;
  font-size: 3rem;
  text-align: left;
}

/* H1 Variations in styling. Setting up break between part 1 and 2 and setting up the fail strong to be larger than others.  */


main > p + h2{
  margin-top: 3rem;
  margin-bottom: 1rem;

}
h2:nth-of-type(5) > strong {
  font-size: 6rem; 
  font-family: 'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  font-weight: 700;
}


h2:nth-of-type(6) > strong {
  font-size: 8rem; 
  font-family: 'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  font-weight: 700;
}

h2:nth-of-type(6) {
  margin-top: 4rem;
}


h2:nth-of-type(13) {
  margin-top: 1.5rem;
}


h2:nth-of-type(13) > strong {
  font-size: 10rem; 
  font-family: 'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  font-weight: 700;
}

/* P Variations */

P:nth-of-type(1) {
  font-size: 3rem;
}

p:nth-of-type(1) > strong {
  font-size: 7rem;
  font-weight: 700;
  font-family:'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  color: #fd2729;

}

/* Styling for Bio page */

#bio {
 max-width: 88%; 
 margin: 0 auto;
}



#bio  h1 {
  font-size: 3.5rem;
  font-weight: 700;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 2rem;
}

#bio  h2 {
  font-size: 2.8rem;
  font-weight: 600;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
}


#bio p + h2{
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#bio p {
  font-size: 1.8rem;
  line-height: 2;
}

cite {
  font-size: 1.3rem;
  text-align: justify;
}

/* Styling for Little Grid */ 

/*this is a fix for first nth type p clashing */

#first-repetitive-p {
font-size: 3.9rem;
font-family:'Oswald', 'Franklin Gothic Medium', 'Gill Sans', Arial, Helvetica, sans-serif;
font-weight: 600;
line-height: 1.9;
}

#first-repetitive-strong {
  font-size: 4rem;
  font-family:'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  font-weight: 700;
  line-height: 1.9;
  }
  
.repetitive-p {
  font-size: 3.9rem;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.9;
}

.repetitive-strong {
  font-size: 4rem;
  font-family:'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  font-weight: 700;
  line-height: 1.9;
}

section {
  display:flex;
  flex-basis: auto;
}

@supports (display:grid) {
section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 2%;
  margin: auto;
}
}


/*love Hate Links */ 

a {
  color: #014AB7;
}

a:visited {
  color: #012760;
}

a:focus {
  color:#014AB7 ;
}

a:hover {
  color: #014AB7;
}

a:active {
  color: #6E0202;
}

/* THIS IS THE START */ 
/*Responsive Styling */

@media screen and (max-width: 926px) {

  /* Home page */
.feature strong {
  font-size: 5rem;
}

.feature h1 {
  font-size: 3rem;
}

/* General Styling */ 

p {
  font-size: 1.5rem;
}

strong {
  font-size: 2.5rem;
  text-align: left;
}

h2 {
  font-size: 2.5rem;
  text-align: left;
}

/* Opening of Section 1 Fixing Fire bit more specific  styling */

h2:nth-of-type(5) > strong {
  font-size: 4rem; 
  font-family: 'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  font-weight: 700;
}

h2:nth-of-type(6) > strong {
  font-size: 6rem; 
  font-family: 'Amatic SC', 'Bradley Hand','Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  font-weight: 700;
}


h2:nth-of-type(6) {
  margin-top: 4rem;
}

h2:nth-of-type(13) > strong {
  font-size: 8rem; 
  font-family: 'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  font-weight: 700;
}

/* P Variations */

P:nth-of-type(1) {
  font-size: 2rem;
}

p:nth-of-type(1) > strong {
  font-size: 6rem;
  font-weight: 700;
  font-family:'Amatic SC', 'Bradley Hand', 'Courier New Bold', 'Verdana Bold', Rockwell, sans-serif;
  color: #fd2729;

}

/* Section Grid for mobile*/

section {
  display:flex;
  flex-wrap: wrap;
}

@supports (display:grid) {
section {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: auto;
  grid-gap: 1%;
}
}


#first-repetitive-p {
  font-size: 3rem;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  }
  
#first-repetitive-strong {
    font-size: 3.5rem;
    font-family:'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    }


.repetitive-p {
  font-size: 3rem;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.5;
}

.repetitive-strong {
  font-size: 3.5rem;
  font-family:'Permanent Marker', 'Amatic SC', 'Bradley Hand', 'Courier Bold', Impact, sans-serif;
  line-height: 1.5;
}

/* Context Page */

#bio  h1 {
  font-size: 2.8rem;
  text-align: left;
  margin-bottom: 2rem;
}


#bio  h2 {
  font-size: 2.3rem;
  text-align: left;
  font-weight: 600;
  font-family:'Oswald','Franklin Gothic Medium','Gill Sans', Arial, Helvetica, sans-serif;
}


#bio p + h2{
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
 
#bio p {
  font-size: 1.5rem;
  line-height: 1.8;
}
}