﻿/*$colorPrimary: #a8d0d7; 
$colorSecondary: #4ca1af;
$colorAccent: #2d3361;*/
/*$colorPrimary: #00404b;
$colorSecondary: #d8e2e9;
$colorAccent: #2d3361;*/
/*--------------------------------------------*/
/*--------------------------------------------*/
/*$colorAccent: #BA1200; //Engineering Orange*/
/*--------------------------------------------*/
.three-container {
  display: flex;
  justify-content: center;
  align-self: center;
  flex-direction: row;
  margin: 10px;
  background-color: #fff;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5em;
  height: auto;
  margin-left: 0;
  margin-right: 0;
}
.three-container canvas {
  max-width: 100%;
  height: auto !important;
}

.three-card {
  display: flex;
  flex-direction: row;
  width: 800px;
}

.three-container h4, .three-container p {
  margin: 5px;
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  flex-wrap: wrap;
  flex-basis: 60%;
}

.three-container > div {
  flex-grow: 2;
}

.three-canvas {
  background-color: white;
}
.three-canvas-one-column {
  width: 1200px;
  height: 800px;
  /* background: radial-gradient(#91a6cc, #20526b); */
}

canvas {
  width: 100%;
  height: 100px;
  display: block;
  background-color: white;
}

.hotspot-description {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  margin-top: 40px;
  padding: 1em;
  width: 225px;
  color: #fff;
  background: rgba(51, 100, 132, 0.9);
  border-radius: 0.5em;
  font-size: 12px;
  line-height: 1.2;
  transition: opacity 0.5s;
  font-size: 1rem;
  z-index: 11;
}

.hotspot-description p {
  font-size: 0.9rem;
  line-height: 1.3rem;
}

.hotspot-description::before {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
}

.bubble {
  position: absolute;
  z-index: -1;
}

#number {
  position: absolute;
  z-index: -1;
}

body {
  margin-top: 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-left: auto;
  margin-right: auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  /* background: white; */
  -ms-flex-line-pack: center;
  align-content: center;
}

.description-close {
  position: absolute;
  top: 4px;
  right: 10px;
  margin: 0;
  color: #EBE9E9;
  font-size: 1rem;
}

#intro-message {
  pointer-events: none;
  position: relative;
  z-index: 20;
}

.intro-message {
  pointer-events: none;
  position: relative;
  z-index: 20;
}

.hotspot-description-cta {
  display: block;
  /*background-color: white;*/
  border-radius: 8px;
  text-decoration: none;
  color: white;
  padding: 5px 10px;
  margin-bottom: 8px;
  width: fit-content;
  font-size: 0.9rem;
  min-width: 0;
}

.hotspot-description-cta:hover {
  /*background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0 0);*/
  cursor: pointer;
}

.hotspot {
  background-color: #336484;
  color: white;
  border-radius: 20px;
  position: absolute;
  padding: 5px 15px;
  border: 2px solid white;
  z-index: 10;
  pointer-events: all;
  width: max-content;
  min-width: 0;
  margin-top: 0;
}

.hotspot p {
  margin: 0;
  font-size: 0.8rem;
  pointer-events: none;
  text-align: center;
  max-width: 150px;
  line-height: 1rem;
}

.hotspot:hover {
  /*background-color: $colorAccent;*/
  cursor: pointer;
}

.tether {
  stroke: #336484;
  stroke-width: 3;
  stroke-dasharray: 10, 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1px white);
}

.hotspot-anchor {
  border-radius: 8px;
  background-color: #336484;
  width: 10px;
  height: 10px;
  position: absolute;
  z-index: 9;
  filter: drop-shadow(0 0 1px white);
}

.hotspot-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hotspot-svg line {
  width: 100%;
  height: 100%;
}

.description-close:hover {
  cursor: pointer;
}

.ui-container {
  pointer-events: none;
  overflow: hidden;
  max-width: 100%;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  height: 0;
}
.message p {
  color: white;
  text-shadow: 0 0 8px black;
}

.control-legend {
  display: flex;
  flex-direction: row;
  z-index: 100;
  margin-top: 8px;
  width: 100%;
  align-items: center;
}
.control-legend img {
  height: 30px;
  margin-right: 8px;
}
.control-legend p {
  font-size: 0.8rem;
  margin: 0;
}

.mouse-controls {
  display: flex;
  align-items: center;
  border-right: solid 2px darkgray;
  margin-right: 26px;
}
.mouse-controls > div {
  display: flex;
  margin-right: 40px;
}
.mouse-controls > div:last-child {
  margin-right: 15px;
}

@media (max-width: 600px) {
  .hotspot {
    padding: 0px 8px;
  }
  .hotspot p {
    font-size: 0.7rem;
    max-width: 100px;
    line-height: 0.7rem;
    margin: 5px 0;
  }
  .tether {
    stroke-width: 2;
  }
  .hotspot-anchor {
    width: 5px;
    height: 5px;
  }
  .hotspot-description {
    margin-top: 40px;
    padding: 10px;
    width: 150px;
  }
  .hotspot-description p {
    font-size: 0.75rem;
    line-height: 1rem;
    margin-top: 0;
    margin-bottom: 5px;
  }
  .hotspot-description-cta {
    font-size: 0.6rem;
    border-radius: 6px;
    margin-bottom: 0;
  }
  .control-legend {
    flex-direction: row;
  }
  .control-legend div {
    align-items: center;
  }
  .control-legend img {
    width: 15px;
    height: auto;
  }
}
@media (max-width: 450px) {
  .hotspot-description {
    bottom: 0;
    left: 0 !important;
    top: auto !important;
    width: 100%;
    padding: 0;
  }
  .hotspot-description p:nth-child(1) {
    margin: 15px 10px 10px;
  }
  .hotspot-description a {
    margin-left: 10px;
    margin-bottom: 10px;
  }
}
