/* General styles */
a {
  text-decoration: none;
  color: #3b7fbe;
}

a:visited {
  color: #475396;
}

a:active, a:hover {
  color: #c45f25;
}

/* Header styles */
header {
  background: linear-gradient(to top, #fff0, white 10px);
  text-align: center;
}

#hamburger {
  display: none;
}

header h1 {
  font: 40px 'Times new roman', Times, serif;
  color: #404040;
}

nav {
  max-width: 800px;
  margin: auto;
  font: 15px 'Rubik', "helvetica neue", helvetica, arial;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #8C8C8C;
  border-bottom: 1px solid #8C8C8C;
}

nav>a {
  display: inline-block;
  padding: 10px 1em;
}

nav>a,
nav>a:visited {
  color: #404040;
}

nav>a:hover {
  color: #c45f25;
}

/* Main styles */
main {
  max-width: 800px;
  margin: auto;

  font: 16px 'Rubik', Rubik, 'helvetica neue', helvetica, arial, sans-serif;
}

#filter-bar {
  height: 1em;
  width: 100%;
  margin: 0.5em;
  text-align: center;
}

section > h2 {
  color: #404040;
  text-align: center;
  margin-top: 1em;
}

article {
  background-color: white;
  border: 1px solid #8C8C8C;
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 10px;
  padding: 30px;
}

article h1,
article h2 {
  margin-top: 0;
  margin-bottom: 0.2em;
  color: #404040;
}
article h1 {
  font-size: 1.5em;
  font-weight: 500;
}
article h2 {
  font-size: 1.2em;
  font-weight: 400;
}

img.anchor {
  visibility: hidden;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  cursor: pointer;
}
img.anchor:hover {
  filter: invert(38%) sepia(68%) saturate(626%) hue-rotate(338deg) brightness(98%) contrast(91%);
}
h1:hover img.anchor {
  visibility: visible;
}

article img {
  width: 200px;
  align-self: flex-start;
}

article>div {
  flex-grow: 1;
  margin-right: 20px;
}

article .blurb {
  font-weight: 500;
}

.tag-container {
  text-align: right;
}

.tag {
  display: inline-block;
  background-color: #F2F2F2;
  color: #404040;
  /* border: solid #8C8C8C thin; */
  border-radius: 5px;
  margin-right: 5px;
  padding: 0 5px;
  cursor: pointer;
}
.tag:hover, .tag.current-filter {
  background-color: #c45f25;
  color: white;
}

@media screen and (max-device-width: 600px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
  }
  #hamburger {
    display: block;
    position: fixed;
    right: 28px;
    top: 22px;
    width: 60px;
    cursor: pointer;
  }
  header h1 {
    font-size: 40px;
    letter-spacing: 0.1em;
  }
  nav {
    /* display: none; */
    margin-top: 0;
    margin-bottom: 15px;
    border: none;
    height: 0;
    overflow: hidden;
    transition: height 250ms, margin-top 600ms;
  }
  nav.open {
    /* display: block; */
    height: 100vh;
    margin-top: 30vh;
  }
  nav>a {
    display: block;
    font-size: 48px;
    padding: 10px 0;
    border: none;
  }
  main {
    margin: 110px 20px 20px 20px;
    max-width: unset;
  }
  #filter-bar {
    font-size: 30px;
  }
  section>h2 {
    font-size: 40px;
    margin-bottom: 10px;
  }
  article {
    margin-top: 25px;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-width: 5px;
    font-size: 32px;
    line-height: 1.2em;
  }
  article img {
    width: 100%;
    margin: auto;
  }
  article > div {
    box-sizing: border-box;
    padding: 0 30px 30px;
    width: 100%;
    text-align: left;
  }
  article h1 {
    font-size: 44px;
    text-align: center;
  }
  article h2 {
    font-size: 36px;
    text-align: center;
  }
  img.anchor { display: none; }
  article .blurb {
    font-size: 32px;
    text-align: center;
  }
  .tag-container {
    text-align: center;
    margin-bottom: 0;
  }
}