a {
  text-decoration: none;
}

img {
  width: 100%;
  vertical-align: bottom;
}

figure {
    margin: 0;
}

/*body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3000px;
}*/

body.noScroll {
  overflow: hidden;
}

.control-panel {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;
}

.bar {
  position: fixed;
  top: -48px;
  left: 0;
  width: 100%;
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  overflow: hidden;
  z-index: 2;
  transition: height ease .3s,
              top ease .3s;
}

.bar.visible {
  top: 0;
}

.bar.expanded {
  height: 100%;
}

.bar.expanded:not(.visible) {
  height: calc(100% + 48px);
}

.bar.expanded:not(.visible) nav {
    transform: translateY(48px);
}

.chapters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 720px;
  height: 100vh;
  margin: auto;
}

.chapters nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 8px;
}

.chapter {
  width: 50%;
  padding: 0 8px;
  padding-top: 8px;
}

.chapter:hover {
    cursor: pointer;
}

.chapter.ativo {
    pointer-events: none;
    background: #eeeeee;
}

.chapter-name {
    font-family: "Flama";
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    line-height: 48px;
    color: #212121;
}

.expand {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    color: #fff;
    background: transparent;
    transition: color ease .3s;
}

.expand.dark {
    color: #000;
}

.expand:hover {
    cursor: pointer;
}

.expand .fa {
    font-size: 24px;
}

@media(min-width: 480px) {
  .chapter {
    width: 25%;
    padding-top: 8px;
  }
}

@media(min-width: 1024px) {
  .bar {
    height: 48px;
    transition: height ease .3s,
                top ease .3s;
  }
  .chapters {
    height: initial;
  }
  .chapter {
    padding-top: 16px;
    transform: translateY(-123px);
    transition: margin-top ease .3s,
                background ease .3s;
  }
  .chapter:hover {
    background: #eeeeee;
  }
  .expand {
    display: none;
  }
  .bar:hover {
    height: 170px;
  }
  .bar:hover:not(.visible) {
    top: 0;
  }
  .bar:hover .chapter {
    margin-top: 123px;
  }
}

/*.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity ease .3s;
    opacity: 1;
    filter: blur(5px);
}

.masthead:hover .overlay {
    filter: blur(5px);
}*/
