#service-container, #canvasOne-container, #canvasOne {
  width: 100%;
  height: 100%;
}

#service-container {
  position: fixed;
}

#canvasOne-container {
  position: absolute;
}

#canvasOne {
  background-color: #000;
}

#service-navbar .adam-nav-services {
  background: rgba(52, 58, 64, 0.71);
}

#service-navbar .nav-link {
  color: #fff;
  cursor: pointer;
}

#service-navbar button.header-btn-demo {
  color: #f8f9fa;
  background: transparent;
  border: .2rem solid #f8f9fa;
  margin: 0.2rem;
}

.geom-row-container {
  background: #343a40;
  color: #f8f9fa;
}

#geometries-bar>.geometries-bar-body table {
  font-size: .875rem;
}

.service-navbar-wrapper {
  position: absolute;
  top: 0;
  right: 0;
}

#dropdownDemoProducts {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dropdown-demo {
  background: transparent;
  padding: 0;
  border: 0;
}

.dropdown-demo>.dropdown-item {
  color: #fff;
  padding-left: .5rem;
}

.dropdown-demo>.dropdown-item:hover {
  background: transparent;
  font-size: large;
}

.dropdown-demo>.dropdown-item>span {
  border: 2px solid #fff;
  padding: .5rem .4rem;
  width: 2.3rem;
  height: 2.3rem;
}

.dropdown-demo>.dropdown-item:hover>span {
  width: 2.5rem;
  height: 2.5rem;
}

/* VIEW SLIDER  */

input[name="view-checkbox"]+.slider {
  background-color: #dc3545;
}

input[name="view-checkbox"]+.slider span {
  position: absolute;
  font-size: .875rem;
  font-weight: bold;
  top: .1rem;
}

input[name="view-checkbox"]+.slider>span.slider-on {
  display: none;
  left: .25rem;
}

input[name="view-checkbox"]+.slider>span.slider-off {
  display: inline;
  right: .25rem;
}

input[name="view-checkbox"]:checked+.slider {
  background-color: #28a745;
}

input[name="view-checkbox"]:checked+.slider>span.slider-on {
  display: inline;
}

input[name="view-checkbox"]:checked+.slider>span.slider-off {
  display: none;
}

/* ############ */

/* PLANET SLIDER  */

input[name="planet-checkbox"]+.slider {
  background-color: #83605a;
}

input[name="planet-checkbox"]:checked+.slider {
  background-color: #747474;
}

/* ############ */

/* LEFTBAR */

#leftbar {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 35%;
}

#leftbar .navbar-toggler {
  position: absolute;
  right: .5rem;
  top: .5rem;
}

#leftbar .leftbar-pills .nav-item .nav-link {
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: 0;
  background-color: transparent;
  color: #f8f9fa;
}

#leftbar .leftbar-pills .nav-item .nav-link:hover {
  background-color: #f8f9fa;
  color: #343a40;
}

#leftbar .leftbar-pills .nav-item .nav-link.active {
  background-color: #f8f9fa;
  color: #343a40;
}

#leftbar .leftbar-pills .nav-item .nav-link.active:hover {
  background-color: #343a40;
  color: #f8f9fa;
}

#leftbar.opened .bar-header {
  background-color: rgba(52, 58, 64, 0.81);
}

#leftbar .bar-content {
  position: relative;
  display: none;
  height: 82vh;
  background: rgba(255, 255, 255, 0.94);
}

#leftbar.opened .bar-content {
  display: block;
}

#leftbar.opened .bar-body {
  position: absolute;
  left: 0;
  right: 1rem;
  top: 0;
  bottom: .5rem;
}

#leftbar.opened .bar-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1rem;
  text-align: center;
  vertical-align: middle;
  cursor: ew-resize;
  background: transparent;
  border: 0;
  outline: 0;
  right: 0;
}

#leftbar .bar-body .leftbar-closer {
  position: absolute;
  right: 1vw;
}

#leftbar .bar-body ul.nav li.nav-item .nav-link {
  background: transparent;
  border-radius: 0px;
  color: #7a8188;
}

#leftbar .bar-body ul.nav li.nav-item .nav-link.active {
  color: #212529;
  border-bottom: 1px solid #212529;
}

#leftbar .bar-body table, #leftbar .bar-body table {
  font-size: .895rem;
  ;
}

#leftbar .bar-body table td, #leftbar .bar-body table th {
  padding: .5rem;
}

#leftbar .bar-body table td.label, #leftbar .bar-body table th.label {
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* COORDINATE CONTROLLER  */

#coordinate_controller {
  position: absolute;
  bottom: .3rem;
  right: 4.5rem;
  z-index: 10;
  color: #f8f9fa;
  font-size: .88rem;
}

#coordinate_controller>.coordinate-container {
  width: 6rem;
}

#coordinate_controller>#scaleLabel {
  width: 5.5rem;
  border: .12rem solid #343a40;
  border-top-width: 0px;
  padding-left: 1.3rem;
  box-shadow: inset 0px -1px 0px 1px #f8f9fa, 0px 1px 0px 1px #f8f9fa;
  -webkit-box-shadow: inset 0px -1px 0px 1px #f8f9fa, 0px 1px 0px 1px #f8f9fa;
}

/* GIS CONTROLLER */

#gis_bar {
  position: fixed;
  bottom: 7vh;
  right: .5vw;
  z-index: 12;
}

#gis_controller {
  display: none;
  position: fixed;
  bottom: 5vh;
  right: 2.35vw;
  -webkit-animation-name: controller_slide;
  /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: .3s;
  /* Safari 4.0 - 8.0 */
  animation-name: controller_slide;
  animation-duration: .3s;
  z-index: 11;
  width: 7.5rem;
  height: 7.5rem;
}

#gis_controller.opened {
  display: block;
}

#gis_controller>.map-div {
  bottom: .9rem;
}

#gis_controller button {
  position: absolute;
  height: 2.25rem;
  width: 2.25rem;
  top: 50%;
  left: 50%;
  margin: -1.125rem;
  border-radius: 4rem;
}

.deg300 {
  -webkit-transform: rotate(300deg) translate(4rem) rotate(-300deg);
  -moz-transform: rotate(300deg) translate(4rem) rotate(-300deg);
  transform: rotate(300deg) translate(4rem) rotate(-300deg);
}

.deg260 {
  -webkit-transform: rotate(260deg) translate(4rem) rotate(-260deg);
  -moz-transform: rotate(260deg) translate(4rem) rotate(-260deg);
  transform: rotate(260deg) translate(4rem) rotate(-260deg);
}

.deg220 {
  -webkit-transform: rotate(220deg) translate(4rem) rotate(-220deg);
  -moz-transform: rotate(220deg) translate(4rem) rotate(-220deg);
  transform: rotate(220deg) translate(4rem) rotate(-220deg);
}

.deg180 {
  -webkit-transform: rotate(180deg) translate(4rem) rotate(-180deg);
  -moz-transform: rotate(180deg) translate(4rem) rotate(-180deg);
  transform: rotate(180deg) translate(4rem) rotate(-180deg);
}

/* COMPASS CONTROLLER */

.compass-wrapper {
  position: absolute;
  bottom: 0vh;
  right: .5vw;
  width: 5rem;
  height: 5rem;
  top: 50%;
  left: 50%;
  margin: -2.5rem;
}

.compass-container {
  position: relative;
  width: 5rem;
  height: 5rem;
  border: .1rem solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.compass-controller {
  position: absolute;
  width: 2.8rem;
  height: 2.8rem;
  top: 50%;
  left: 50%;
  margin: -1.4rem;
}

.compass-controller>img {
  width: 2.8rem;
  height: 2.8rem;
}

;
#gis_draw_bar button {
  width: 2.244rem;
}

#gis_search_polygon_bar {
  position: absolute;
  top: 8vh;
  right: 5vw;
  width: 9vw;
  animation: polygon_bar_slide .3s linear;
  -webkit-animation: polygon_bar_slide .3s linear;
}

/* SERVICE BAR */

#service_bar {
  position: absolute;
  top: 5rem;
  left: 1rem;
  z-index: 11;
}

#settingsCollapse>.card {
  border-bottom: 0;
}

#settingsCollapse .col-form-label {
  font-size: .875rem;
  bottom: .25rem;
}

/* MODALS */

.share-card .table-container>.grid-table-body {
  max-height: 23vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* CARDS POPUP */

.adam-card-popup {
  position: fixed;
  top: 3vw;
  right: 1vw;
  width: 15vw;
  z-index: 15;
}

.adam-card-popup>.card {
  background-color: rgba(248, 249, 250, 0.81);
}

.adam-card-popup>.card>.card-header {
  padding: .2rem .5rem 0 0;
  background-color: unset;
  border-bottom: unset;
}

.adam-card-popup>.card>.card-body {
  padding-top: 0;
}

.adam-card-popup>.card .card-location>.card-header {
  background-color: #343a40;
}

.adam-card-popup>.card>.card-body button[data-toggle="collapse"], .adam-card-popup>.card>.card-body button.location-button {
  width: 15vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adam-card-popup>.card>.card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 0;
  background-color: unset;
}

/* PLACEMARK LABEL MODAL */

div.tagsinput {
  border: 0;
  border-bottom: 2px solid #343a40;
}

div.tagsinput span.tag {
  border: #343a40;
  background: #343a40;
  color: #f8f9fa;
}

div.tagsinput span.tag a {
  color: #f8f9fa;
}

/* UPLOAD FILE MODAL */

.upload-geometries-modal #polygon_collapse>.card-body {
  max-height: 20vh;
  overflow-y: auto;
}

.upload-geometries-modal #point_collapse>.card-body .tab-content {
  max-height: 20vh;
  overflow-y: auto;
}

.upload-geometries-modal #point_collapse>.card-body .nav-link {
  background: transparent;
  border-radius: 0px;
  color: #7a8188;
}

.upload-geometries-modal #point_collapse>.card-body .nav-link.active {
  color: #212529;
  border-bottom: 1px solid #212529;
}

/* GEOMETRY BAR CONTENT */

#geometries_container {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

#points_container_wrapper .grid-table.grid-table-body, #multipoints_container_wrapper .grid-table.grid-table-body {
  max-height: 28vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#polygons_container_wrapper .grid-table.grid-table-body {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.grid-table.grid-table-bottom .load-icon {
  font-size: 1.3rem;
}

.geometry-table-collapse .serach-message {
  background-color: rgba(0, 0, 0, .05);
}

[data-toggle="collapse"][aria-expanded="false"] span.collapse-icon::before {
  content: "\f078";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
}

[data-toggle="collapse"][aria-expanded="true"] span.collapse-icon::before {
  content: "\f077";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
}

/* MULTIGLOBING */

div.canvas-div {
  display: inline-block;
  position: relative;
}

div.canvas-div>canvas {
  background: black;
}

button.close-canvas {
  position: absolute;
  left: 44vw;
  z-index: 100;
  padding: 0;
}

button.close-canvas[data-canvas-id="canvas_0"] {
  bottom: 3vh;
}

button.close-canvas>span {
  vertical-align: top;
  margin-left: 0.3em;
}

#colortable_legend {
  position: absolute;
  bottom: 1.7rem;
  right: 4.5rem;
  z-index: 10;
  color: #f8f9fa;
  font-size: .88rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#colortable_legend .colortable-container>img {
  width: 6.5vw;
  height: 1.5vh;
}

#colortable_legend .legend-container {
  position: relative;
}

#colortable_legend .legend-container>.legend-max {
  position: absolute;
  right: 0;
}

.unavailability_message {
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: #343a40e6;
}

.unavailability_message>.image-container {
  position: relative;
  top: 35%;
}

.unavailability_message>.image-container>img {
  max-width: 9rem;
}

.unavailability_message>.text-container {
  color: #f8f9fa;
  position: absolute;
  top: 50%;
  width: 100%;
}

.unavailability_message>.text-container {
  color: #f8f9fa;
  position: absolute;
  top: 50%;
  width: 100%;
}

.unavailability_message.landscape {
  display: none;
}

.unavailability_message.landscape>.image-container {
  color: #f8f9fa;
}

.unavailability_message.landscape>.text-container {
  top: 60vh;
}

/* NOTIFICATION SETTINGS MODAL*/

#notification_pref_modal .modal-body>div {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.notification-collapse.collapse, .notification-collapse.collapsing {
  border: 2px solid #343a40;
}

/*  WCS LOG MODAL */

#wcsLogPopup {
  width: 23vw;
}

#wcsLogPopup .wcs-log-wrapper {
  height: 70vh;
  position: relative;
}

#wcsLogPopup .wcs-log-wrapper .wcs-log-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 1px solid black;
  border-radius: 0;
  background-color: black;
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: monospace;
  font-size: .875rem;
}

#wcsLogPopup .wcs-log-wrapper .wcs-log-container .wcs-log-date {
  white-space: nowrap;
}

#wcsLogPopup .wcs-log-wrapper .wcs-log-container .wcs-log-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#wcsLogPopup .wcs-log-wrapper .wcs-log-container .wcs-log-text.expanded {
  white-space: pre-wrap;
  word-wrap: break-word;
}

button.wcs-log-expand {
  background-color: transparent;
  border: 0;
  color: white;
  cursor: pointer;
}

button.wcs-log-expand:focus {
  outline: none;
}

/* retina displays */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
  #leftbar {
    min-width: 50vw;
  }
}

@media (max-width: 1440px) {
  #leftbar {
    min-width: 43vw;
  }
  #leftbar.leftbar-demo {
    width: 50vw;
  }
  #leftbar .bar-content {
    height: 80vh;
  }
  .adam-card-popup {
    top: 4vw;
    width: 21vw;
  }
}

@media (max-width: 1200px) {
  #leftbar .bar-content {
    height: 80vh;
  }
  #leftbar {
    min-width: 55vw;
  }
  .adam-card-popup {
    top: 4.2vw;
    width: 26vw;
  }
}

@media (max-width: 992px) {
  .service-navbar-wrapper.opened {
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }
  #service-navbarToggler.collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
  }
  #service-navbarToggler.collapse.show, #service-navbarToggler.collapsing {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 3rem!important;
    padding-right: 0!important;
    padding-left: 0!important;
    overflow-y: auto;
    background: #343a40cf;
  }
  /*
  .bar-header.navbar-opened {
    background: #343a40cf;
  }
  */
  #service-navbar .nav-link {
    margin-top: .4rem
  }
  .navbar .navbar-collapse .dropdown-toggle::after {
    display: none;
  }
  .navbar .collapse.show .dropdown-menu.show {
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .navbar .collapse.show .dropdown-menu.show .dropdown-item {
    text-align: right;
  }
  .navbar .navbar-nav>.nav-item {
    float: none;
    clear: both;
  }
  #leftbar {
    min-width: 60vw;
  }
  #leftbar .bar-content {
    height: 78vh;
  }
  #leftbar.leftbar-demo {
    width: 60vw;
  }
  #leftbar .navbar-toggler {
    position: fixed;
  }
  #leftbar .input-group input {
    max-width: 9rem;
  }
  .adam-card-popup {
    top: 5.2vw;
    width: 33vw;
  }
}

@media (max-width:768px) {
  #leftbar {
    min-width: 100vw;
  }
  #leftbar.leftbar-demo {
    width: 100vw;
  }
  #leftbar .bar-content {
    height: 100vh;
  }
  #leftbar .navbar-brand {
    margin-right: 0px;
  }
  #leftbar .input-group input {
    width: 38vw;
  }
  #leftbar.opened .bar-body {
    width: 100vw;
    bottom: 2.5rem;
  }
  #gis_bar {
    right: .2rem;
  }
  #gis_controller {
    right: 4.7vw;
  }
  #gis_toolbar {
    right: .2rem;
  }
  .adam-card-popup {
    top: 8.2vw;
    width: 45vw;
  }
}

@media (max-width:768px) and (orientation: landscape) {
  .service-navbar-wrapper {
    top: 14.3vh;
  }
  #service-navbarToggler.collapse.show, #service-navbarToggler.collapsing {
    max-height: 74vh;
  }
  #basket_container, #catalogue_container {
    height: 29vh;
  }
}

@media (min-width:319px) and (max-width:575.98px) {
  #leftbar {
    width: 100vw;
  }
  #leftbar.opened {
    height: 100vh;
  }
  #leftbar .input-group input {
    width: 29vw;
  }
  #leftbar .bar-content {
    height: 90vh
  }
  #dropdownDemoProducts {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    max-width: 34vw;
  }
  .dropdown-demo {
    max-height: 39vh;
    overflow: auto;
  }
  #gis_controller {
    right: 10vw;
  }
  .adam-card-popup {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
  }
  .adam-card-popup>.card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .adam-card-popup>.card>.card-body button[data-toggle="collapse"] {
    width: unset;
  }
  .adam-card-popup.search-location-popup>.card {
    height: 30vh;
  }
  .adam-card-popup.search-location-popup>.card>.card-body {
    height: 23vh;
    overflow: auto;
  }
  .adam-card-popup.search-location-popup>.card>.card-body>.accordion {
    height: 22vh;
    overflow: auto;
  }
  .adam-card-popup.search-location-popup>.card>.card-body button.location-button, .adam-card-popup.search-location-popup>.card>.card-body button[data-toggle="collapse"] {
    width: 78vw;
  }
}

@media screen and (min-aspect-ratio: 13/9) {
  .unavailability_message.landscape {
    display: block;
  }
}

/* VGLOBE ANIMATIONS */

@keyframes controller_slide {
  0% {
    right: 1rem;
  }
  25% {
    right: 1.6rem;
  }
  50% {
    right: 2.2rem;
  }
  75% {
    right: 2.8rem;
  }
  100% {
    right: 3rem;
  }
}

@-webkit-keyframes controller_slide {
  0% {
    right: 1rem;
  }
  25% {
    right: 1.6rem;
  }
  50% {
    right: 2.2rem;
  }
  75% {
    right: 2.8rem;
  }
  100% {
    right: 3rem;
  }
}

@keyframes polygon_bar_slide {
  0% {
    right: 1vw;
  }
  50% {
    right: 2vw;
  }
  100% {
    right: 5vw;
  }
}

@-webkit-keyframes polygon_bar_slide {
  0% {
    right: 1vw;
  }
  50% {
    right: 2vw;
  }
  100% {
    right: 5vw;
  }
}