body {
  font-family: "Roboto", sans-serif;
  height: 100%;
}

html {
  height: 100%;
}
body,
h1,
h2,
h3,
h6,
p,
ul,
li,
button {
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
}
#mapid {
  height: 100%;
  z-index: 1;
}
#modal {
  display: inline-block;
  position: absolute;
  top: 24px;
  left: 48px;
  z-index: 2;

  /* padding-bottom: 24px; */
  border-radius: 12px;
  background-color: #2b2b2b;
  color: white;
}
#modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex: 1 1 auto;
  padding: 18px 24px;
  border-bottom: #222222 solid 4px;
}
#modal-header > div {
  gap: 36px;
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
}
#modal-header > button {
  margin-left: 36px;
}
.header-button {
  font-weight: 800;
  font-size: 32px;
  border: none;
  color: #707070;
  background-color: transparent;
}
#modal-body {
  display: flex;

  flex-direction: column;
  flex: 1 1 auto;
  padding: 32px 24px 24px 24px;
  gap: 24px;
}
#modal-body > * {
  display: flex;
  flex-flow: row;
  gap: 24px;
}

#modal-body > div > label {
  font-size: 24px;
  font-weight: 600;
}
/* reference for custom styling checkbox: https://moderncss.dev/pure-css-custom-checkbox-style/ */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  margin: 0;
  display: grid;
  place-content: center;

  font: inherit;
  color: rgba(255, 255, 255, 0.75);
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 32px;
  height: 32px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);

  background-color: white;
  border: none;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="checkbox"]:checked {
  background-color: #6a0eb2;
  border: none;
}

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-disabled);
  color: var(--form-control-disabled);
  cursor: not-allowed;
}
.header-selected {
  color: white;
}
#x-button {
  background-color: transparent;
  border: none;
  margin-left: 24px;
}
#x-button > img {
  height: 18px;
  width: 18px;
}
#card-top {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  margin-bottom: 16px;
  flex: 1;
}
#card-title {
  font-size: 32px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#card {
  display: none;
  position: absolute;
  z-index: 2;
  padding: 16px;
  border-radius: 12px;
  background-color: #2b2b2b;
  color: white;
  flex-flow: column;
  width: 480px;
}
#card > h2 {
  font-size: 32px;
  font-weight: 700;
}

.rating {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating > p {
  font-size: 16px;
  color: white;
  font-weight: 700;
}

.rating-title {
  font-size: 16px;
  font-weight: 600;
}
.rating-wrapper > div {
  display: flex;
  flex-flow: row;
  gap: 6px;
  align-items: center;
}
.rating-wrapper {
  display: flex;
  flex-flow: column;
  gap: 6px;
}
#card-main {
  display: flex;
  flex-flow: row;

  flex-grow: 2;
  justify-content: space-between;
}
#card-main > div {
  display: flex;
  flex-flow: column;
  gap: 14px;
}
#card-body {
  display: flex;
  flex-flow: row;
  gap: 32px;
}
#overall-rating {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
}
#overall-rating > p {
  font-size: 36px;
  font-weight: 700;
  color: white;
}
#overall-Score {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 6px;
}
.rating-sub {
  font-size: 10px;
  font-weight: 500;
  color: #cfcfcf;
}

#stats > p {
  font-size: 14px;
  color: #cfcfcf;
  font-weight: 500;
}
#stats {
  display: flex;
  flex-flow: column;
  gap: 8px;
  align-items: center;
}

#card-overview {
  display: flex;
  flex-flow: column;
  gap: 18px;
}
#carrot {
  background-color: transparent;
  border: none;
}
#carrot > img {
  height: 16px;
  width: auto;
}
#search-rows > div {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: 18px;
}
#search-rows h1 {
  width: 175px;
  font-size: 18px;
  font-weight: 500;
}
input[type="number"] {
  width: 32px;
  height: 15px;
  border: solid #707070 2px;
  background-color: transparent;
  border-radius: 4px;
  text-align: center;
  color: #707070;
  padding: 6px;
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

/* Remove the up and down arrows in Chrome, Safari, and Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#search-rows h6 {
  font-size: 12px;
  font-weight: 400;
  color: #707070;
}
#search-rows > div > div {
  display: flex;
  flex-flow: column;
  gap: 0px;
}
#search-rows > div > input[type="range"] {
  width: 125px;

  accent-color: #6a0eb2;
}

#search-rows {
  display: flex;
  flex-flow: column;
  gap: 24px;
}
#modal-body2 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 32px 24px 24px 24px;
}
#modal-body2 > button {
  margin-top: 36px;
  font-size: 32px;
  font-weight: 800;
  background-color: #6a0eb2;
  border-radius: 12px;
  padding: 6px;
  color: white;
  border: none;
}
#modal-body2 > button:hover {
  background-color: #7926ba;
}
#modal-body2 > button:active {
  background-color: #6b0eb25b;
}
#info a {
  color: white;
  margin-right: 24px;
}

#sidebar {
  position: absolute;
  z-index: 2;
  top: 0px;
  right: 0px;
  bottom: 0px;
  background-color: #2b2b2b;
  display: none;
  flex-flow: column;
  min-width: 475px;
  max-width: 600px;
}
#sidebar-header > h1 {
  color: white;
  font-weight: 800;
  font-size: 32px;
}
#sidebar-header > button {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
}
#sidebar-header > button > img {
  height: 18px;
  width: 18px;
}
#sidebar-header {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-content: center;
  padding: 32px 18px;
}
.result {
  padding: 18px;
  display: flex;
  flex-flow: column;
  gap: 16px;
  border-bottom: #222222 solid 4px;
}
.result-header-inner {
  display: flex;
  flex-flow: row;
  gap: 18px;
}
.result-header {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}
.result-header-inner > * {
  align-self: baseline;
}

.result-number {
  font-size: 24px;
  font-weight: 700;
  width: 48px;
  color: white;
  flex: 0 2;
}
.result-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  /* max-width: 150px; */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-matchTitle {
  font-size: 18px;
  font-weight: 400;
  color: #8c8c8c;
}
.result-matchPercentage {
  font-size: 24px;
  font-weight: 700;
  color: #6a0eb2;
}
.result-carrot {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  align-self: center;
  /* flex-grow: 2; */
  margin-left: 48px;
}
.result-carrot > img {
  height: 12px;
  width: auto;
}
.result-overallDiv {
  display: flex;
  flex-flow: column;
  flex-grow: 2;
  justify-content: space-between;
  color: white;
  align-items: center;
}
.result-overallRatingDiv {
  display: flex;
  flex-flow: column;
  gap: 8px;
  color: white;
  align-items: center;
}

.result-overallRatingDiv > div > h1 {
  font-size: 28px;
}
.result-overallRatingDiv > div {
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  gap: 12px;
}
.result-overallRatingDiv > h1 {
  font-size: 17px;
}
.result-stats {
  display: flex;
  flex-flow: column;
  gap: 8px;
  align-items: center;
}
.result-stats > h1 {
  font-size: 12px;
  font-weight: 500;
  color: #cfcfcf;
}
.result-cat-rating {
  height: 24px;
  width: 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.result-cat-ratingDiv {
  color: white;
  display: flex;
  flex-flow: row;
  gap: 8px;
}
.result-cat-ratingDiv > h1 {
  font-size: 18px;
  font-weight: 700;
}

.result-cat {
  color: #cfcfcf;
  font-size: 10px;
  display: flex;
  flex-flow: column;
  gap: 5px;
}
.result-main > div {
  display: flex;
  flex-flow: column;
  gap: 12px;
}
.result-main {
  display: flex;
  flex-flow: row;

  /* justify-content: space-between; */
  gap: 32px;
}

.result-body {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  flex-grow: 2;
}
#search-results {
  /* height: 100%; */

  overflow: auto;
}
#tooltip {
  position: absolute;
  z-index: 1;
  color: white;
  background-color: #2b2b2b;
  border-radius: 12px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
  display: none;
}
#tooltip > h1 {
  font-size: 18px;
  font-weight: 600;
  padding: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* max-width: 200px; */
}

#info-background {
  background-color: #00000079;
  /* opacity: 0.5; */
  display: flex;
  flex-flow: column;
  justify-content: start;
  align-items: center;
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}
#info {
  background-color: #2b2b2b;
  display: flex;
  flex-flow: column;
  width: 600px;
  flex-shrink: 2;
  border-radius: 24px;
  box-sizing: border-box;
}
#info-x {
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#info-x > img {
  height: 24px;
  width: 24px;
}
#info-header {
  border-bottom: #222222 2px solid;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  padding: 24px;
}
#info-header > div {
  display: flex;
  flex-flow: row;
  gap: 36px;
}
.info-header-selected {
  color: white;
}
.info-header-button {
  font-size: 32px;
  font-weight: 700;
  color: #707070;
  background-color: transparent;
  border: none;
}
#info-body > p {
  font-size: 20px;
  font-weight: 500;
  color: white;
}
#info-body {
  padding: 24px;
}
#info-data > p {
  font-size: 13px;
  font-weight: 500;
  color: white;
}
#info-data {
  padding: 24px;
  overflow: scroll;
}
#legend-fill {
  height: 25px;
  background-image: linear-gradient(to right, #b0b0b0, #45007b);
}
#legend-text > h1 {
  color: #707070;
  font-size: 14px;
  font-weight: 500;
}
#legend-text {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}
#legend {
  display: flex;
  flex-flow: column;
  gap: 0;
}
#infoButton {
  position: absolute;
  bottom: 36px;
  left: 36px;
  z-index: 2;
  background-color: transparent;
  border: none;
}
#infoButton > img {
  height: 48px;
  width: 48px;
}
.info-title {
  font-size: 24px;
  color: white;
  font-weight: 700;
}
