html,
body {
  overflow: hidden;
}
body {
  background-color: #d9d9d9;
}
#main-contents {
  position: relative;
  width: 100%;
  height: 50%;
  flex-grow: 2;
}
#map-container {
  display: none;
  position: relative;
  overflow: hidden;
  width: calc(100% - var(--mapMargin) - var(--mapMargin));
  height: calc(100% - var(--mapMargin) - var(--mapMargin));
  margin: var(--mapMargin) auto;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.2);
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
.ready #map-container {
  display: block;
}
#map-container.scrolling {
  pointer-events: none;
}

#top-bar {
  position: absolute;
  overflow: hidden;
  top: 0px;
  left: var(--sideW);
  width: calc(100% - var(--sideW) - var(--scrollWH));
  height: var(--topH);
}
.touch #top-bar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: scroll;
  overflow-y: hidden;
}
.touch #top-bar::-webkit-scrollbar {
  display: none;
}

#side-bar {
  position: absolute;
  overflow: hidden;
  top: 100px;
  left: 0px;
  width: var(--sideW);
  height: calc(100% - var(--topH) - var(--scrollWH));
}
.touch #side-bar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}
.touch #side-bar::-webkit-scrollbar {
  display: none;
}
#table-main-contents {
  position: absolute;
  overflow: hidden;
  top: var(--topH);
  left: var(--sideW);
  width: calc(100% - var(--sideW) - var(--scrollWH));
  height: calc(100% - var(--topH) - var(--scrollWH));
}
.touch #table-main-contents {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow: scroll;
}
.touch #table-main-contents::-webkit-scrollbar {
  display: none;
}
.table {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-size: 12px;
  line-height: 13px;
}
.table .tr {
  display: flex;
  width: 100%;
  height: 100%;
}
.table .th {
  font-weight: 400;
}
.table .th,
.table .td {
  display: flex;
  width: 100%;
  height: 100%;
  color: #333;
  padding: 0px;
}

#table-head {
  position: absolute;
  top: 0px;
  left: 0px;
  width: var(--sideW);
  height: var(--topH);
  z-index: 2;
}
#table-head .factors,
#table-head .outcomes {
  position: absolute;
  bottom: 0px;
  font-size: 11px;
  color: #333;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  padding-top: 6px;
  border-top: solid 1px rgba(0, 0, 0, 0.1);
}
#table-head .factors {
  left: 0px;
  width: 100%;
  height: 20px;
}
#table-head .outcomes {
  left: var(--sideW);
  width: 98px;
  height: 20px;
  transform-origin: -11px bottom;
  transform: rotate(-45deg);
  padding-right: 10px;
  margin-left: 11px;
  background-color: #f2f2f2;
}
#table-head .table-name {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0px;
  left: 10px;
  height: 73px;
}
#table-head .table-name .subject {
  font-size: 20px;
  line-height: 20px;
  color: #333;
  font-weight: 900;
  margin-bottom: 2px;
}
#table-head .table-name .subtitle {
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mainColor);
}

#map-container .top-shadow {
  pointer-events: none;
  position: absolute;
  top: var(--topH);
  left: 0px;
  width: calc(100% - var(--scrollWH));
  height: 10px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: 2;
}
#map-container .left-shadow {
  pointer-events: none;
  position: absolute;
  top: 0px;
  left: var(--sideW);
  height: calc(100% - var(--scrollWH));
  z-index: 2;
}
#map-container .left-shadow .top-container {
  overflow: hidden;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 150px;
  height: var(--topH);
}
#map-container .left-shadow .bottom {
  position: absolute;
  top: 100px;
  left: 0px;
  width: 10px;
  height: calc(100% - var(--topH));
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}
#map-container .left-shadow .top-container .top {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 10px;
  height: 200px;
  transform-origin: left bottom;
  transform: rotate(45deg);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}
#map-container .right-shadow {
  pointer-events: none;
  position: absolute;
  top: 0px;
  right: var(--scrollWH);
  width: 10px;
  height: calc(100% - var(--scrollWH));
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: 2;
}
#map-container .bottom-shadow {
  pointer-events: none;
  position: absolute;
  bottom: var(--scrollWH);
  left: 0px;
  width: calc(100% - var(--scrollWH));
  height: 10px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

#side-bar .table {
  height: 100%;
}
#side-bar .th {
  cursor: pointer;
  box-sizing: border-box;
  align-items: center;
  border-top: solid 1px rgba(0, 0, 0, 0.07);
}
#side-bar .tr:last-child .th {
  border-bottom: solid 1px rgba(0, 0, 0, 0.07);
}
#side-bar .tr.sep .th {
  cursor: auto;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.05);
}
#side-bar .sideGrouping {
  background-color: rgb(0 0 0 / 12%);
}
#side-bar .label {
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  width: 100%;
  height: 100%;
  max-height: 14px;
  padding: 0px 10px;
}
#side-bar .label span {
  position: relative;
}
#side-bar .tr .th.sel {
  color: #000;
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.3);
}
#side-bar .th.row-next-sel {
  border-color: rgba(0, 0, 0, 0.3);
}

#top-bar .cover {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  width: var(--topH);
  height: var(--topH);
  z-index: 1;
}
#top-bar .cover div {
  pointer-events: visible;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 200px;
  height: 200px;
  transform-origin: left bottom;
  transform: rotate(-45deg);
  background-color: #f2f2f2;
}
#top-bar .table-container {
  display: flex;
  height: 100%;
  overflow: hidden;
}
#top-bar .table {
  width: calc(100% - 60px);
}
#top-bar .th {
  position: relative;
}
#top-bar .th:last-child {
  padding-right: 1px;
}
#top-bar .th.sel {
  color: #000;
}
#top-bar .label {
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;

  position: absolute;
  top: var(--topH);
  left: 0px;
  width: 150px;
  border-top: solid 1px rgba(0, 0, 0, 0.07);
  text-align: left;
  padding-left: 15px;
  transform-origin: left top;
  transform: rotate(-45deg) skewX(45deg);

  z-index: 1;
}
#top-bar .sep .label {
  cursor: auto;
  font-size: 10px;
  line-height: 11px;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.05);
}
#top-bar .th:last-child .label {
  border-bottom: solid 1px rgba(0, 0, 0, 0.07);
}
#top-bar .label .words-container {
  position: relative;
}
#top-bar .label .words {
  pointer-events: none;
  position: relative;
  width: 115px;
  min-height: 12px;
  padding-bottom: 2px;
}
#top-bar .sep .label .words {
  padding-bottom: 0px;
}
#top-bar .label .words span {
  display: inline-block;
  transform: skewX(-45deg);
}
#top-bar .sep .label .words span {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#top-bar .th.sel .label {
  background-color: #fff;
}
#top-bar .th.sel .label,
#top-bar .th.sel + .th .label {
  border-top-color: rgba(0, 0, 0, 0.3);
}
#top-bar .th:last-child.sel .label {
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

#top-bar .label .icon-min,
#top-bar .label .icon-max {
  transform: skewX(-45deg);
}
#side-bar .label .icon-min,
#side-bar .label .icon-max,
#top-bar .label .icon-min,
#top-bar .label .icon-max {
  display: none;
}
.evidence-view #side-bar .label.max .icon-max,
.evidence-view #top-bar .label.max .icon-max,
.gap-view #side-bar .label.min .icon-min,
.gap-view #top-bar .label.min .icon-min {
  display: block;
}
.evidence-view #side-bar .label.max,
.evidence-view #top-bar .label.max,
.gap-view #side-bar .label.min,
.gap-view #top-bar .label.min {
  font-weight: 700;
}
.evidence-view #side-bar .label.max span,
.evidence-view #top-bar .label.max span:first-child,
.gap-view #side-bar .label.min span,
.gap-view #top-bar .label.min span:first-child {
  padding-left: 15px;
}
#side-bar .label .icon-min,
#top-bar .label .icon-min {
  position: absolute;
  top: 2px;
  left: 0px;
  width: 11px;
}
#side-bar .label .icon-max,
#top-bar .label .icon-max {
  position: absolute;
  top: 2px;
  left: 0px;
  width: 12px;
}
#top-bar .label .icon-min,
#top-bar .label .icon-max {
  top: 1px;
}
#side-bar .label .icon,
#top-bar .label .icon {
  fill: var(--secondaryColor);
}

#table-main-contents .table {
  width: calc(100% - 60px);
  height: 100%;
}
#table-main-contents .table-container {
  overflow: hidden;
}
#table-main-contents .td {
  position: relative;
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-top: solid 1px rgba(0, 0, 0, 0.07);
  border-left: solid 1px rgba(0, 0, 0, 0.07);
}
#table-main-contents .td.sep {
  cursor: auto;
  background-color: rgba(0, 0, 0, 0.05);
}
#table-main-contents .td.sep.vert {
  border-top-color: transparent;
}
#table-main-contents .tr:not(:first-child) .td.sep.cross {
  border-top-color: transparent;
}
#table-main-contents .td.sep.cross:not(:first-child) {
  border-left-color: transparent;
}
#table-main-contents .td.sep.horiz:not(:first-child) {
  border-left-color: transparent;
}
#table-main-contents .tr .td:last-child {
  border-right: solid 1px rgba(0, 0, 0, 0.07);
}
#table-main-contents .tr:last-child .td {
  min-height: 15px;
  border-bottom: solid 1px rgba(0, 0, 0, 0.07);
}
#table-main-contents .circle-container {
  pointer-events: none;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#table-main-contents .circle {
  position: absolute;
  border-radius: 50%;
  border: solid 1px transparent;
  background-clip: content-box;
  background-color: var(--mainColor-cirlce);
  transition: width 400ms, height 400ms;
}
#table-main-contents .circle.zero {
  border-width: 0px;
}
#table-main-contents .gap-container {
  position: absolute;
  pointer-events: none;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}
#table-main-contents .gap {
  box-sizing: border-box;
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-color: var(--mainColor);
  transition: opacity 400ms;
}
#table-main-contents .td.sel .circle-container,
#table-main-contents .td.col-sel .circle-container,
#table-main-contents .td.row-sel .circle-container {
  z-index: 2;
}
#table-main-contents .td.sel,
#table-main-contents .td.col-sel,
#table-main-contents .td.row-sel {
  background-color: #fff;
}
#table-main-contents .td.col-sel,
#table-main-contents .td.col-sel + .td,
#table-main-contents .td.sel + .td {
  border-left-color: rgba(0, 0, 0, 0.3);
}
#table-main-contents .td:last-child.sel,
#table-main-contents .td.col-sel:last-child,
#table-main-contents .td.row-sel:last-child {
  border-right-color: rgba(0, 0, 0, 0.3);
}
#table-main-contents .td.row-sel,
#table-main-contents .td.row-next-sel {
  border-top-color: rgba(0, 0, 0, 0.3);
}
#table-main-contents .tr:last-child .td.sel,
#table-main-contents .tr:last-child .td.col-sel,
#table-main-contents .tr:last-child .td.row-sel {
  border-bottom-color: rgba(0, 0, 0, 0.3);
}
#table-main-contents .circle.sel {
  border-color: #fff;
  background-color: var(--mainColor-cirlceSel);
}
#table-main-contents .td.max .circle {
  padding: 3px;
  border-width: 2px;
  border-color: var(--secondaryColor);
}
#table-main-contents .td.col-sel .gap {
  left: 1px;
  width: calc(100% - 2px);
}
#table-main-contents .td.row-sel .gap {
  top: 1px;
  height: calc(100% - 2px);
}
#table-main-contents .td .gap.sel {
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
}
#table-main-contents .td.col-sel .gap.sel {
  top: -1px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% + 2px);
}
#table-main-contents .td.row-sel .gap.sel {
  top: 2px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% - 4px);
}
#table-main-contents .tr:first-child .td.col-sel .gap {
  top: 1px;
  height: calc(100% - 1px);
}
#table-main-contents .tr:first-child .td.col-sel .gap.sel {
  top: 2px;
  height: calc(100% - 2px);
}
#table-main-contents .tr:last-child .td.col-sel .gap {
  height: calc(100% - 1px);
}
#table-main-contents .td.row-sel:first-child .gap {
  left: 1px;
  width: calc(100% - 1px);
}
#table-main-contents .td.row-sel:first-child .gap.sel {
  left: 2px;
  width: calc(100% - 2px);
}
#table-main-contents .td.row-sel:last-child .gap {
  width: calc(100% - 1px);
}

#tooltip {
  overflow: hidden;
  position: absolute;
  top: -300px;
  left: -300px;
  pointer-events: none;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  text-align: left;
  border-radius: 6px;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05),
    0px 10px 15px -2px rgba(0, 0, 0, 0.4);
  background-color: #4d4d4d;
  opacity: 0;
  z-index: 2;
}
#tooltip .caption {
  font-size: 10px;
  line-height: 11px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 6px;
  background-color: var(--secondaryColor);
  opacity: 1;
}
#tooltip .contents {
  display: flex;
  align-items: stretch;
}
#tooltip .sep {
  border-top: solid 1px rgba(255, 255, 255, 0.3);
  height: 6px;
  margin-top: 6px;
}
#tooltip .value {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding-right: 10px;
  padding-left: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}
#tooltip.reverse .contents {
  flex-direction: row-reverse;
  text-align: right;
}
#tooltip .label {
  width: 100%;
  padding: 8px 10px;
}
#tooltip.simplified .value,
#tooltip.simplified .caption {
  display: none !important;
}
#tooltip.simplified .label {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 8px;
}

#map-container .h-scrollbar-container {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: calc(100% - var(--scrollWH));
  height: var(--scrollWH);
  z-index: 1;
}
#map-container .h-scrollbar-container .contents {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 11px;
  width: calc(100% - 5px);
}
#map-container .h-scrollbar-container .bg {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 11px;
  width: 100%;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.05);
}
#map-container .h-scrollbar-container .scrollbar {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 11px;
  border-radius: 6px;
  background-color: #727272;
}

#map-container .v-scrollbar-container {
  position: absolute;
  top: 0px;
  right: 0px;
  width: var(--scrollWH);
  height: calc(100% - var(--scrollWH));
  z-index: 1;
}
#map-container .v-scrollbar-container .contents {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 5px);
  width: 11px;
}
#map-container .v-scrollbar-container .bg {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 11px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.05);
}
#map-container .v-scrollbar-container .scrollbar {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 11px;
  border-radius: 6px;
  background-color: #727272;
}

#tools-container {
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 0px;
  margin: 0px auto;
  padding: 0px 5px;
}
.ready #tools-container {
  height: 50px;
  opacity: 1;
}
#filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 50%;
}
#display-tools {
  display: flex;
  align-items: center;
  width: 50%;
}
#display-results {
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: 50%;
  max-width: 400px;
}
#display-results .contents {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 5px;
  color: rgba(255, 255, 255, 0.8);
  height: 35px;
  border-radius: 3px;
  transition: color 300ms;
}
#display-results .contents:hover {
  color: rgba(255, 255, 255, 1);
}
#display-results .contents:focus-visible {
  box-shadow: 0px 0px 0px 2px var(--mainColor),
    0px 0px 0px 4px rgba(255, 255, 255, 0.9); /**/
}
#display-results strong {
  font-size: 50px;
  padding: 0px 5px 4px;
}
#tools-container .filter {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;

  cursor: pointer;
  display: inline-block;
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  margin: 0px 5px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 300ms;
}
#tools-container .filter:focus-visible {
  box-shadow: 0px 0px 0px 2px var(--mainColor),
    0px 0px 0px 4px rgba(0, 0, 0, 0.5); /**/
  box-shadow: 0px 0px 0px 2px var(--mainColor),
    0px 0px 0px 4px rgba(255, 255, 255, 0.9); /**/
}
#tools-container .button {
  padding: 4.5px 10px;
  border: solid 1px var(--mainColor-70);
}
#tools-container .button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
#tools-container .switcher {
  position: relative;
  display: flex;
}
#tools-container .switcher:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
#tools-container .switcher:after {
  content: "";
  display: block;
  position: absolute;
  box-sizing: border-box;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  border-radius: 20px;
  border: solid 1px var(--mainColor-10); /**/
  transition: all 300ms;
}
#tools-container .switcher:hover:after {
  border-color: #fff;
}
#tools-container .switcher span {
  position: relative;
  overflow: hidden;
  padding: 5.5px 11px;
  transition: all 300ms;
}
#tools-container .switcher span:after {
  content: "";
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-color: var(--mainColor-10);
  transition: all 300ms;
  z-index: -1;
}
#tools-container .switcher:hover span:after {
  background-color: #fff;
}
#tools-container .switcher span:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
#tools-container .switcher span:first-child:after {
  transform: translate3d(100%, 0, 0);
}
#tools-container .switcher span + span {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
#tools-container .switcher span + span:after {
  transform: translate3d(-100%, 0, 0);
}
#tools-container .switcher span:first-child.selected:after {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
#tools-container .switcher span + span.selected:after {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
#tools-container .switcher span.selected {
  color: var(--mainColor);
  font-weight: 600;
}
#tools-container .switcher span.selected:after {
  transform: translate3d(0, 0, 0);
}
#tools-container .custom-select {
  position: relative;
  height: 27px;
}
#tools-container .custom-select .close-area {
  position: fixed;
  display: none;
  cursor: auto;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#tools-container .custom-select .list-container {
  position: absolute;
  overflow: hidden;
  top: 0px;
  left: 0px;
  height: 25px;
  border: solid 1px var(--mainColor-70);
  border-radius: 14px;
  background-color: var(--mainColor);
  transition: left 300ms, background-color 300ms, border-radius 300ms,
    border-color 300ms, box-shadow 300ms;
}
#tools-container .custom-select.highlight .list-container {
  border-color: var(--mainColor-10);
  background-color: var(--mainColor-10);
}
#tools-container .custom-select ul {
  cursor: pointer;
  list-style-type: none;
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 5px);
  margin: 0px;
  padding: 0px;
  transition: left 300ms;
}
#tools-container .custom-select li {
  pointer-events: none;
  margin: 0px;
  padding: 0px;
  transition: all 300ms;
}
#tools-container .custom-select:hover .list-container {
  border-color: var(--mainColor-70);
  background-color: rgba(255, 255, 255, 0.15);
}
#tools-container .custom-select.highlight:hover .list-container {
  border-color: #fff;
  background-color: #fff;
}
#tools-container .custom-select .label {
  position: relative;
  display: inline-block;
  color: #fff;
  font-weight: 400;
  height: 17px;
  padding: 9px 11px 9px 16px;
  transition: color 300ms;
}
#tools-container .custom-select .label:before {
  content: "";
  display: block;
  position: absolute;
  opacity: 0;
  top: 12px;
  left: 6px;
  border: solid var(--mainColor);
  border-width: 0 2px 2px 0;
  padding: 3.5px 1.5px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  transition: opacity 300ms;
}
#tools-container .custom-select.open .selected .label:before {
  opacity: 1;
}
#tools-container .custom-select.highlight .label {
  color: var(--mainColor);
  font-weight: 600;
}

#tools-container .custom-select .label:after {
  content: "";
  display: block;
  position: absolute;
  opacity: 0;
  top: 16px;
  right: 0px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
  transition: all 300ms;
}
#tools-container .custom-select .selected .label:after {
  opacity: 1;
}
#tools-container .custom-select.highlight .label:after {
  border-top-color: var(--mainColor);
}
#tools-container .custom-select.open .label:after {
  opacity: 0;
}

#tools-container .custom-select.open .close-area {
  display: block;
}
#tools-container .custom-select.open .list-container {
  left: -5px;
  border-radius: 5px;
  border-color: #fff !important;
  background-color: #fff !important;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05),
    0px 10px 15px -2px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05),
    0px 10px 20px -8px rgba(0, 0, 0, 0.3);
}
#tools-container .custom-select.open ul {
  left: 0px;
}
#tools-container .custom-select.open li {
  pointer-events: auto;
}
#tools-container .custom-select.open li.selected {
  background-color: var(--mainColor-5);
}
#tools-container .custom-select.open li:hover,
#tools-container .custom-select.open li:focus-visible {
  background-color: rgba(0, 0, 0, 0.08);
}
#tools-container .custom-select.open li.selected:hover,
#tools-container .custom-select.open li.selected:focus-visible {
  background-color: var(--mainColor-10);
}
#tools-container .custom-select.open .label {
  color: #333;
  font-weight: 600;
}
#tools-container .custom-select.open .selected .label {
  color: var(--mainColor);
}
/*

LOADING

*/
#loading {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  font-size: 18px;
  z-index: 10000;
}
#loading .contents {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}
#loading .icon-container {
  position: absolute;
  top: calc(50% - 0.6em);
  left: calc(50% - 2.6em);
  transform: rotate(90deg);
  transform-origin: 25%;
}
#loading .icon-container .diamond {
  position: absolute;
  background-color: currentColor;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 1.2em;
  height: 1.2em;
  border-radius: 2px;
  -webkit-transform: translateY(0) rotate(45deg) scale(0);
  transform: translateY(0) rotate(45deg) scale(0);
  -webkit-animation: diamonds 1.5s linear infinite;
  animation: diamonds 1.5s linear infinite;
}
#loading .icon-container .diamond:nth-child(1) {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
#loading .icon-container .diamond:nth-child(2) {
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
}
#loading .icon-container .diamond:nth-child(3) {
  -webkit-animation-delay: -3s;
  animation-delay: -3s;
}
@-webkit-keyframes diamonds {
  50% {
    -webkit-transform: translateY(-2em) rotate(45deg) scale(1);
    transform: translateY(-2em) rotate(45deg) scale(1);
  }
  to {
    -webkit-transform: translateY(-4em) rotate(45deg) scale(0);
    transform: translateY(-4em) rotate(45deg) scale(0);
  }
}
@keyframes diamonds {
  50% {
    -webkit-transform: translateY(-2em) rotate(45deg) scale(1);
    transform: translateY(-2em) rotate(45deg) scale(1);
  }
  to {
    -webkit-transform: translateY(-4em) rotate(45deg) scale(0);
    transform: translateY(-4em) rotate(45deg) scale(0);
  }
}

#alert-small-screen {
  position: absolute;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  padding: 20px;
  z-index: 10;
}
#alert-small-screen .contents {
  text-align: center;
  color: #333;
}
/*

FOOTER

*/
footer {
  /* nascosto all'inizio */
  opacity: 0;
}
.fullscreen footer {
  display: none;
}
.ready footer {
  opacity: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media screen and (max-width: 1279px) {
  :root {
    --sideW: 160px;
  }
}
@media screen and (max-width: 1024px) {
  #display-results .contents span {
    display: none;
  }
}
@media screen and (max-width: 1023px) {
  #page.blur {
    filter: none;
  }
  #tools-container,
  #map-container,
  #tooltip,
  .modal-container,
  #loading,
  #guided-tour,
  #content-banner {
    height: 0px !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }
  #alert-small-screen {
    display: flex;
  }
}

#content-banner {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;

  display: flex;
  align-items: flex-start;
  padding: 10px;
}

#content-banner .item {
  display: flex;
  align-items: flex-start;
}

#content-banner img {
  margin-right: 10px;
  height: 50px;
}

#content-banner .item span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 40%;
  font-style: italic;
  font-weight: bold;
  transition: color 1ms;
  color: rgba(184, 0, 0, 0.8);
}

#content-banner .item span:hover {
  color: rgba(184, 0, 0, 1);
}
