:root {
  --white: #ffffff;
  --black: #000000;
  --dark-green: #667a0b;
  --medium-green: #88a20e;
  --dark-yellow: #ebcc00;
  --medium-yellow: #f7eb99;
  --color-col: #FFCD00;
  --color-ecu: #ED1C24;
  --color-gua: #4997D0;
  --dark-gray: #222222;
  --medium-gray: #666666;
  --light-gray: #999999;
  --thin-gray: #dedede;
  --open-sans: "Open Sans", sans-serif;
}

html,
body {

}

html {

}

body {
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4em;
  color: var(--black);
}

.no-scroll {
  overflow: hidden !important;
}

p a {
  font-weight: 500;
  color: var(--medium-green);
}

p.chart-title {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4em;
  text-align: center;
  color: var(--black);
}
p.chart-subtitle {
  font-size: 18px;
  line-height: 1.4em;
  text-align: center;
  color: var(--medium-gray);
  margin-top: 0.5rem;
}

/* Filters */
.select {
  width: 100%;
}
.select .big-icon {
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  z-index: 1;
}
.select .big-icon img {
  width: 50px;
}
.select select {
  font-family: var(--open-sans);
  width: 100%;
  padding-left: 4rem;
  border-radius: 100px;
}
.select select.is-active, .select select.is-focused, .select select:active, .select select:focus {
  border-color: var(--medium-green);
}
.select:not(.is-multiple)::after {
  border-color: var(--medium-green);
}

/* Chart */
.axis-line {
  fill:none;
  stroke:#DEDEDE;
  stroke-miterlimit:10;
}
.axis-title {
  font-weight: 600;
  font-size: 18px;
  fill: var(--light-gray);
}
.axis-tip {
  font-size: 16px;
  fill: var(--medium-gray)
}
.axis-annotation {
  font-size: 10px;
}

.bubble {
  scale: 0;
  outline: 0;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: all 300ms ease-out;
  -webkit-transition: all 300ms ease-out;
  -moz-transition: all 300ms ease-out;
  -o-transition: all 300ms ease-out;
}
.bubble.active {
  scale: 1;
}
.bubble:hover {
  scale: 1.1;
}
.bubble.col {
  fill:#FFCD00;
  fill-opacity:0.6;
  stroke:#FFCD00;
}
.bubble.ecu {
  fill:#ED1C24;
  fill-opacity:0.6;
  stroke:#ED1C24;
}
.bubble.gua {
  fill:#4997D0;
  fill-opacity:0.6;
  stroke:#4997D0;
}

.legend {

}
.legend.tot  circle {
  fill:var(--black);stroke:var(--black);stroke-miterlimit:10;
}
.legend.col  circle {
  fill:var(--color-col);stroke:var(--color-col);stroke-miterlimit:10;
}
.legend.ecu circle {
  fill:var(--color-ecu);stroke:var(--color-ecu);stroke-miterlimit:10;
}
.legend.gua circle {
  fill:var(--color-gua);stroke:var(--color-gua);stroke-miterlimit:10;
}
.legend .name {
  
}
.legend .count {
  font-weight: 700;
  fill: var(--white);
}


/* Tooltip */
.tippy-box {
  background-color: var(--dark-green);
}
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--dark-green);
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--dark-green);
}
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
  border-left-color: var(--dark-green);
}
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
  border-right-color: var(--dark-green);
}
.tippy-content {
  text-align: center;
}
p.tt-title {
  color: var(--dark-yellow)
}
p.tt-value {
  font-weight: 500;
  color: var(--white);
}


/* Modal */
.blocker {
  z-index: 10;
}
.modal {
  max-width: 100%;
  width: 850px;
  padding: 1.5rem;
  background-image: url(../media/images/palm-bg.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1em;
  padding: 5px 14px;
  color: var(--white);
  background-color: #ba0808;
  border-radius: 100px;
}
.for-country > .column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ctry img {
  height: 100px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.country {
  font-weight: 700;
  font-size: 20px;
  line-height: 1em;
  color: var(--black);
}
.year {
    line-height: 1.5em;
  color: var(--medium-gray);
}
.info-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5em;
  color: var(--medium-gray);
}
.info-value {
  font-weight: 600;
  color: var(--black);
}
.resources {
  display: flex;
}
.affres {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.affres:not(:first-child) {
  margin-left: 1.5rem;
}
.affres img {
  height: 50px;
}
.affres span {
  font-weight: 500;
  font-size: 12px;
  line-height: 1em;
  padding: 3px 12px 3px;
  color: var(--white);
  border-radius: 100px;
  background-color: var(--black);
  margin-top: 5px;
}


.chart-footer {
  font-size: 14px;
}

/* Credits */
#credits_modal {
  padding-bottom: 8rem;
}
.credits-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 2rem;
}
.credits-list {
  font-size: 14px;
}
.credits-list li {
  
}
.credits-list li:not(:first-child) {
  margin-top: 1.5rem;
}
.credits-list li span {
  font-weight: 700;
}
.palm-field {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  object-fit: cover;
  object-position: top;
}


/* Mobile */
@media screen and (max-width: 767px) {
  p.chart-title {
    font-size: 22px;
    line-height: 1.2em;
  }
  p.chart-subtitle {
    font-size: 16px;
  }
  .axis-title {
    font-size: 14px;
  }
  .axis-tip {
    font-size: 12px;
  }
  .axis-annotation {
    font-size: 10px;
  }
  .legend .name {
    font-size: 12px;
  }
  .legend .count {
    font-size: 12px;
  }
  .modal {
    padding: 1rem;
  }
  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 12px;
  }

  #credits_modal {
    padding-bottom: 7rem;
  }
  .palm-field {
    height: 7rem;
  }
}