/* ======================== */
/* General
/* ======================== */
.tero-sep {
  flex: 1 0 0px;
}

/* ======================== */
/* Map
/* ======================== */
.tero-map {
  position: relative;
  overflow: hidden;
}

.tero-one-finger-zoom-message {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem;
  transition: all 0.3s ease-in-out;
  color: transparent;
  user-select: none;
}

.tero-one-finger-zoom-message.touch-scrolling {
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.tero-one-finger-zoom-message span {
  max-width: 200px;
}

.tero-map-surface {
  display: block;
}
.tero-map-surface.clickable {
  cursor: pointer;
}

.tero-credits {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  fontsize: 0.7rem;
  padding: 0 0.5em;
}

.tero-debugging-tools {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  padding: 0 0.5em;
}

.tero-popup {
  position: relative;
  padding: 5;
  background-color: white;
  bottom: 7px;
}

/* https://mrcoles.com/blog/callout-box-css-border-triangles-cross-browser/ */
.tero-popup-notch {
  position: absolute;
  bottom: -7px;
  left: 0;
  margin: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  border-left: 0;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
  border-bottom: 0;
  /* IE6 height fix */
  font-size: 0;
  line-height: 0;
}

.tero-popup-close-wrapper {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: black;
  justify-content: center;
  height: 18px;
  width: 18px;
  border-radius: 9px;
  cursor: pointer;
}

.tero-popup-close-wrapper i {
  color: white;
}

.tero-popup-anchor {
  width: 10px;
  height: 10px;
  opacity: 0;
}

/* ======================== */
/* A/B separator
/* ======================== */
/* don't override separator width (4px) */
.tero-a-b-separator {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: ew-resize;
  background-color: white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
  z-index: 1;
  user-select: none;
  width: 4px;
}

.tero-a-b-label {
  position: absolute;
  top: 0;
  padding: 0.3em 0.6em;
  font-size: 0.8rem;
  background-color: white;
}
.tero-a-b-label.left {
  right: 4px;
  border-bottom-left-radius: 5px;
  box-shadow: -2px 2px 4px 0 rgba(0, 0, 0, 0.24);
}
.tero-a-b-label.right {
  left: 4px;
  border-bottom-right-radius: 5px;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.24);
}

.tero-a-b-thumb {
  position: relative;
  top: 50%;
  background-color: white;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.24);
  width: 44px;
  left: calc(-44px / 2 + 4px / 2);
  padding: 14px 2px 10px;
  border-radius: 22px;
  text-align: center;
}

/* ======================== */
/* Control blocks
/* ======================== */
.tero-control-block {
  position: absolute;
  z-index: 3;
  border: 2px solid #ccc;
}

.tero-control-block.topRight {
  top: -2px;
  right: -2px;
}
.tero-control-block.bottomRight {
  bottom: -2px;
  right: -2px;
}
.tero-control-block.right {
  top: -2px;
  right: -2px;
  bottom: -2px;
}
.tero-control-block.topLeft {
  top: -2px;
  left: -2px;
}
.tero-control-block.bottomLeft {
  bottom: -2px;
  left: -2px;
}
.tero-control-block.left {
  top: -2px;
  left: -2px;
  bottom: -2px;
}

.tero-control-block.topRight .tero-control-item:not(:last-of-type),
.tero-control-block.bottomRight .tero-control-item:not(:last-of-type),
.tero-control-block.topLeft .tero-control-item:not(:last-of-type),
.tero-control-block.bottomLeft .tero-control-item:not(:last-of-type) {
  border-bottom: 1px solid #ccc;
}
.tero-control-block.left .tero-control-item,
.tero-control-block.right .tero-control-item {
  height: 100%;
}

/* ======================== */
/* Controls
/* ======================== */
.tero-control-basic {
  padding: 0.4em 0.8em;
  background-color: white;
}

.tero-control-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #ccc;
}

/* ======================== */
/* Sidebar
/* ======================== */
.tero-sidebar {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.tero-sidebar-icons-col {
  display: flex;
  flex-direction: column;
  width: 53px;
  transition: background 200ms linear;
  background-color: rgba(255, 255, 255, 0.8);
}
.tero-sidebar-icons-col:hover {
  background-color: white;
}

.tero-sidebar-icon {
  padding: 0.3em 0.4em 0.1em;
  font-size: 1.7em;
  text-align: center;
  cursor: pointer;
  color: black;
}
.tero-sidebar-icon.selected {
  background-color: #abe2fb;
  color: white;
}
.tero-sidebar-icon:hover {
  background-color: rgb(230, 230, 230);
}
.tero-sidebar-icon.selected:hover {
  background-color: rgb(122, 209, 249);
}

.tero-sidebar-contents-col {
  height: 100%;
  background: white;
  width: 0px;
  transition: width 200ms linear;
}
.tero-sidebar-contents-col.open {
  border-left: 2px solid #ccc;
  width: 300px;
}

.tero-sidebar-contents {
  height: 100%;
  opacity: 0;
  transition: opacity 100ms linear 200ms;
  overflow-x: hidden;
  overflow-y: auto;
}

.tero-sidebar-contents-col.open .tero-sidebar-contents {
  opacity: 1;
}

.tero-sidebar-tab {
  display: flex;
  flex-direction: column;
  padding: 0.6em 1.2em 0.6em 1.2em;
  height: 100%;
  width: 302px;
  display: none;
}
.tero-sidebar-contents-col.open .tero-sidebar-tab.selected {
  display: block;
}

.tero-sidebar-title-row {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  align-items: center;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1.2em;
}

.tero-sidebar-title {
  font-weight: bold;
  font-size: 1.4rem;
}

.tero-sidebar-close-icon {
  font-size: 1.4rem;
}

/* ======================== */
/* Legend
/* ======================== */
.tero-legend {
  max-width: 290px; /* rightControlWidth */
}

.tero-legend .tero-control-title {
  margin-bottom: 0.4em;
}

.tero-legend-items {
  font-size: 0.8rem;
}

.tero-legend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 3px;
}
.tero-legend-item.hidden {
  opacity: 0.5;
}
.tero-legend-item.clickable {
  cursor: pointer;
}

.tero-legend-item-label {
  flex: 1 0 0px;
  padding-left: 5px;
}

.tero-legend-item-solid {
}
.tero-legend-item-line {
  fill: none;
  stroke-width: 1.5;
}

.tero-legend-instructions {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 0.4em;
}

/* ======================== */
/* Tools
/* ======================== */
.tero-tools {
  width: 290px; /* rightControlWidth */
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
}

.tero-tools .tero-control-title {
  text-align: left;
  margin-right: 1em;
}

.tero-tools-icons {
  margin: 0 -4px;
}

.tero-tools-icon {
  cursor: pointer;
  margin: 0 4px;
}

/* ======================== */
/* Time control
/* ======================== */
.tero-time-control {
  width: 290px; /* rightControlWidth */
}

.tero-time-control-limit-labels {
  display: flex;
  flex-direction: row;
  font-size: 0.8rem;
  color: #ccc;
}

.tero-time-control.single-value .rc-slider-rail {
  background-color: #abe2fb;
}

/* ======================== */
/* Number display
/* ======================== */
.tero-number-display {
  width: 290px; /* rightControlWidth */
}

.tero-number-display-value {
  text-align: left;
  font-size: 1.2rem;
  font-variant-caps: small-caps;
}

.tero-number-display-value-sep {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #ccc;
  margin: 0 8px;
}

/* ======================== */
/* Free control
/* ======================== */
.tero-free-control {
  width: 290px; /* rightControlWidth */
}
