@font-face {
  font-family: montserrat;
  src: url(../../font/Montserrat-Regular.ttf); }

.home-page article {
  text-align: center;
  position: relative; }
  .home-page article .btn {
    margin-right: 10px;
    margin-left: 10px; }
  .home-page article h2 {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #333333;
    white-space: nowrap;
    background-color: white;
    padding: 10px;
    border-radius: 1vmax; }

.marker-preview {
  width: 200px;
  height: 200px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  background-color: white;
  border: 3px solid black;
  position: relative; }
  .marker-preview .marker {
    background-color: red;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); }
    .marker-preview .marker p {
      font-size: 52px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%); }
  .marker-preview h2 {
    color: #bdbdbd;
    text-align: center;
    padding-top: 5px;
    font-size: 16px; }

.active-page section article {
  height: 100%; }
  .active-page section article .top {
    background-color: #000C66;
    padding: 12px;
    text-align: center;
    position: fixed;
    z-index: 99;
    width: 100%; }
    .active-page section article .top p {
      font-size: 24px;
      display: inline-block;
      padding: 2px; }
      .active-page section article .top p:last-of-type {
        font-weight: bold;
        background-color: #5BC0EB; }
  .active-page section article .disclaimer {
    position: absolute;
    top: 12.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: 20px;
    background-color: #5BC0EB;
    z-index: 99;
    padding: 10px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
    .active-page section article .disclaimer p {
      font-weight: bold;
      white-space: nowrap; }
    .active-page section article .disclaimer:hover {
      background-color: #C3423F;
      cursor: pointer; }
  .active-page section article .find-user {
    position: absolute;
    left: auto;
    right: 5%;
    top: 20%;
    width: 44px;
    height: 44px;
    margin-left: 0; }
  .active-page section article .bottom .chat {
    background-color: rgba(0, 12, 102, 0.6);
    padding-top: 10px;
    pointer-events: auto; }
    .active-page section article .bottom .chat .messages {
      max-height: 240px;
      max-width: 510px;
      margin: auto;
      overflow-y: scroll; }
      .active-page section article .bottom .chat .messages .date {
        position: sticky;
        top: 10px;
        z-index: 99; }
        .active-page section article .bottom .chat .messages .date p {
          background-color: #5BC0EB;
          border-radius: 1vmax;
          padding: 5px;
          width: fit-content;
          margin-left: auto;
          margin-right: auto; }
      .active-page section article .bottom .chat .messages .message {
        position: relative;
        padding: 5px;
        max-width: 500px;
        height: fit-content;
        margin: auto;
        display: flex;
        flex-wrap: nowrap; }
        .active-page section article .bottom .chat .messages .message.sent {
          flex-direction: row-reverse; }
          .active-page section article .bottom .chat .messages .message.sent .text-container {
            margin-left: 0;
            margin-right: 15px;
            background-color: gainsboro; }
        .active-page section article .bottom .chat .messages .message .time {
          font-size: 12px;
          color: #5a5a5a;
          text-align: right;
          position: absolute;
          right: -1%;
          bottom: 1%;
          transform: translate(-50%, -50%); }
        .active-page section article .bottom .chat .messages .message .profile, .active-page section article .bottom .chat .messages .message p {
          display: inline-block; }
        .active-page section article .bottom .chat .messages .message .profile p {
          text-align: center; }
        .active-page section article .bottom .chat .messages .message .text-container {
          position: relative;
          background-color: white;
          color: black;
          margin-left: 15px;
          width: 77%;
          padding: 10px;
          border-radius: 5px; }
          .active-page section article .bottom .chat .messages .message .text-container .image {
            width: 100%;
            margin-bottom: 15px; }
    .active-page section article .bottom .chat .textbox {
      position: relative;
      height: 60px;
      max-width: 500px;
      margin: auto; }
      .active-page section article .bottom .chat .textbox input {
        display: inline-block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); }
      .active-page section article .bottom .chat .textbox input[type=text] {
        width: 69%;
        margin: 0;
        font-size: 16px;
        height: 25px;
        left: 39%; }
      .active-page section article .bottom .chat .textbox #send-btn {
        background: #5BC0EB url("./../../media/icons/send.png") no-repeat center;
        width: 80px;
        background-size: 40%;
        margin: 0;
        left: 88%; }
      .active-page section article .bottom .chat .textbox .camera-btn {
        position: absolute;
        left: 70%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: block;
        width: 30px;
        height: 30px;
        background: url("./../../media/icons/camera.svg") no-repeat center; }
    .active-page section article .bottom .chat .btn-container {
      width: 100%;
      max-width: 510px;
      margin: auto;
      margin-bottom: 10px;
      text-align: right; }
      .active-page section article .bottom .chat .btn-container .btn {
        width: 30px;
        height: 30px;
        background-color: #C3423F;
        margin: 0;
        margin-right: 10px;
        position: relative;
        left: 0;
        top: 0;
        transform: none; }
        .active-page section article .bottom .chat .btn-container .btn i {
          font-size: 26px; }
  .active-page section article table {
    display: block;
    width: 100%;
    text-align: center;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 5px; }
    .active-page section article table tr {
      display: block;
      width: 100%;
      margin-bottom: 5px; }
      .active-page section article table tr td {
        display: inline-block;
        width: 50%; }
        .active-page section article table tr td input[type=checkbox] {
          width: 40px;
          height: 40px; }
      .active-page section article table tr:first-of-type {
        margin-bottom: 10px; }
  .active-page section article .profile {
    position: relative;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-block; }
    .active-page section article .profile p {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: fit-content;
      font-weight: bold;
      color: white;
      background-color: transparent; }
  .active-page section article #delete-leave-popup .btn-container {
    width: 100%;
    max-width: 510px;
    margin: auto;
    margin-bottom: 10px;
    text-align: right; }
    .active-page section article #delete-leave-popup .btn-container .btn {
      width: 30px;
      height: 30px;
      background-color: #C3423F;
      margin: 0;
      margin-right: 10px;
      position: relative;
      left: 0;
      top: 0;
      transform: none;
      border-radius: 50%;
      padding: 0;
      cursor: pointer; }
      .active-page section article #delete-leave-popup .btn-container .btn:nth-child(1) {
        float: none; }
      .active-page section article #delete-leave-popup .btn-container .btn i {
        font-size: 26px; }
  .active-page section article #map-legends-popup .btn-container {
    width: 100%;
    max-width: 510px;
    margin: auto;
    margin-bottom: 10px;
    text-align: right; }
    .active-page section article #map-legends-popup .btn-container .btn {
      width: 30px;
      height: 30px;
      background-color: #C3423F;
      margin: 0;
      margin-right: 10px;
      position: relative;
      left: 0;
      top: 0;
      transform: none;
      cursor: pointer; }
      .active-page section article #map-legends-popup .btn-container .btn i {
        font-size: 26px; }
  .active-page section article #map-legends-popup .btn {
    border-radius: 50%;
    padding: 0; }
    .active-page section article #map-legends-popup .btn:nth-child(1) {
      float: none; }
  .active-page section article #map-legends-popup .map-legend {
    width: 50px;
    height: 50px;
    background-color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); }
    .active-page section article #map-legends-popup .map-legend p {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 12px;
      font-weight: bold; }
    .active-page section article #map-legends-popup .map-legend.user-marker {
      background-color: #5BC0EB;
      border-radius: 50%; }
    .active-page section article #map-legends-popup .map-legend.start-marker {
      background-color: lightgreen; }
    .active-page section article #map-legends-popup .map-legend.goal-marker {
      background-color: red; }
    .active-page section article #map-legends-popup .map-legend.route-polyline {
      background-color: #3388ff;
      height: 7.5px;
      transform: rotate(-45deg);
      left: 7.5%; }
  .active-page section article #map-legends-popup table {
    display: table; }
    .active-page section article #map-legends-popup table tr {
      width: 100%;
      height: 50px; }
      .active-page section article #map-legends-popup table tr td {
        width: 60%;
        position: relative;
        height: 50px; }
        .active-page section article #map-legends-popup table tr td p {
          font-size: 16px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          white-space: nowrap; }
        .active-page section article #map-legends-popup table tr td:first-of-type {
          width: 30%; }
      .active-page section article #map-legends-popup table tr:first-of-type {
        margin-bottom: 5px; }
  .active-page section article #map {
    height: 100%;
    width: 100%;
    z-index: -99; }
    .active-page section article #map .user-marker, .active-page section article #map .goal-marker {
      position: relative;
      width: 25px;
      height: 25px;
      border-radius: 50%; }
      .active-page section article #map .user-marker::before, .active-page section article #map .goal-marker::before {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: bold; }
    .active-page section article #map .leaflet-popup-content-wrapper, .active-page section article #map .leaflet-popup-tip {
      color: white;
      background-color: #5BC0EB; }
      .active-page section article #map .leaflet-popup-content-wrapper .leaflet-popup-content, .active-page section article #map .leaflet-popup-tip .leaflet-popup-content {
        margin: 5px; }
        .active-page section article #map .leaflet-popup-content-wrapper .leaflet-popup-content h3, .active-page section article #map .leaflet-popup-tip .leaflet-popup-content h3 {
          text-align: center; }
    .active-page section article #map .leaflet-popup-close-button {
      display: none; }
    .active-page section article #map .leaflet-control-zoom {
      margin: 0; }
    .active-page section article #map .leaflet-right {
      left: auto;
      right: 5%; }
    .active-page section article #map .leaflet-left {
      left: 5%;
      right: auto; }
      .active-page section article #map .leaflet-left .leaflet-control {
        margin-left: 0;
        margin-top: 0; }
    .active-page section article #map .leaflet-top {
      position: fixed;
      top: 10%; }
    .active-page section article #map .leaflet-control-zoom {
      border: none; }
      .active-page section article #map .leaflet-control-zoom a {
        color: white;
        background-color: #5BC0EB;
        width: 35px;
        height: 35px;
        position: relative;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
        .active-page section article #map .leaflet-control-zoom a span {
          font-size: 28px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%); }
        .active-page section article #map .leaflet-control-zoom a:first-child {
          border-top-left-radius: 50%;
          border-top-right-radius: 50%; }
        .active-page section article #map .leaflet-control-zoom a:last-child {
          border-bottom-left-radius: 50%;
          border-bottom-right-radius: 50%; }
    .active-page section article #map .leaflet-control-layers {
      border: none;
      background-color: transparent; }
      .active-page section article #map .leaflet-control-layers .leaflet-control-layers-toggle {
        border-radius: 50%;
        background-image: none;
        background-color: #5BC0EB;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
        .active-page section article #map .leaflet-control-layers .leaflet-control-layers-toggle::after {
          content: "";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 24px;
          height: 24px;
          background: url("/appearance/media/icons/layergroup.svg") #5BC0EB no-repeat center; }
      .active-page section article #map .leaflet-control-layers .leaflet-control-layers-list {
        background-color: #000C66;
        color: white;
        font-size: 15px;
        padding: 10px;
        padding-left: 15px;
        border-radius: 20px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
  .active-page section article .instructions {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    pointer-events: none;
    background-color: white;
    opacity: 0.8; }
    .active-page section article .instructions p {
      color: black;
      font-size: 26px;
      text-align: center; }

#camera, #camera-view, #camera-sensor, #camera-output {
  position: fixed;
  height: 100%;
  width: 100%;
  object-fit: cover; }

#camera .top {
  margin-top: 15px; }

#camera-trigger, #camera-flip {
  background-color: #5BC0EB;
  color: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  position: absolute;
  transform: translate(-50%, -50%); }
  #camera-trigger:hover, #camera-flip:hover {
    cursor: pointer;
    background-color: #C3423F; }

#camera-flip {
  top: 92.5%;
  left: 72%;
  width: 45px;
  height: 45px; }
  #camera-flip img {
    width: 25px;
    height: 25px; }

#camera-trigger {
  top: 92.5%;
  left: 50%;
  width: 90px;
  height: 90px; }
  #camera-trigger img {
    height: 50px;
    width: 50px; }

.taken {
  z-index: 2; }

/* width */
::-webkit-scrollbar {
  width: 10px; }

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; }

/* Handle */
::-webkit-scrollbar-thumb {
  background: #5BC0EB; }

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #C3423F; }

.create-page, .search-page {
  overflow: auto; }

* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: montserrat; }

h1 {
  font-size: 34px; }

html, body {
  height: 100%;
  color: white;
  overflow: hidden; }

section {
  width: 100%;
  height: 100%;
  position: relative; }
  section article {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; }

form input {
  display: block;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
  border-radius: 5px;
  border: 1px solid #5BC0EB;
  padding: 10px; }

form input[type=submit] {
  color: white;
  background-color: #5BC0EB;
  border: none; }
  form input[type=submit]:hover {
    cursor: pointer;
    background-color: #C3423F; }

body {
  position: relative; }
  body .bg-image {
    opacity: 0.3;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url(../../media/background-index.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; }

.btn {
  display: inline-block;
  position: relative;
  background-color: #5BC0EB;
  border-radius: 10px;
  height: 100px;
  width: 100px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  text-decoration: none;
  color: white; }
  .btn i {
    width: 40%;
    height: 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; }
  .btn:hover {
    background-color: #C3423F; }
  .btn.round {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 15px; }
    .btn.round i {
      font-size: 26px; }
  .btn.small {
    width: fit-content;
    height: fit-content;
    padding: 7.5px; }
    .btn.small p {
      white-space: nowrap;
      text-align: center;
      font-size: 12px;
      font-weight: bold; }
  .btn#delete-leave-group-btn {
    margin-top: 5px;
    width: 25px;
    height: 25px; }

.btn-container {
  width: 100%;
  max-width: 510px;
  margin: auto;
  margin-bottom: 10px;
  text-align: right; }
  .btn-container .btn {
    width: 30px;
    height: 30px;
    background-color: #C3423F;
    margin: 0;
    margin-right: 10px;
    position: relative;
    left: 0;
    top: 0;
    transform: none; }
    .btn-container .btn i {
      font-size: 26px; }

.number-input {
  border: none;
  background-color: white;
  color: black;
  height: 50px;
  width: 50px;
  font-size: 24px;
  text-align: center; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 1; }

.popup {
  background-color: #000C66;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  padding: 15px;
  width: 200px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
  .popup .btn {
    width: fit-content;
    height: fit-content;
    border-radius: 5px;
    padding: 5px; }
    .popup .btn p {
      margin: 0; }
    .popup .btn:nth-of-type(1) {
      float: left; }
    .popup .btn:nth-of-type(2) {
      float: right; }
  .popup p {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px; }
  .popup #show-draggable-goal-disabled {
    opacity: 0.5; }
    .popup #show-draggable-goal-disabled:hover {
      background-color: #5BC0EB; }

section .box {
  width: 97%;
  max-width: 600px;
  background-color: #000C66;
  border-radius: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; }
  section .box h1 {
    text-align: center;
    -webkit-text-stroke: 1px black;
    font-size: 40px; }
  section .box input.center {
    text-align: center; }

.switch {
  position: fixed;
  top: 10%;
  left: 7.5%;
  display: inline-block;
  width: 92px;
  height: 30px; }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0; }
  .switch input:checked + .slider {
    background-color: #5BC0EB; }
  .switch input:focus + .slider {
    box-shadow: 0 0 1px #5BC0EB; }
  .switch input:checked + .slider:before {
    transform: translateX(35px);
    color: #5BC0EB; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C3423F;
  transition: .4s;
  border-radius: 30px; }
  .slider::before {
    color: #C3423F;
    position: absolute;
    font-size: 0.6rem;
    font-weight: bold;
    content: "WATER";
    text-align: center;
    padding: 9px 4px;
    width: 42px;
    height: 6px;
    bottom: 3px;
    left: 3.5px;
    line-height: 0.5;
    border-radius: 30px;
    background-color: white;
    transition: .4s; }

.bottom {
  position: fixed;
  z-index: 99;
  width: 100%;
  height: fit-content;
  min-height: 90px;
  bottom: 0;
  left: 0;
  text-align: left;
  pointer-events: none; }
  .bottom .btn {
    margin: 0;
    width: 75px;
    height: 75px;
    cursor: pointer;
    position: absolute;
    top: 40%;
    left: 15%;
    transform: translate(-50%, -50%);
    pointer-events: auto; }
    .bottom .btn i {
      font-size: 30px; }
    .bottom .btn:nth-of-type(1) {
      left: 15%; }
    .bottom .btn:nth-of-type(2), .bottom .btn:nth-of-type(3) {
      left: 85%; }
    .bottom .btn.small, .bottom .btn.number-input {
      width: fit-content;
      height: fit-content;
      background-color: #C3423F;
      top: 60%;
      left: 50%; }
    .bottom .btn.number-input {
      width: 50px;
      height: 50px;
      background-color: white;
      color: black; }
    .bottom .btn.center {
      left: 50%; }
    .bottom .btn.small-circle {
      width: 50px;
      height: 50px;
      top: 8%; }
      .bottom .btn.small-circle i {
        font-size: 24px; }

.btn i.fa-plus {
  background: url("/appearance/media/icons/plus.svg") no-repeat center;
  width: 50%;
  height: 50%; }

.btn i.fa-magnifying-glass {
  background: url("/appearance/media/icons/magnifying-glass.svg") no-repeat center; }

.btn i.fa-chevron-left {
  background: url("/appearance/media/icons/chevron-left.svg") no-repeat center;
  width: 60%;
  height: 60%; }

.btn i.fa-message {
  background: url("/appearance/media/icons/message.svg") no-repeat center; }

.btn i.fa-info {
  background: url("/appearance/media/icons/info.svg") no-repeat center;
  width: 60%;
  height: 60%;
  left: 51.5%; }

.btn i.fa-location-dot {
  background: url("/appearance/media/icons/location-dot.svg") no-repeat center; }

.btn i.fa-xmark {
  background: url("/appearance/media/icons/xmark.svg") no-repeat center;
  width: 70%;
  height: 70%; }

.btn i.fa-check {
  background: url("/appearance/media/icons/check.svg") no-repeat center;
  width: 50%;
  height: 50%; }

.btn i.fa-location-crosshair {
  background: url("/appearance/media/icons/location-crosshair.svg") no-repeat center;
  width: 50%;
  height: 50%; }

#remove-draggable-goal i.fa-xmark {
  width: 55%;
  height: 55%; }

@media (max-height: 685px) {
  section .box {
    width: 100%;
    position: static;
    transform: none; } }
