/*
 * Copyright (C) 2024 Real Upside, LLC. All rights reserved.
 */

/* Google chart hack to stop tooltip flickering */
.google-visualization-tooltip { pointer-events:none; } // none
.google-visualization-tooltip-item { white-space: nowrap; }

ion-popover {
  --width: 60%;
  backdrop-filter: blur(10px);
}

ion-popover::part(backdrop) {
  background-color: #333;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  --scroll-behavior: smooth;
  scroll-behavior: smooth;
}

img {
  -webkit-touch-callout: default !important;
}

:root {
  --ion-safe-area-top: 4px;
  --ion-safe-area-bottom: 12px;
  --ion-background-color: #ffffff;
}

body { /* IOS page orientation change resize issue*/
  background-color: lightgray;
  -webkit-text-size-adjust: none;
}

.flex-app {
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.header-div {
  color: #ccc;
  background-color: rgba(255, 255, 255, 0.2);
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: center;
  box-shadow: 0 6px 12px 0 rgba(119, 119, 119, 0.19);
}

.header-grid {
  padding: 0;
  margin-bottom: 0;
}

.header-logo {
  width: 60%;
  height: auto;
  max-width: 60px;
  margin: 8px 0px 0px 0px;
}

.tagline-gradient {
  padding: 0 0 0 12px;
  text-align: left;
  background: -webkit-linear-gradient(top, #e28743, #f8db75);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-plain {
  padding: 0 0 0 12px;
  text-align: left;
  color: #f8db75;
  opacity: 0.9;
}

.tagline-text {
  padding: 2px;
  margin: 0;
  font-size: 1.2em;
}

.timer-label {
  padding: 8px 16px 4px 8px;
  text-align: right;
  font-size: 1em;
}

.timer-container {
  background: white;
  border-radius: 30px;
  padding: 8px 16px 8px 0;
  width: 180px;
  height: 60px;
  vertical-align: -10%;
  white-space: nowrap;
}

.timer-icon {
  width: 32px;
  padding: 1px;
  margin: 1px;
  vertical-align: -32%;
}

.timer-text {
  color: black;
  background: white;
  font-size: 1.2em;
  font-weight: bold;
  vertical-align: -5%;
}

.header-button {
  margin: 2px 4px;
  text-transform: none;
  font-size: 0.9em;
  --color: #2f2f2f;
  --background: #f6f8fc;
  --background-hover: #186bfc;
  --background-hover-opacity: 0.3;
  --background-activated: #186bfc;
  --background-activated-opacity: 0.6;
  --background-focused: #186bfc;
}

.choice-item {
  --padding-start: 0;
  --margin-top: 8px;
  --margin-bottom: 8px;
}

.elimination-button {
  --color: #2f2f2f;
  --border-color: #2f2f2f;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.8;
  --background-focused: #ffc409;
}

.choice-button-outline {
  margin: 8px 8px 8px 0px;
  color: #2f2f2f;
  text-decoration: none;
  --color: #2f2f2f;
  --border-color: #2f2f2f;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.8;
  --background-focused: #ffc409;
}

.choice-button-filled {
  margin: 8px 8px 8px 0px;
  color: #2f2f2f;
  text-decoration: none;
  --color: #2f2f2f;
  --border-color: #2f2f2f;
  --background: #ffc409;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.8;
  --background-focused: #ffc409;
}

.choice-button-clear {
  margin: 8px 10px 8px 2px;
  color: #c5000f;
  text-decoration: line-through;
  --color: #2f2f2f;
  --border-color: #2f2f2f;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.8;
  --background-focused: #ffc409;
}

.bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  position: absolute;
  background-color: blue;
  border-radius: 50%;
}

.frq-item {
  --margin-top: 8px;
  --margin-bottom: 8px;
}

ion-range::part(tick) {
  height: 12px;
  width: 2px;
  top: 4px;
}

ion-range::part(tick-active) {
  height: 12px;
  width: 2px;
  top: 4px;
}

.osm-popup .leaflet-popup-content {
  margin: 6px;
  font-size: 1.2em;
}

.no-decoration, a:link, a:visited {
  text-decoration: none;
}

.common-menu {
  padding-left: 6px;
  --width: 48%;
  --max-width: 240px;
}

.bg-transparent {
  background: transparent;
}

.search-toolbar {
  color: #ccc;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 6px 0 rgba(119, 119, 119, 0.19);
  --padding-top: 0;
  --padding-bottom: 0;
}

.range-combo {
  position: relative;
}

.range-combo-negative {
  position: relative;
}

.range-label {
  position: absolute;
  z-index: -1;
  --min-height: 8px;
  --padding-top: 1px;
  --padding-bottom: 1px;
}

.range-note {
  color: darkgray;
  font-size: 0.8em;
}

.range-note-negative {
  color: darkkhaki;
  font-size: 0.8em;
}

.slidecontainer {
  width: 100%;
}

.range-position {
  padding: 20px 25px 0 25px;
}

.tick-position {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
}

.tick-position p {
  position: relative;
  transform: translate(0, -10px);
  display: flex;
  justify-content: center;
  text-align: center;
  width: 1px;
  background: #ccd3da;
  height: 10px;
  line-height: 40px;
  margin: 0 0 20px 0;
  font-size: 0.8em;
}

.pr-bar {
  --knob-background: #3880ff;
  --bar-background-active: #3880ff;
  --bar-background: lightgray;
  --bar-height: 6px;
  --height: 20px;
  --knob-size: 18px;
  --knob-border-radius: 50%;
  --bar-border-radius: 20px;
  --knob-box-shadow: 0px 0px 0px 0px #fff;
}

.item-toggle .item-inner {
  display: block;
}

.item-toggle .item-inner .input-wrapper {
  display: block;
  flex: none;
  text-align: center;
}

.item-toggle .item-inner ion-toggle.toggle {
  display: block;
  flex: none;
  margin-left: auto;
  margin-right: auto;
}

.question-number-container {
  position: relative;
  margin: 2px 1px 6px 1px;
}

.question-number {
  width: 23px;
  --border-radius: 4px;
  --border-color: #777;
  --border-style: solid;
  --border-width: 1px;
  --box-shadow: 0 0 2px 0 rgb(0, 0, 0, 0.25);
  --color: #2f2f2f;
  --background: #f6f8fc;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.6;
  --background-focused: #ffc409;
  font-size: 0.9em;
}

.question-number-answered {
  width: 23px;
  --border-radius: 4px;
  --border-color: #777;
  --border-style: solid;
  --border-width: 1px;
  --box-shadow: 0 0 2px 0 rgb(0, 0, 0, 0.25);
  --color: #2f2f2f;
  --background: #ffc409;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.6;
  --background-focused: #ffc409;
  font-size: 0.9em;
}

.ds-bar-indicator {
  position: relative;
  padding: 0px 52px 2px 52px;
  z-index: 0;
}

.ds-bar::before {
  border-style: solid;
  border-width: 3px;
  border-color: #888;
}

.ds-bar {
  position: absolute;
  display: inline-block;
  top: 6px;
  left: 0px;
  width: 101px;
  height: 6px;
  z-index: 1;
  background-image: linear-gradient(90deg, royalblue, lightgray, darkorange, red);
}

.question-flag {
  position: absolute;
  display: none;
  top: -10px;
  left: 8px;
  z-index: 2;
  border-top: 4px solid #c5000f;
  border-left: 12px solid #c5000f;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #c5000f;
}

.question-marker {
  position: absolute;
  display: none;
  top: 27px;
  left: 8px;
  z-index: 2;
  border-top: 4px solid transparent;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #666;
}

.prev-next-button {
  margin: 0 0 0 12px;
  text-transform: none;
  font-size: 1em;
  --color: #2f2f2f;
  --background: #f6f8fc;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.6;
  --background-focused: #ffc409;
}

.flag-button {
  margin: 2px 0 2px 12px;
  text-transform: none;
  font-size: 1em;
  --color: #2f2f2f;
  --background: #f6f8fc;
  --background-hover: #ffc409;
  --background-hover-opacity: 0.3;
  --background-activated: #ffc409;
  --background-activated-opacity: 0.6;
  --background-focused: #ffc409;
}

.footer {
  color: #444;
  height: 32px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 0.8em;
}

.rate-chart {
  width: 360px;
  height: 180px;
}

.trend-chart {
  width: 280px
  height: 100px;
  margin: auto;
  padding: 0 10px;
}

.trend-chart-short {
  width: 280px;
  height: 50px;
  margin: auto;
  padding: 0 10px;
}

.comp-col {
  padding: 0 8px;
}

.comp-label {
  display: inline-block;
  font-size: 0.9em;
  color: dimgray;
}

.comp-left {
  display: inline-block;
  width: 48%;
  left: 0;
  text-align: center;
  padding: 4px 0;
  border-right: 1px solid #eee;
}

.comp-left2 {
  display: inline-block;
  width: 48%;
  left: 0;
  text-align: center;
  padding: 4px 0;
}

.comp-right {
  display: inline-block;
  width: 48%;
  right: 0;
  text-align: center;
  padding: 4px 0;
}

.comp-list-card {
  width: 98%;
  margin: 4px;
  padding: 0;
}

.prop-list-card {
  position: relative;
  width: 98%;
  padding-bottom: 36%;
  margin: 4px;
}

.prop-list-table {
  position: absolute;
}

.prop-list-td {
  width: 60%;
}

.prop-list-picture {
  width: 100%;
  height: auto;
  overflow: hidden
}

.prop-list-text {
  color: dimgray;
  padding: 4px 8px;
  vertical-align: top;
  overflow: hidden;
}

.prop-list-text-selected {
  background-color: lightyellow;
  color: dimgray;
  padding: 4px 8px;
  vertical-align: top;
}

.search-list-card {
  position: relative;
  width: 100%;
  padding-bottom: 52%;
  margin: 2px;
}

.search-text {
  display: -webkit-box;
  max-width: 100%;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.2em;
  overflow: hidden;
}

.action-list-card {
  position: relative;
  width: 98%;
  padding-bottom: 34%;
  margin: 4px;
}

.action-list-table {
  position: absolute;
}

.action-list-td {
  width: 42%;
}

.action-list-picture {
  width: 100%;
  height: auto;
  overflow: hidden
}

.action-list-text {
  color: dimgray;
  padding: 4px 8px;
  vertical-align: top;
}

.hotness-popover .popover-content {
  width: 60%;
  --width: 60%;
  padding-right: 20px;
}

.toast-message {
  font-size: 16px;
}

.deals-map-container {
  position: relative;
  width: 160px;
  height: 100px;
  overflow: hidden;
  padding: 2px 2px 2px 2px;
  z-index: 0;
}

.deals-map {
  position: absolute;
  display: inline-block;
  top: 8px;
  left: 2px;
  width: 150px;
  height: 90px;
  z-index: 1;
  background-image: url('../img/tiny-map.png');
}

.deals-map-marker {
  position: absolute;
  display: inline-block;
  top: 90px;
  left: 180px;
  z-index: 2;
  width: 14px;
  height: 14px;
  background: darkorange;
  border-radius: 80%;
}

.region-map-text {
  font-size: 1rem;
  line-height: 1.2em;
  text-align: left;
  padding: 6px;
}

.region-map {
  transition: all 0.5s ease;
}

ion-menu{
  --width: 180px;
}

.menu-icon {
  font-size: 1.5em;
  vertical-align: bottom;
}

.menu-label {
  display: inline-block !important;
  color:black !important;
  font-size: 1.5em;
  padding-left: 2px;
  vertical-align: bottom;
}

.slide-img {
  border: solid 1px #ccc;
  background-color: #eee;
  box-shadow: 0 8px 4px rgba(0,0,0,0.3);
  -moz-box-shadow: 0 8px 4px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0 8px 4px rgba(0,0,0,0.3);
  -o-box-shadow: 0 8px 4px rgba(0,0,0,0.3);
  border-radius: 8px;
}

meter::-webkit-meter-optimum-value { background: #3A3; }
meter::-webkit-meter-suboptimum-value { background: orange; }
meter::-webkit-meter-even-less-good-value { background: red; }

meter::-moz-meter-bar { background-color: #555; background-image: linear-gradient(90deg, green, orange, red); }
meter::-moz-meter-optimum { background: #3A3; }
meter::-moz-meter-sub-optimum { background: orange; }
meter::-moz-meter-sub-sub-optimum { background: red; }
