.glosaria {
  font-size: 1rem;
  display: grid;
  grid-template-areas: "search content";
  grid-template-columns: 50% 50%;
  grid-template-rows: 100%;
  max-height: 100vh;
  height: 100vh;
  width: 100%;
}

.glosaria .search {
  grid-area: search;
  background: #E03326;
  color: #FFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glosaria .search .filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.glosaria .search .title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 1rem 0;
}

.glosaria .content {
  grid-area: content;
  background: #FFF;
}

.glosaria .content .bracket__container {
  margin-bottom: 3rem;
}

.glosaria .search,
.glosaria .content {
  padding: 7rem 10% 4rem 10%;
}

.glosaria .filter {
  margin: 0.2rem 0.5rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.glosaria .filter.all {
  align-self: baseline;
  display: inline-block;
}

.glosaria .filter.active {
  border-bottom: solid 1px #FFF;
  font-family: 'Variable_Black';
}

.list span {
  font-size: 1.1rem;
  line-height: 1.2rem;
  text-transform: uppercase;
  z-index: 1;
}

.list {
  list-style: none;
  padding: 0;
  flex-grow: 2;
  overflow: auto;
}

::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}

/* Handle */
::-webkit-scrollbar-thumb {
  border: solid 1px #FFF;
  border-radius: 5px;
  background: #E03326;
}

.list .list-item {
  cursor: pointer;
  border-bottom: 1px solid #FFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.5rem;
  position: relative;
  margin-right: 25px;
}

.list .list-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  bottom: 0;
  background: #FFF;
  transition: all 1s ease;
}

.list .list-item img {
  height: 0.8rem;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.list .list-item.active {
  color: #E03326;
  font-family: 'Variable_Black';
}

.list .list-item.active::before {
  top: 0;
  bottom: 0;
}

.related__item_content .button {
  box-sizing: border-box;
  padding: 5% 10%;
}

.list .list-item.active img,
.related__item_content .button img {
  filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg);
  opacity: 1;
}


.related__item_content .button img {
  width: 80%;
}

.list .list-item:hover img {
  opacity: 1;
}

.glosaria .content .title {
  color: #E03326;
  border-radius: 3px;
  font-size: 1rem;
  margin: 0 1rem;
  position: relative;
  padding: 1rem 0;
}

.glosaria .content .title .author {
  display: block;
  color: #C1C3C6;
  text-align: left;
  font-size: 1rem;
  margin-top: 1rem;
}

.glosaria .related {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.glosaria .related .column {
  width: 49%;
}

related__item_content .column img {
  width: 100%;
}

.glosaria .related .column.right {
  height: 10vh;
}

.glosaria .related__item {
  background: #E03326;
  position: relative;
  margin-bottom: 0.5rem;
}

.glosaria .related__item .cover {
  object-fit: cover;
  filter: grayscale(1);
  height: 100%;
  width: 100%;
}

.glosaria .content .back__btn {
  display: none;
}

.glosaria .related__item:hover .related__item_content {
  opacity: 1;
}

.related__item_content p {
  color: #FFF;
  grid-area: title;
  font-size: 2rem;
  text-transform: uppercase;
  padding: 0 5%;
  box-sizing: border-box;
  text-align: center;
}

.related__item_content .button {
  align-items: flex-end;
  box-sizing: border-box;
  grid-area: button;
  display: flex;
  justify-content: flex-end;
  padding: 0 5%;
}

.related__item_content .button a {
  background: #FFF;
}

@media screen and (min-width: 769px) {

  .glosaria {
    overflow: hidden;
  }

  .related__item_content {
    background: rgba(224, 51, 38, 0.9);
    bottom: 0;
    display: grid;
    grid-template-areas:
      "."
      "title"
      "button";
    grid-column: 100%;
    grid-template-rows: 20% 40% 20%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity ease-out 0.5s;
    opacity: 0;
  }

  .glosaria .content {
    overflow-y: auto;
  }
}

@media screen and (max-width: 768px) {
  .glosaria {
    font-size: 1rem;
    display: grid;
    grid-template-areas: "search" "content";
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    max-height: 1000vh;
    height: auto;
    width: 100%;
    margin-bottom: 9rem;
  }

  .glosaria .search {
    height: 100%;
    padding-top: 5rem;
  }

  .glosaria .content {
    display: none;
  }

  .glosaria .content .back__btn {
    color: #E03326;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .glosaria .content.visible {
    display: block;
  }

  .glosaria .search.hidden {
    display: none;
  }

  .glosaria .content .title {
    font-size: 1.1rem;
    margin: 0 -1.3rem;
  }

  .glosaria .related {
    flex-direction: column;
  }

  .glosaria .related .column {
    width: 100%;
  }

  .related__item_content p {
    font-size: 1rem;
  }

  .related__item_content {
    align-items: center;
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: space-between;
  }

  .related__item_content p {
    color: #E03326;
    text-align: left;
    font-size: 0.8rem;
    padding: 0;
  }

  .glosaria .related__item {
    background: #FFF;
  }

  .related__item_content .button a {
    width: 2rem;
  }


}