@import url(https://fonts.googleapis.com/css?family=Figtree);

html,
body {
  font-family: 'Figtree', sans-serif;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #000000;
  fill: var(--text-color);
  stroke: var(--text-color);
  color: var(--text-color);
  --text-color: white;
  --sunset-color: #FEFC60;
  --lagoon-color: #007AFF;
  --dark-blue-color: #423F45;
  --error-color: #DB443C;
  --text-color: #FFFFFF;
  --gunmetal-gray-color: #4A4A4A;
  --silver-gray-color: #A8A8A8;
  --darkslate-gray-color: #232323;
  --chaocal-gray-color: #031210;
  --steel-gray-color: #707070;
  --border-gray-color: #EFEFEF;
  --coke-gray-color: #F9F9F9;
  --transparent: #00000000;
  scrollbar-color: var(--gunmetal-gray-color) var(--transparent);
  scrollbar-width: thin;
}

h1 {
  font-weight: normal;
  font-size: 4rem;
  margin: unset;
}

h2 {
  font-weight: normal;
  font-size: 3rem;
  margin: unset;
}

h3 {
  font-weight: normal;
  font-size: 2rem;
  margin: unset;
}

h4 {
  font-weight: normal;
  font-size: 1.2rem;
  margin: unset;
}

div.main {
  background-image: url(images/background.svg);
  background-size: cover;
  position: relative;
}

div.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

div.page section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

div.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div.row.center {
  align-items: center;
}

div.column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

div.column.center {
  align-items: center;
}

.hpadding {
  padding-left: 10px;
  padding-right: 10px;
}

.vpadding {
  padding-top: 10px;
  padding-bottom: 10px;
}

.padding {
  padding: 10px;
}

input {
  border-style: groove;
  background-color: var(--chaocal-gray-color);
  padding: 6px 18px 6px 18px;
  border-radius: 20px;
  border-color: var(--silver-gray-color);
  border-width: 1px;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: normal;
  cursor: text;
}

input:focus-visible {
  border-color: var(--sunset-color);
  outline-color: var(--sunset-color);
}

button {
  border-style: groove;
  background-color: var(--chaocal-gray-color);
  padding: 6px 18px 6px 18px;
  border-radius: 20px;
  border-color: var(--sunset-color);
  border-width: 2px;
  color: var(--sunset-color);
  font-size: 1.2rem;
  font-weight: normal;
  cursor: pointer;
  transition: color 0.3s;
  transition: background-color 0.8s;
}

button.dashed {
  border-style: dashed;
}

button:hover:not(.disabled) {
  background-color: var(--sunset-color);
  color: var(--chaocal-gray-color);
}

button:disabled {
  border-color: var(--gunmetal-gray-color);
  color: var(--gunmetal-gray-color)
}

button:focus-visible:not(.disabled) {
  border-color: var(--sunset-color);
  outline-color: var(--sunset-color);
}

/* animated border
https://www.coding2go.com/border-animation/
*/

.error {
  color: var(--error-color);
  fill: var(--error-color);
  stroke: var(--error-color);
}

.sunset {
  color: var(--sunset-color);
  fill: var(--sunset-color);
  stroke: var(--sunset-color);
}

.gray {
  color: var(--gunmetal-gray-color);
  fill: var(--gunmetal-gray-color);
  stroke: var(--gunmetal-gray-color);
}

div.hline {
  height: 2px;
  min-height: 2px;
  background-color: var(--gunmetal-gray-color);
}

div.vline {
  min-width: 2px;
  width: 2px;
  background-color: var(--gunmetal-gray-color);
}

div.vscroll {
  display: flex;
  overflow-y: scroll;
  overflow-x: hidden;
}

div.hscroll {
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
}

.flex {
  flex: 1;
}

div.tour {
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--silver-gray-color);
  fill: var(--silver-gray-color);
  stroke: var(--silver-gray-color);
  padding-top: 2px;
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.3s, padding 0.3s ease-in-out;
}

div.tour.selected {
  color: var(--coke-gray-color);
  fill: var(--coke-gray-color);
  stroke: var(--coke-gray-color);
  font-weight: bold;
}

div.tour:hover {
  color: var(--sunset-color);
  fill: var(--sunset-color);
  stroke: var(--sunset-color);
  padding-left: 10px;
}

.vmax {
  /* warning, used cause can't make a flex with content overflow w/o it */
  max-height: calc(100% - 42px - 242px);
}

div.tours {
  max-width: 400px;
  transition: max-width 1s;
}

div.tours.hidden {
  max-width: 0px;
}

div.map div {
  height: 240px;
}

div.tourpreview {
  width: 0px;
  height: 240px;
  transition: width 0.5s;
}

div.tourpreview div {
  padding: 10px;
}

div.tourpreview.filled {
  width: 240px;
}

.buttonicon {
  padding: 5px;
  transition: color 0.4s, fill 0.4s, stroke 0.4s;
  cursor: pointer;
}

.buttonicon:hover {
  color: var(--sunset-color);
  fill: var(--sunset-color);
  stroke: var(--sunset-color);
}

.buttonicon.important:hover {
  color: var(--error-color);
  fill: var(--error-color);
  stroke: var(--error-color);
}

span.small {
  font-size: 0.7em;
}

div.stops {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

div.stop {
  background-color: var(--gunmetal-gray-color);
  border-radius: 10px;
  padding: 10px;
}

div.disabled {
  pointer-events: none;
}

div.image {
  background-position: center;
  background-size: cover;
  border-radius: 5px;
  width: 80px;
  height: 80px;
}