:root {
  --background: hsl(217, 66%, 54%);
  --background-dark: hsl(217, 66%, 41%);
  --background-medium: hsl(217, 76%, 63%);
  --background-light: hsl(217, 86%, 75%);

  --white: #fff;
  --grey: #aaa;
  --dark-grey: #555;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 70px 0px 25px 0px;
  padding: 0;
  background: #f5f5f5;
  font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
}

header {
  display: flex;
  background: linear-gradient(to bottom, var(--background), var(--background) 75%, #ffffff00);
  padding: 10px;
  color: white;
  align-items: center;
  padding-bottom: 50px;
  width: 100%;
  top: 0px;
  position: fixed;
  z-index: 999;
}

p {
  text-indent: 0.5in;
  line-height: 1.5em;
  font-size: 1.15em;
}

.crest, .crest-words {
  margin-right: 10px;
  padding: 2px;
  background: white;
}

.crest-words {
  display: none;
}

headline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 50px));
  border: 3px solid var(--background);
  height: calc(80vh - 100px);
  width: 70vw;
  padding: 10px;
  overflow: scroll;
  border-radius: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px );
  grid-gap: 50px 5px;
  padding: 10px;
  justify-content: center;
}

article {
  width: calc(95vw - 360px);
  padding: 10px;
  border-radius: 10px;
  margin: 10px 5vw 0 360px;
}

.no-sidebar {
  width: calc(80vw);
  margin: 10px 10vw 0 10vw;
}

.center {
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
}

.center-text {text-align: center;}
.headline-table tr td ul li {margin-bottom: 20px;}

a, a:link, a:visited {color: var(--background)}
a:hover {color: var(--background-medium)}
a:active {color: var(--background-light)}

a.black, a.black:link, a.black:visited {color: white;text-decoration: none} */
a.black:hover {color: var(--grey);}
a.black:active {color: var(--dark-grey);}

span.nav, a.nav {
  height: 100%;
  display: block;
  padding: 5px;
  color: white;
  margin-right: 25px;
  cursor: pointer;
}
i.menu {
  margin-left: 10px;
  transition: 0.2s;
  display: inline-block;
}
i.menu.down {
  transform: translate(0px, 5px);
  transition: 0.2s;
}
span.nav.first {margin-left: 50px;}

header a {
  text-decoration: none;
}

ul.nav {
  position: absolute;
  top: 140px;
  transition: 0.2s;
  background: var(--background);
  padding: 40px 10px 10px 50px;
  border-radius: 0px 0px 10px 10px;
  border-top: none;
  color: white;
  opacity: 0;
  display: none;
}
ul.nav.show {
  top: 44px;
  transition: 0.2s;
  opacity: 1;
  display: block;
}

ul.nav li {
  line-height: 2em;
}

header a:not(.tanslate):hover {
  color: white
}

header a.tanslate {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 3px solid var(--background-dark);
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
}
header a, header a:link, header a:visited {color: var(--white)}
header a.tanslate:hover {color: white}
header a.tanslate:active {color: white}

a.active{background: var(--background-medium)}

.grid a {
  font-size: 1.5em;
  display: block;
  width: 400px;
  margin: auto;
  text-align: center;
}

article img {
  width: 100%;
  border: 3px solid var(--background-dark);
  border-radius: 10px;
}

hr {
  border: 0px none transparent;
  border-bottom: 3px solid var(--background);
  overflow: visible;
  width: calc(100% - 34px);
}

hr::before, hr::after {
  content: ' ';
  width: 11px;
  height: 11px;
  display: block;
  border: 3px solid var(--background);
  float: left;
}

hr::before {
  transform: translate(-17px, -7px) rotate(45deg);
}
hr::after {
  transform: translate(17px, -7px) rotate(45deg);
  float: right;
}

side-bar {
  float: left;
  background: var(--background);
  position: fixed;
  top: 175px;
  padding: 20px;
  width: 350px;
  font-size: 1.15em;
  /* border: 3px solid var(--background-dark); */
  border-radius: 0px 10px 10px 0px;
  color: white;
}

side-bar ul li {
  margin-bottom: 25px;
  line-height: 1.5em;
}

.welcome {
  height: 250px;
  margin: auto;
  display: block;
}

footer {
  background: var(--background);
  position: fixed;
  bottom: 0px;
  width: 100%;
  padding: 15px;
  height: 50px;
  color: white;
}

@media only screen and (max-width: 600px) {
  side-bar {
    float: none;
    width: 100%;
    margin: 0px;
    border-radius: 0px;
    top: unset;
  }
  article {
    width: calc(100vw - 20px);
    margin: 10px;
  }
  .crest, .title {
    display: none;
  }
  .crest-words {
    display: block;
  }
  .grid a {
    font-size: 1em;
  }
  .welcome {
    width: 100%;
    height: unset;
  }
}