/* Page */

html,
body {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

[data-aos=appear-in] {
  opacity: 0;
  transition-property: opacity;
}

[data-aos=appear-in].aos-animate {
  opacity: 1;
}

.article__section {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 300;
  color: #000;
  line-height: 1.55;
}
.article__section h1,
.article__section h2,
.article__section h3,
.article__section h4,
.article__section h5,
.article__section p,
.article__section address {
  padding: 0;
  margin: 0;
  font-style: normal;
}
.article__section h2 {
  font-size: 26px;
  font-weight: 600;
  margin-top: -8px;
  padding-bottom: 35px;
}
.article__section strong {
  font-weight: 700;
}
.article__section strong.semi {
  font-weight: 600;
}
.article__logo {
  height: 32px;
  width: auto;
  margin: 0 auto;
  margin-bottom: 1em;
}
.article__header {
  padding-top: 60px;
  padding-bottom: 60px;
  font-size: 70px;
  line-height: 70px;
}
.article__headline {
  font-size: 70px;
  line-height: 70px;
  font-weight: 500;
  text-align: left;
}
@media screen and (max-width: 425px) {
  .article__header {
    padding-top: 60px;
    padding-bottom: 60px;
    font-size: 46px;
    line-height: 46px;
  }
  .article__headline {
    font-size: 46px;
    line-height: 46px;
  }
}
.article__publisher {
  font-size: 14px;
  text-transform: uppercase;
}
.article .text-block,
.article .article.article_inner {
  padding: 20px 0;
}
.article .block {
  margin-top: 60px;
}
.article .link {
  color: #ff8562;
  text-decoration: none;
}
.article .text {
  font-size: 20px;
  line-height: 1.55em;
}
@media screen and (max-width: 1200px) {
  .article .text {
    font-size: 18px;
  }
}
.article .text-align-center {
  text-align: center;
}
.article .image-container {
  max-width: 1300px;
  margin: 40px auto;
}
@media screen and (max-width: 700px) {
  .article .image-container {
    margin: 20px auto;
  }
}
.article .text-container {
  padding: 0 16px;
  max-width: 780px;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .article .text-container {
    max-width: 640px;
  }
}
@media screen and (max-width: 960px) {
  .article .text-container {
    max-width: 600px;
  }
}
.article .contacts {
  margin-bottom: 60px;
}

/* Fade in on scroll (replaces AOS) */

[data-aos=appear-in] {
  transition-duration: 0.5s;
  transition-timing-function: ease;
}

.page-link {
  text-decoration: none;
  color: inherit;
}

.lun-logo {
  display: flex;
  align-items: center;
}

.lun-logo__img {
  width: auto;
  height: 35px;
}

@media screen and (max-width: 500px) {
  .lun-logo__img {
    height: 25px;
  }
}

/* Title and hint above the chart */

.view {
  width: 100%;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.title {
  display: flex;
  justify-content: stretch;
}

.title__text {
  max-width: 330px;
  font-size: 42px;
  line-height: 1.1em;
  font-weight: 500;
  margin: 0;
  margin-left: 16px;
}

@media screen and (max-width: 767px) {
  .title__text {
    font-size: 25px;
  }
}

@media screen and (max-width: 425px) {
  .title__text {
    max-width: 280px;
  }
}

.title__logo {
  display: inline-block;
  margin-left: auto;
  margin-right: 16px;
  margin-top: 0;
  margin-bottom: auto;
  position: relative;
  top: 7px;
}

@media screen and (max-width: 767px) {
  .title__logo {
    display: none;
  }
}

.hint {
  margin-left: 16px;
  margin-right: 16px;
  margin-top: 12px;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.55em;
}

@media screen and (max-width: 767px) {
  .hint {
    margin-top: 6px;
    margin-bottom: 12px;
  }
}

.hint__hover {
  display: none;
}

.hint__click {
  display: inline;
}

@media (any-hover: hover) {
  .hint__hover {
    display: inline;
  }

  .hint__click {
    display: none;
  }
}

/* Kyiv chart */

.legend-container {
  overflow: hidden;
  position: relative;
}

.chart-container {
  width: 100%;
  padding: 10% 0;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 700px) {
  .chart-container {
    font-size: 12px;
  }
}

@media screen and (max-width: 500px) {
  .chart-container {
    font-size: 10px;
  }
}

.map {
  position: absolute;
  width: 100%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}

@media screen and (max-width: 768px) {
  .map {
    width: 100%;
    height: auto;
  }
}

.chart {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
}

.chart__col {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chart__col--bottom-aligned {
  align-items: flex-end;
}

.chart-logo {
  display: none;
}

@media screen and (max-width: 767px) {
  .chart-logo {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    margin-left: 16px;
  }
}

.river {
  width: 10%;
  margin-top: -8%;
  margin-right: calc(4% + 10px);
  padding-left: 1px;
  z-index: 0;
}

.river__section-1 {
  height: 40%;
  background-color: #9ab0c1;
}

.river__section-2 {
  position: relative;
  height: 25%;
  top: 0;
  width: 80%;
  left: 60%;
  background-color: #9ab0c1;
}

.river__section-3 {
  position: relative;
  top: -5%;
  height: 60%;
  background-color: #9ab0c1;
}

.river__fish {
  width: 80%;
  top: 60%;
  left: 15%;
  position: absolute;
}

/* District block */

.chart-block {
  display: inline-block;
  position: relative;
  padding: 1px;
}

.chart-block rect {
  transition: fill 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.chart-block__overlay {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.block-title {
  display: inline-block;
  z-index: 2;
  position: absolute;
  top: 0.3em;
  left: 0.5em;
  word-break: keep-all;
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
  padding: 5px;
  background-color: white;
  border: 1px solid black;
}

@media screen and (max-width: 500px) {
  .block-title {
    padding: 2px;
  }
}

.block-title__text {
  position: relative;
  top: -1px;
  padding: 0 2px;
}

.tooltip {
  pointer-events: none;
  position: absolute;
  font-size: 12px;
  line-height: 1.2em;
  color: black;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.tooltip--visible {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .tooltip {
    display: none;
  }
}

.tooltip--clipped-top,
.tooltip--clipped-bottom {
  border-bottom: 1px solid;
}

.tooltip--clipped-top::before,
.tooltip--clipped-bottom::before {
  content: '';
  top: 3px;
  left: -24px;
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 1px solid black;
  transform: rotate(-40deg);
}

.tooltip--clipped-bottom::before {
  transform: rotate(-130deg);
}

.tooltip--invisible {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

/* "Hover me" hint */

.hint-container {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
}

.hint-container--hidden {
  opacity: 0;
}

.hover-me {
  position: relative;
  left: 0px;
  top: 0px;
  width: 2.5em;
  height: 2.5em;
  animation: tip 2s infinite;
}

.hover-me__hand {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
}

@keyframes tip {
  0% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(0.5em, 0.5em);
  }
  30% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(0.5em, 0.5em);
  }
  60% {
    transform: translate(0, 0);
  }
}

/* Legend */

.legend {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-left: 2em;
  font-size: 14px;
  font-family: Roboto;
  font-weight: 300;
}

@media screen and (max-width: 768px) {
  .legend {
    position: static;
    font-size: 12px;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 1em;
  }
}

.legend__navigation {
  margin-bottom: 20px;
}

.breadcrumbs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.crumb-btn {
  padding: 5px 10px;
  margin: 2px;
  background: white;
  border: 1px solid black;
  outline: none;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  transition: all 0.2s;
}

.crumb-btn:first-child {
  margin-left: 0;
}

.crumb-btn:hover {
  background: white;
  border-color: rgb(83.5, 83.5, 83.5);
}

.crumb-btn:active {
  background-color: rgb(242.25, 242.25, 242.25);
}

.crumb-btn__text {
  height: 100%;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.crumb-btn__icon {
  display: inline-block;
  margin-left: 10px;
  height: 1em;
  vertical-align: middle;
  position: relative;
  width: 1em;
  top: -1px;
}

@media (any-hover: hover) {
  .crumb-btn__icon {
    display: none;
  }
}

.legend-table {
  border-spacing: 0;
}

.legend-table__item {
  line-height: 1.7em;
}

.legend-table__cell {
  margin: 0;
}

.legend-table__rect-wrapper {
  display: inline-flex;
}

.legend-table__name {
  display: inline-block;
  padding: 0 4px;
  font-weight: 200;
}

.legend-table__rect {
  margin-right: 5px;
  border: 1px solid black;
  height: 1.5em;
  width: 1.5em;
}

.legend-table__portion {
  text-align: right;
}

.legend-table__portion-text {
  font-weight: 500;
  margin-left: 0.5em;
}
