b.center {
    text-align: center;
}
        
html {
  font: 1.1em/1.3 "Avenir",sans-serif ;
}

body {
    background-color: #fff;
    color: #333;
    padding: 20px;
}

ul {
    list-style-type: none;
    float: none;
    width: 15%;
    position: fixed;
    margin: 0; 
    padding: 0;
}

li {
    display: block;
    width: 100%;
    background-color: lightsalmon;
}

p.list {
    text-align: left;
    font-size: 1em;
    line-height: 2em;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    color: white;
}

li:hover {
    background-color: bisque;
}

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

.container {
    background-color: antiquewhite;
    padding-top: 20px;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.container2 {
    background-color: white;
    padding-top: 20px;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.container3 {
    background-color: darksalmon;
    padding-top: 20px;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.mainfooter { 
	background-color: #555555;
	padding: 10px;
	border: 1px solid #ccc;
    text-align: center;
    font-family: 'Avenir', sans-serif;
    font-size: 1em;
    color: white;
    width: 100%;

}
        
.rbar {
	background-color: #fff;
	padding: 10px;
}

img {
	max-width: 100%;
    margin: 0px;
}

img.small {
    max-width: 30%;
    margin: 0;
    padding: 0;
}

figure {
	margin: 0;
	padding: 0;
}
      .mainheader { grid-area: header; }
      .content { grid-area: content; }
      .sidebar { grid-area: sidebar; }
      .mainfooter { grid-area: footer; }

      /* article grid setup */
      .content .primary { grid-area: article-primary; }
      .content aside { grid-area: article-secondary; }
      .content > h1 { grid-area: chapterhead ; }



      /* 
      declare the grid
      one column but pull the photo up to above the main content */
      @media only screen and (min-width: 460px) {
          .wrapper {
            display: grid;
            width: 90%;
            margin: 0 auto 0 auto;

            grid-template-columns: auto;
            grid-template-rows: auto ;
            grid-template-areas: 
              "header"
              "sidebar"
              "content"
              "footer"
            ;
          }
          
         /* in the nested grid pull the aside to the top but make it a smaller font */
          .content {
            display: grid;
            grid-template-columns: auto;
            grid-template-rows: auto;
            grid-template-areas:
              "chapterhead" 
              "article-secondary"
              "article-primary"
          ; 
          }

          article aside { font-size: .75rem;}

      }


      /* go to 2 cols for the wrapper grid */
      @media only screen and (min-width: 700px) {

        .wrapper {

            grid-template-columns: 9fr 40px 3fr;
            grid-template-rows: auto ;
            grid-template-areas: 
              "header header header"
              "content . sidebar"
              "footer footer footer"
            ;
          }
          
      }

      /* return to 2 cols in the inner grid */
      @media only screen and (min-width: 980px) {
          

          .content {
            display: grid;
            grid-template-columns: 9fr 40px 3fr;
            grid-template-rows: auto;
            grid-template-areas:
              "chapterhead . ." 
              "article-primary . article-secondary"
          ; 
          }

          article aside { font-size: 100%;}
      }

header {
    color: darksalmon;
    font-family: "Avenir", sans-serif;
    font-size: 3em;
    font-weight: 800;
    word-spacing: 10px;
    text-align: center;
    margin: 50px;
}

h1 {
    color: dimgray;
    font-family: "Avenir", sans-serif;
    font-size: 25px;
    font-variant: small-caps;
    font-weight: 120;
    letter-spacing: 5px;
    line-height: 1em;
}

h2 {
    color: dimgray;
    font-family: "Avenir", sans-serif;
    font-size: 2em;
    font-variant: small-caps;
    font-weight: 120;
    letter-spacing: 5px;
}

h2.white {
    color: antiquewhite;
    font-family: "Avenir", sans-serif;
    font-size: 2em;
    font-variant: small-caps;
    font-weight: 120;
    letter-spacing: 5px;
}

h3 {
    color: darksalmon;
    font-family: "Avenir", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    padding-top: 30px;
}

p {
    color: dimgray;
    font-family: "Avenir", sans-serif;
    font-size: 100%;
    letter-spacing: 1px;
    font-weight: 200;
    line-height: 1.5;
    padding: 10px;
}

p2 {
    color: white;
    font-family: "Avenir", sans-serif;
    font-size: 100%;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 500;
}

p.white {
    color: white;
    font-family: "Avenir", sans-serif;
    font-size: 100%;
    letter-spacing: 1px;
    font-weight: 200;
    line-height: 1.5;
}

.btn {
  width: 35%;
  height: auto;
  border-radius: 60px;
  font-family: "Avenir", sans-serif;
  font-size: 100%;
  color: #ffffff;
  background: darksalmon;
  padding: 10px 10px 10px 10px;
  border: solid white 3px;
  text-decoration: none;
  text-align: center;
  margin: 10px;
  display: inline-block;
}

.btn:hover {
  background: lightsalmon;
  text-decoration: none;
}

h3.white {
    color:white;
    font-family: "Avenir", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    padding-top: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
}

