@import url('https://fonts.googleapis.com/css2?family=Merriweather:opsz@18..144&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* variables */
:root {
  
}

h1, article header h2, section h2, article .body, .merriweather-font {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

#navcontainer > a, .roboto-font {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

#pageslist, .open-sans-font {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

html {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  background-color: white;
}

section {
  clear: both;
  margin-bottom: 3%;
}

h1 {
  position: relative;
  font-size: 6em;
  font-weight: bold;
  letter-spacing: 4px;
  text-align: center;
  color: white;
  padding-bottom: 18px;
}

h1::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  border-bottom: 8px solid rgb(206,169,100);
  margin: 0 auto;
}

p, ul, ol {
  margin-top: 0;
}

ol > li > ul {
  list-style-type: disc;
}

ol > li::marker {
  font-weight: bold;
}

hr {
  border-top: 1px solid grey;
  margin: 2em 10%;
}

img, iframe {
  width: 100%;
}

button {
  cursor: pointer;
  padding: 0.5em;
  margin: 0.5em;
}

header#banner {
  background-image: url('Word_detective_at_work.png');
  background-size: cover;
  background-position: center 6%;
  background-repeat: no-repeat;
  /* darken image for better text readability */
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: darken;
  padding: 12em 4em;
}

div#line {
  display: block;
  width: 94%;
  height: 1px;
  background-color: black;
  opacity: 0.15;
  margin: 9px auto;
}

#navcontainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

#navcontainer a {
  display: inline-block;
  text-decoration: none;
  margin: 0;
}

#navcontainer > a {
  font-weight: 500;
  font-size: 1.25em;
  letter-spacing: 1.5px;
  color: white;
  padding: 0.8em 1.4em;
}

#navcontainer.scrolled {
  background-color: white;
}

#navcontainer.scrolled a {
  color: #6a6a6a;
}

#navcontainer.scrolled #pageslist a:hover {
  color: #212121;  
}

#navcontainer.scrolled > a {
  color: rgb(206,169,100);
}

#navcontainer.scrolled a.active {
  color: #212121;
}

#pageslist {
  float: right;
  list-style-type: none;
  margin: 0;
  padding: 0.5em;
  /* overflow: hidden; */
}

#pageslist li {
  display: inline-block;
  position: relative;
  padding: 0.625em 0.75em;
}

#pageslist a {
  color: rgba(255,255,255,0.87);
}

#pageslist a:hover {
  color: white;
}

#pageslist a.active {
  color: white;
  font-weight: bold;
}

#pageslist div {
  position: absolute;
  top: 9px;
  left: -4px;
  color: #9e9e9e;
}

article {
  line-height: 1.56;
  background-color: white;
  margin-bottom: 3%;
  overflow: hidden;
}

article header h2 {
  font-size: 1.5em;
  font-weight: bold;
  color: rgb(133, 114, 81);
  text-align: center;
}

/*article header h2 {
  margin: 0.4em 0 1em;
  padding: 0 0.6em;
}*/

article .body {
  color: #212121;
  padding: 0 0.6em;
}

article .body h2 {
  font-size: 1.25em;
  margin: 1em 0;
}

article .body h3 {
  font-size: 1.1em;
  font-weight: normal;
  margin-top: 1em;
  margin-bottom: 0.4em;
}

section h2 {
  font-size: 4em;
  font-weight: bold;
  line-height: 1.38;
  letter-spacing: 2px;
  color: rgb(217, 217,217);
  background-color: #827153;
  text-align:center;
  padding: 0.375em;
  margin: 0;
}

@media only screen and (min-width : 768px) {
  
  article {
    width: 46%;
  }
  
  article:first-of-type {
    float: left;
    margin-left: 3%;
  }
  
  article:last-of-type {
    float: right;
    margin-right: 3%;
  }
  
}
  
@media only screen and (max-width : 767px) {
  
  section h2 {
    font-size: 3.5em;
  }
  
}

@media only screen and (max-width : 639px) {
  
  #banner {
    padding: 10em 8em;
  }
  
  h1 {
    font-size: 5em;
    letter-spacing: 3px;
  }
  
  section h2 {
    font-size: 3em;
  }
  
}

@media only screen and (max-width : 499px) {
  
  #banner {
    background-position: 30% 10%;
  }
  
  h1 {
    font-size: 4.5em;
    letter-spacing: 2px;
  }
  
  section h2 {
    font-size: 2.5em;
  }
  
}

@media only screen and (max-width : 399px) {
  
  h1 {
    font-size: 3.5em;
    letter-spacing: 1px;
  }
  
  section h2 {
    font-size: 2em;
  }
  
}