/*
============
BASE CSS
============
*/

@import url('/base.css');


/*
========
STYLES
========
*/

.banner-background {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 100%), url("/images/subpages/encyclopedia-banner.jpg");
}



/*
========
HEADER
========
*/

.header-section {
  padding-top: 4rem;
}

.category-selection {
  width: 100%;
  max-width: 600px;
  padding-top: 1rem;
}

.category-titles {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.category-title {
  width: 33.33%;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

@media screen and (min-width: 400px) {
  .category-title {
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 440px) {
  .category-title {
    font-size: 0.9rem;
  }
}


.category-title:hover {
  color: var(--color-logo-blue-dark);
}

.selection-slider {
  width: 100%;
  height: 2px;
  background-color: var(--color-gray-light);
  margin: 0.6rem 0;
  position: relative;
  overflow: visible;
}

.selection-indicator {
  width: 33.33%;
  height: 4px;
  background-color: var(--color-logo-blue-dark);
  position: absolute;
  top: -1px;
  left: 0;
  transition: var(--transition-category-selection-indicator);
}



/*
=============
ARTICLES
=============
*/


.article-section {
  padding: 0;
  padding-top: 2rem;
  padding-bottom: 6rem;
}


/* Article */

.article {
  width: 100%;
  padding: 0 0.6rem;
  padding-top: 2rem;
  transition: var(--transition-article-background);
}

.article.open {
  background-color: var(--color-background-darker);
}

.article:hover {
  background-color: var(--color-background-darker);
}

@media screen and (min-width: 800px) {
  .article {
    padding: 0 1rem;
    padding-top: 2rem;
  }
}

.article-center {
  width: 100%;
  max-width: var(--max-width-section-content);
  margin: 0 auto;
}


/* Article Header */

.article-header {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.article-image-and-title-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.article-header-image {
  width: 100%;
  object-fit: contain;
  cursor: pointer;
}

.article-title-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.article-title {
  padding-top: 1rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-logo-blue-dark);
  cursor: pointer;
}

.article-category-label {
  padding-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-gray);
}

.article-intro {
  padding-top: 0.6rem;
}


@media screen and (min-width: 600px) {
  .article-image-and-title-container {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .article-header-image {
    width: 50%;
    height: 160px;
    object-fit: cover;
  }

  .article-title-container {
    width: 50%;
    padding-top: 0.2rem;
    padding-bottom: 0.6rem;
  }

  .article-title {
    padding-top: 0rem;
  }
}


@media screen and (min-width: 1100px) {
  .article-header {
    max-width: none;
    flex-direction: row;
    gap: 1rem;
  }

  .article-image-and-title-container {
    width: 50%;
  }

  .article-header-image {
    height: 140px;
  }

  .article-intro {
    width: 50%;
    padding: 0;
  }
}



/* Article Content */

.article-content-container {
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: var(--transition-article-content);
}

.article-content {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 1rem;
}


@media screen and (min-width: 1100px) {
  .article-content {
    padding-left: 1rem;
  }
}


.single-image-container {
  text-align: center;
  padding-bottom: 1rem;
}

.single-image-container img {
  width: 95%;
  max-width: 400px;
  max-height: 240px;
  object-fit: cover;
}


.text-and-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
}

.text-and-image-container img {
  width: 100%;
  object-fit: cover;
}

.text-block h5 {
  font-size: 1.1rem;
  color: var(--color-logo-blue-dark);
  font-weight: normal;
}

.text-block p {
  padding-bottom: 1rem;
}


@media screen and (min-width: 1000px) {
  .text-and-image-container {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .text-and-image-container .text-block {
    width: 50%;
  }

  .text-and-image-container img {
    width: 50%;
  }
}

.list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.3rem 0;
  max-width: 800px;
}

.list-item-icon {
  padding: 0 0.4rem;
}

.list-item-text {
  flex: 1;
  text-align: left;
}

.indented {
  padding-left: 1.4rem;
}

/* Article Footer */

.article-footer {
  width: 100%;
  padding-top: 0.6rem;
  padding-bottom: 0.8rem;
  padding-right: 1.2rem;
  border-bottom: 1px solid var(--color-gray-light);
}

.toggle-article-content {
  width: fit-content;
  margin-left: auto;
}

.article-toggle {
  width: fit-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  cursor: pointer;
}

.article-toggle p {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-logo-blue-dark);
}

.article:not(.open) .article-toggle.close {
  display: none;
}

.article.open .article-toggle.open {
  display: none;
}


.article.notshown {
  display: none;
}

