@import url('https://fonts.googleapis.com/css?family=Quicksand');

body, html {
  font-family: Quicksand, serif, sans-serif;
  font-size: 1em;
  background-color: #000000; /*中间meiqi's portf横条的背景颜色*/
}

h1 {
    font-size: 1em;
    margin: inherit;
    color: white;
}

h2 {
    font-size: 1.2em;
    padding-top: 0.5em;
    padding-bottom: 0em;
    color: #b58aa1;
}

h3 {
  font-size: 0.9em;
  padding-bottom: 0.5em;
  color: white;
}

h4 {
  font-size: 1em;
  padding-bottom: 1em;
  color: black;
}

h1, h2, h3, h4 {
    font-weight: normal;
    text-align: center;
}

/* Home Page */
nav {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

nav li {
    float: left;
}

nav li a {
    display: block;
    background-color: #887ea3; /*左边标题的背景色HOME*/
    color: white;
    text-align: center;
    padding: 1em 3em;
    text-decoration: none;
}

nav li a:hover:not(.active) {
    background-color: grey;
}

nav .about {
    background-color: #7e9abd; /*右边标题的背景色ABOUT*/
    color: white;
}

nav .projects {
    background-color: #6c7d96; /*右边标题的背景色Projects*/
    color: white;
}


/* Top Part */


.main-bg {
    width: 100%;
    height: 38em;
    background: #000 url("../images/php3.jpg") no-repeat center center;
    background-size: cover;
}

.main {
    height: 21.250em;
    padding-top: 1em;
}

.main  h2{
  color: #ffffff;
}


/* Article / Parallax */

.parallax [class*="bg-"] {
  position: relative;
  height: 50em;
}

.parallax .bg-1 {
  background: #000 url("../images/php1.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  resize: both;
}
.parallax .bg-2 {
  background: #000 url("../images/nm.jpeg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}
.parallax .bg-break {

  background: #000 url("../images/littlesun.jpg") no-repeat center center;
  background-size:cover;
  height: 35em;
  background-attachment: fixed;
}

.parallax-content {
  width: 12.5em;
  font-size: 1.750em;
  text-indent: 0;
  color: #fff8de;
  padding: 1em;
  background-color: rgba(0,0,0,0.5);
}

.parallax-content1 {
  float: left;
  margin: 12.5em 1em 0 0;
}

.parallax-content2 {
  float: right;
  margin: 12.5em 1em 0 0;
}

.parallax-content-break {
  float: right;
  margin: 5.5em 1em 0 2em;
  font-size: 1.5em;
}

h1 a {
  color: #f5a09b;
}

h1 a:hover {
  color: white;
}

div .container {
  background-color: #000;
  margin: 0 auto;
  text-align: justify;
}

article h1, article h2 {
  margin: 0 0 0.333em;
}
article section {
  padding: 3em;
}
article section.parallax {
  margin: 0;
  padding: 0;
}

.grid-container {
  display: grid;
  grid-row-gap: 1em;
  grid-template-columns: auto auto;
  padding: 0.5em;
}
.grid-item {
  padding: 1em;
  font-size: 1.2em;
  text-align: left;
  color: #660c1e;
}

/* Media Queries */

@media screen and (max-width: 400px) {
    body, html {
      font-family:'Quicksand', sans-serif;
      font-size: 1em;
    }

    nav li a {
        padding: 0.7em 1em;
    }

    h1 {
        font-size: 1em;
    }
    h2 {
        font-size: 1.1em;
    }
    h1, h2 {
        font-weight: normal;
        text-align: center;
    }

    h3 {
      padding-left: 1em;
      padding-right: 1em;
    }
    .top {
        height: 30em;
    }
    .main-bg {
        width: 100%;
        height: 20em;
    }

    .parallax [class*="bg-"] {
      height: 35em;
    }


}

@media screen and (min-width: 401px) and (max-width: 436px) {
  body, html {
    font-family:'Quicksand', sans-serif;
    font-size: 1em;
  }

  nav li a {
      padding: 0.7em 2.5em;
  }

  h1 {
      font-size: 1em;
  }
  h2 {
      font-size: 1.1em;
  }
  h1, h2 {
      font-weight: normal;
      text-align: center;
  }
  h3 {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  .top {
      height: 30em;
  }
  .main-bg {
      width: 100%;
      height: 20em;
  }

  .parallax [class*="bg-"] {
    height: 35em;
  }

  .parallax-content {
    font-size: 1.6em;
  }

  .parallax-content-break {
    font-size: 1.6em;
  }

  .grid-container {
    display: block;
    grid-row-gap: 1em;
    grid-template-columns: auto;
    padding: 0em;
  }
  .grid-item {
    font-size: 1.3em;

  }

}

@media screen and (min-width: 437px) and (max-width: 720px) {
  body, html {
    font-family:'Quicksand', sans-serif;
    font-size: 1em;
  }
  h1 {
      font-size: 1em;
  }
  h2 {
      font-size: 1.1em;
  }
  h1, h2 {
      font-weight: normal;
      text-align: center;
  }
  .top {
      height: 30em;
  }
  .main-bg {
      width: 100%;
      height: 20em;
  }

  .parallax [class*="bg-"] {
    height: 35em;
  }

  .parallax-content {
    font-size: 1.6em;
  }

  .parallax-content-break {
    font-size: 1.6em;
  }

  .grid-container {
    display: block;
    grid-row-gap: 1em;
    grid-template-columns: auto;
    padding: 0em;
  }
  .grid-item {
    font-size: 1.3em;

  }

}


@media screen and (min-width: 721px) and (max-width: 1200px) {
  body, html {
    font-family:'Quicksand', sans-serif;
    font-size: 1em;
  }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.2em;
    }

    .top {
        background: #cc6666;
        position:relative;
        height: 45em;
    }

    .main-bg {
        width: 100%;
        height: 30em;
    }

    .parallax [class*="bg-"] {
      height: 35em;
    }

    .parallax-content {
      font-size: 1.4em;
    }

    .parallax-content-break {
      font-size: 1.4em;
    }

    .grid-container {
      display: grid;
      grid-row-gap: 1.875em;
      grid-template-columns: auto auto;
      padding: 0.625em;
    }
    .grid-item {
      padding: 0.625em;
      font-size: 1.2em;
      text-align: left;
    }

}

/* Projects Page */

.projects {
  float:right;
}

.projectsbody {
  background-color: #f0f1fa;
}

.projects-h1 {
  padding-top: 2em;
  font-size: 1.2em;
  margin: inherit;
}

.projects-h1 h1{
  padding-top: 1.2em;
  font-size: 1.6em;
    color: #a63802;
}

.projects-container {
  text-align:left;
  display: block;
  padding-left: 10em;
  padding-right: 10em;
}

.projects-container p {
  font-size: 1.2em;
  color: #590d1a;
}

.projects-parallax .projects-bg-break {
  background: #000 url("../images/galenaschool.jpg") no-repeat center center;
  background-size:cover;
  height: 40em;
  background-attachment: fixed;
}

.projects-note {
  text-align: center;
  display: block;
  padding: 0em;
}



/* About Page */
.about {
  float: right;
}

.aboutbody {
  background-color: #f9f2ff;
}

.about-h1 {
  padding-top: 2em;
  font-size: 1.2em;
  margin: inherit;
}

.about-h1 h1{
  padding-top: 1.2em;
  font-size: 1.6em;
    color: #a63802;
}

.about-h1 h2{
  padding-top: 1.2em;
  font-size: 1em;
    color: #b58aa1;
}

.about-container {
  text-align:left;
  display: block;
  padding-left: 10em;
  padding-right: 10em;
}

.about-container p {
  font-size: 1em;
  color: #590d1a;
}

.about-parallax .about-bg-break {
  background: #000 url("../images/galenahouse.jpg") no-repeat center center;
  background-size:cover;
  height: 40em;
  background-attachment: fixed;
}


.note {
  text-align: center;
  display: block;
  padding: 0.6em;
  font-size: 0.8em;
}

/* Projects Page Media Queries */

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

  .projects-parallax .about-bg-break {
    display: none;
  }

  .projects-h1 {
    font-size: 0.8em;
    margin: inherit;
  }

  .projects-container {
    text-align: inherit;
    display: inline;
  }


}

@media screen and (min-width: 401px) and (max-width: 720px) {
  .projects-h1 {
    font-size: 1em;
    margin: inherit;
  }

  .projects-container {
    text-align:left;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
  }

}


@media screen and (min-width: 721px) and (max-width: 1200px) {
  .projects-h1 {
    font-size: 1em;
    margin: inherit;
  }

  .projects-container {
    text-align:left;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
  }



}

/* About Page Media Queries */

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

  .about-parallax .about-bg-break {
    display: none;
  }

  .about-h1 {
    font-size: 0.8em;
    margin: inherit;
  }

  .about-container {
    text-align: inherit;
    display: inline;
  }

}

@media screen and (min-width: 401px) and (max-width: 720px) {
  .about-h1 {
    font-size: 1em;
    margin: inherit;
  }

  .about-container {
    text-align:left;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
  }
}

@media screen and (min-width: 721px) and (max-width: 1200px) {
  .about-h1 {
    font-size: 1em;
    margin: inherit;
  }

  .about-container {
    text-align:left;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
  }
}
