:root {
  --font-family: 'Darker Grotesque', sans-serif;

  --slider-offset: 50px;
  --slider-ticks-num: 2;
  --slider-background-size: 25% 1rem, 100% 0.25rem;
  --slider-color: #13c8c8;
}

.mobile-hidden { display: none; }
@media screen and (min-width: 480px) {
  .mobile-hidden { display: unset; }
  .mobile-only { display: none; }
}

.sample-container {
  text-align: center;
  font-family: var(--font-family);
  margin-bottom: 50px;
}

/* --- Resets --- */
body {
  margin: 0;
}

/* hack to remove mobile squarespace padding */
.sqs-block.code-block {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* --- Utilities --- */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.h-100pct {
  min-height: 100%;
}

.inline-block {
  display: inline-block;
}

.va-bottom {
  vertical-align: bottom;
}

.bold {
  font-weight: bold;
}

.upcase {
  text-transform: uppercase;
}

.pointer {
  cursor: pointer;
}

/* ----------- Controls ------------- */

.controls-container {
  font-weight: 500;
  min-height: 50px;
}

@media screen and (max-width: 480px) {
  .controls-container {
    font-size: 0.9rem;
    min-height: 80px;
  }
  .likely-voter-control {
    margin-top: 12px;
    display: inline-block;
  }

  #slider-container {
    min-height: 90px;
  }
}

#slider-container {
  overflow-x: hidden;
}

.graph-data-controls {
  font-family: var(--font-family);
  margin: 0 auto 10px;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  transition: background-color 0.2s;
}

.fixed.graph-data-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  background-color: #f6f7fa;
  border-bottom: 1px solid #eaebee;
}

/* Styled select dropdown */
/* inspired by https://www.filamentgroup.com/lab/select-css.html */
.select-css {
  display: inline-block;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--slider-color);
  line-height: 1.2;
  padding: .2rem .3rem;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-bottom: 2px solid var(--slider-color);
  border-radius: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
}

.select-css::-ms-expand {
  display: none;
}

.select-css:hover {
  border-color: #d7dcdf;
}

.select-css:focus {
  outline: none;
}

.select-css option {
  font-weight: normal;
}

/* CSS triangles */
/* inspired by https://css-tricks.com/snippets/css/css-triangle/ */
.arrow {
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
}

.arrow-right {
  margin-left: 20px;
  border-left: 0.5rem solid var(--slider-color);
}

.arrow-right.disabled {
  border-left: 0.5rem solid #d7dcdf;
}

.arrow-left {
  margin-right: 20px;
  border-right: 0.5rem solid var(--slider-color);
}

.arrow-left.disabled {
  border-right: 0.5rem solid #d7dcdf;
}
