@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro|Droid+Sans|Noto+Sans|Oxygen|Nunito:300|Muli);

* {
  box-sizing: border-box;
}

body {
  background: url('http://www.pixeden.com/media/k2/galleries/131/001-subtle-light-pattern-background-texture.jpg');
  font-family: 'Oxygen', sans-serif;
}

#about, #projects {
  background-color: #3F88C5;
  width: 60%;
  margin: 5% auto;
  padding: 1%;
  text-align: center;
  -webkit-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.75);
  box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.75);
  border-radius: 1%;
}

#about h1 {
  color: white;
  font-size: 3em;
  position: relative;
  margin: 0;
  left: -270px;
}

@media screen and (max-width: 1170px) {
  #about h1{
    left: -200px;
  }
}

@media screen and (max-width: 900px) {
  #about h1{
    left: -100px;
  }
}

@media screen and (max-width: 580px) {
  #about h1{
    font-size: 1.6em;
    left: -10px;
  }

  #about p {
    top: -1.1rem;
  }
}

#about p {
  position: relative;
  margin: 4%;
  top: -1.5rem;
  z-index: 2;
}

#projects h1 {
  color: whitesmoke;
  font-size: 3em;
  margin: 0;
}

#projects {

}

.each-project {
  margin: 4% 0 4% 0;
  padding: 1%;
  display: inline-block;
  width: 45%;
}

a {
  text-decoration: none;
  color: antiquewhite;
}

@media screen and (max-width: 920px) {
  #projects {
    width: 90%;
    text-align: center;
  }

  header {
    width: 100%;
  }

}

.uplift, .restaurant-app, .otter-code, .unison-app{
  width: 250px;
  margin-top: 10px;
  border-radius: 2px;
}


/********** FOOTER **********/

footer {
  /*position: fixed;
  bottom: 0;*/
  background-color: navy;
  width: 100%;
  color: whitesmoke;
  padding: 1%;
  text-align: center;
}

footer i {
  padding: 0.5%;
}

footer a {
  text-decoration: none;
  color: whitesmoke;
  padding: 0 2%;
}

/********** HEADER **********/
.display-font {
  font-family: 'Open Sans Condensed', sans-serif;
}

header {
  color: navy;
  text-align: center;
}

.red h1 {
  font-size: 3.2em;
  color: #3F88C5;
  margin: -15px;
  padding: 0 5em 0 3em;
  width: 100%;
}

.white h1 {
  color: navy;
  margin: -28px;
  padding: 0 0 18px 7em;
  font-size: 2.8em;
  width: 100%;
}


.red {
  background-color: navy;
  padding: 10px 10px 0 10px;
  width: 100%;
}

.white {
  background-color: #3F88C5;
  padding: 12px 10px 10px 10px;
  width: 100%;
}

/********** MEDIA QUERIES**********/

@media screen and (max-width: 700px) {
  .red h1 {
    font-size: 2.4em;
    margin: -11px;
  }

  .white h1 {
    font-size: 2.2em;
    margin: -25px;
    padding-bottom: 18px;
  }
}

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

  footer a:nth-child(even) {
    display: block;
  }

  #projects h4 {
    text-align: center;
  }

  .each-project {
    display: block;
    width: 100%;
  }

  #about {
    width: 90%;
    padding: 2%;
  }

}


@media screen and (max-width: 500px) {
  .red h1 {
    font-size: 1.6em;
    margin: -8px;
    padding-left: 0;
  }

  .white h1 {
    font-size: 1.5em;
    /*margin-top: -21px;
    margin-left: -100px;*/
    margin: -21px 0 0 -100px;
    /*padding-bottom: 18px;
    padding-right: 0em;*/
    padding: 0;
    position: absolute;
    left: 30%;
  }
}

@media screen and (max-width: 900px) {
  #about h1{
    left: -100px;
  }
}

@media screen and (max-width: 580px) {
  #about h1{
    font-size: 3rem;
    position: static;
    text-align: center;
  }

  #about p {
    position: static;
  }
}
