* {
   margin: 0;
}

html, body {
   height: 100%;
}

body {
   font-family: Quicksand, serif;
   background-color: whitesmoke;
   display: flex;
   flex-direction: column;
}

/* NAVIGATION */

nav {
   padding: 1em 0;
   background-color: #2D2D34;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

nav, nav a:link, nav a:visited, .btn-toggle {
   color: #F1E4E8;
}

.logo-title {
   display: flex;
   align-items: center;
   margin-left: 1rem;
}

nav img {
   width: 20%;
}

nav h1 {
   font-family: Calistoga, sans-serif;
   font-weight: normal;
   font-size: 2.5rem;
   line-height: auto;
   letter-spacing: .125rem;
   padding-left: .75rem;
}

nav ul {
   display: flex;
   list-style-type: none;
   text-align: center;
   font-size: 1.1rem;
}

nav li {
   padding-right: 1.8rem;
}

nav a:link {
   text-decoration: none;
}

nav a:hover, .active-link {
   color: #B97375;
}

.active-link {
   font-weight:bold;
}

/* MAIN */

.humble-title {
   padding: 3em 15%;
   text-align: center;
   background-color: #CEB1BE;
   color:#2D2D34;
   border-bottom: 3px solid #2D2D34;
}

.humble-title h2, h3 {
   font-family: Calistoga, sans-serif;
   font-weight: 400;
}

.humble-title h2 {
   font-size: 2.5rem;
}

main p {
   font-weight: 500;
   padding-top: 1em;
   line-height: 1.5em;
}

h3 {
   font-size: 1.5rem;
}

.era1 {
   display: flex;
   background-image: url(cloud-pattern.gif);
   padding: 2em;
}

.era1-text-left {
   text-align: center;
   background-color:aliceblue;
   justify-content: center;
   align-content: center;
   margin: auto 10%;
   padding: 2em;
}

.era1-pics-right {
   display: grid;
   grid-template-columns: 1fr 1fr;
   grid-template-rows: 1fr 1fr;
   margin: auto;
}

.era1-pics-right img, .era2-pics img {
   margin: 5px;
}

.era2 {
   background-color: #242124;
   padding: 2em;
}

.era2-text, .yokota-text p {
   border: 3px solid #ff69b4;
   color: #d7feeb;
   margin: 1em auto;
   width: 75%;
   padding: 1.5em;
   text-align: center;
}

.era2-pics {
   text-align: center;
}

.yokota {
   display: flex;
   width: 60%;
   margin: 2em auto;
}

.yokota-text {
   justify-content: center;
   align-content: center;
   padding: 2em;
}

.yokota-pic {
   margin: auto;
}

/* CREDIT */

.credit, .credit a:link, .credit a:visited {
   background-color: #CEB1BE;
   color: #2D2D34;
   font-size: 0.75rem;
   text-align: center;
}

.credit a:hover {
   color: #B97375;
}

.second-credit {
   margin-top: -10px;
}


/* FOOTER */
footer {
   width: 100%;
   text-align: center;
   color: #2D2D34;
   background-color: #CEB1BE;
   padding: 1em 0;
   border-top: 3px solid #242124;
   font-weight: 700;
}

/* MOBILE 1200px */
@media (max-width: 1200px) {
   
   .era1 {
         flex-wrap: wrap;
   }
   
   .era1-text-left {
      margin-bottom: 2em;
   }

   .yokota {
      display: flex;
      flex-direction: column;
      width: 100%;
   }
}

/* MOBILE 1024px */

@media (max-width: 1024px) {

   nav ul {
      font-size: 1rem;
   }

   h2 {
      font-size: 2rem;
   }

   footer {
      font-size: .8rem;
   }

}

/* MOBILE BUTTON TOGGLE */

.btn-toggle {
   display: none;
   font-size: 2rem;
   padding-right: 2rem;
}

/* MOBILE 850px */

@media (max-width: 850px) {
   nav {
      display: flex;
      flex-direction: column;
      padding: 1em;
   }

   .logo-title {
      display: flex;
      align-items: center;
      width: 100%;
   }

   nav h1 {
      font-size: 2rem;
   }

   nav img {
      width: 10%;
   }

   .btn-toggle {
      display: block;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 2rem;
      padding-left: 1em;
   }

   .links {
      overflow: hidden;
      max-height: 0;
      flex-direction: column;
      text-align: left;
      gap: .5rem;
      margin-top: 1rem;
      width: 100%;
      transition: max-height 0.3s ease-out;
      font-weight: 500;
   }
   
   .links.active {
      max-height: 500px;
   }

   li {
      padding-bottom: 1em;
   }

   .era1-text-left, .era2-text, .yokota-text p {
      font-size: .90rem;
   }

   .era1-pics-right {
      display: flex;
      flex-direction: column;
   }

   .yokota {
      width: 100%;
   }
}