/* Guilherme Rizzo Castanheira
MIDTERM - MAD9013 */


@import url('https://fonts.googleapis.com/css?family=Bangers|PT+Sans+Caption');

* { /* box-sizing to apply width and height to all parts of the elements in the page */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  
}

html {
  font-size: 13px;
  word-spacing: normal;
  font: 'PT Sans Caption', 'Helvetica', sans-serif;
  color: #954400;
}

/*********** SMALL (DEFAULT) **************/

h1 {
  font: bold 5rem 'Bangers', cursive;
  text-shadow: 1px 5px #954400;
  text-align: center;
  transition: transform .1s;
}

h1:hover {
  transform: scale(1.2);
}

h2 {
  font: bold 2.618rem 'Bangers', cursive;
  text-align: left;
  padding-bottom: 2rem;

}

h2:hover {
  transform: scale(1.1);
}

h3 {
  font: bold 2.618rem 'Bangers', cursive;
  text-align: left;
  text-shadow: 1px 5px #954400;
  padding: 2rem 0 0 0;
}

li, p, a {
  font: 1.1rem 'PT Sans Caption', 'Helvetica', sans-serif;
}

p {
  padding: 1em 0;
}

.wrapper { /* the whole content of the webpage */
  width: 100%;
  margin: 0rem auto;

}

header {
  background-image: url(https://loremflickr.com/850/350/detonation,fire/all); /* explosion images */
  max-width: 100%; /* to fit the screen */
  height: auto;
  background-size: cover;
  background-position: center;
  background-color: #954400;
  color: #fff9f5;
  padding: 1em;

}

body nav ul, li {
  width: 100%;
}

nav a {
  display: block; /* to keep the nav on the correct position */
  font: bold 1.5rem 'PT Sans Caption', 'Helvetica', sans-serif;
  text-align: center;
  text-decoration: none;
  color: #fff9f5;
  border-bottom: 2.2px solid #fff9f5;
  background-color: #BE5803;
  transition: background 0.5s;
}

nav a:hover {
  background-color: #fff9f5;
  color: #BE5803;
}

main { /* content of the page - two columns */ 
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 3rem 2rem;
}

.col { /* both columns */
  width: 100%;
  text-align: justify;
}


.first img {
  height: auto;
  max-width: 100%;
  border-radius: 3px; /* curves on border */
  background-color: #fff9f5;
  padding: 0.5em;
  border-radius: 15px;
  margin: 0.5em 0 0.9em 0;
  text-align: center;
}


 /* to give a space between the columns */
p:last-child{
  margin-bottom: 3rem;
}

footer {
  width: 100%;
  margin-top: 2em;
  padding: 1em;
  background-color: #F4750C;
  color: #fff9f5;
  font-size: 1.2rem;
  border-radius: 0 0 5px 5px;
  text-align: center;
  clear: both; /* to don't float the footer element */
}

footer p {
  font-size: 1.2em;
}

footer li {
  width: 100%;
  list-style: none;
}

footer a {
  text-decoration: none;
  color: #316;
  font-size: 1.2rem;
  text-align: left;
}

footer a:hover {
  text-decoration: underline;
}


/*********** MEDIUM **************/

@media screen and (min-width:600px) {
  h1 {
    font-size: 5.5em;
  }

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

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

  li, p, a {
    font-size: 1.1rem;
  }

  .wrapper {
    width: 100%;
  }

  header {
    padding: 2.89rem;
  }

  nav {
    width:  100%;
  }

  nav li {
    width: 20%; /* rate 100 / 5 menus items */
    float: left;
    list-style-type: none;
    /*to remove the bullet points */
    
  }

  nav a {
    font-size: 1.6rem;
    transition: all 0.5s;
    
  }

  main {
    width: 97%;
    margin-top: 2rem;
    padding: 2em 0 0.5em 0;
  }

  .col {
    width: 50%; /* to divide both columns */
  }

  
  .first img {
    width: 55%;
    float: left;
  }

  .first {
    float: left;
    padding-right: 1rem;
    padding-left: 0rem;
  }

  .second {
    float: right;
    padding-left: 1rem;
    padding-right: 0rem;
  }

  footer {
    width: 100%;
    align-items: flex-end;
    
    height: 7em;

  }

  footer li {
    width: 30%;
    float: right;
    
  }

  footer p {
    font-size: 1.5rem;
    padding-bottom: 0.5em;
    
  }
}

/*********** LARGE **************/

@media screen and (min-width: 800px) {

  h1 {
    font-size: 7em;
  }

  h2 {
    font-size: 3rem;
  }

  .first img {
    width: 60%;
  }

  nav {
    width: 100%;
    margin: auto;
  }

  nav li {
    text-align: inherit;
    padding: 0 0 2rem 0;
    list-style-type: none;
    /*to remove the bullet points */
  }

  nav a {
    background-color: white;
    color: #BE5803;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.2s;
  }

  nav a:hover {
    background-color: #BE5803;
    color: #fff9f5;
    padding-bottom: 5%;
  }

  main {
    padding-top: 3rem;
    padding-bottom: 1rem;
  }

  p {
    font-size: 1.2rem;
  }
  
  .first {
    padding-right: 1.5rem;
  }

  .second {
    padding-left: 1.5rem;
    padding-right: 1.5rem
  }


  footer {
    height: 10rem;
    width: 100%;
  }

  footer p, a {
    font-size: 1.2rem;
    padding-bottom: 1.5rem;
  }
}

/*********** EXTRA LARGE **************/

@media screen and (min-width: 1200px) {
  h1 {
    font-size: 9rem;
  }

  h2 {
    font-size: 4rem;
  }

  p {
    font-size: 1.5rem;
  }

  header {
    max-width: 100%;
  }

  main {
    width: 100%;
    padding-left: 20%;
    padding-right: 2rem;
    margin-top: 2em;
  }

  nav {
    width: 20%;
    float: left;
    margin-top: 3rem;
    padding-right: 3rem;
    
  }

  nav li {
    width: 100%;
    list-style-type: none;
    /*to remove the bullet points */
  }

  nav a {
    padding: 0 0 1rem 3rem;
    font-size: 2rem;
    text-align: left;
  }

  nav a:hover{
    background-color: #BE5803;
    color: #fff9f5;
    padding-left: 30%;
    padding-top: 10%;
  }
  
  .first img {
    width: 55%;
  }

  .first {
    width: 50%;
    float: left;
  }

  .second {
    width: 50%;
    float: right;
  }

  footer {
    width: 100%;
    height: auto;
    align-content: center;
    padding-bottom: 4rem;
  }
  
  footer p, li{
    font-size: 1.5rem;
  }

}