@import './common_styles.scss';
@import 'ngeo/layertree/common.scss';

gmf-map {
  width: 600px;
  height: 400px;
  display: block;
}
ul {
  list-style-type: none;
}
gmf-layertree a {
  color: black;
  text-decoration: none;
  padding-right: 5px;
}
gmf-layertree .gmf-layertree-metadata a:before {
  font-family: FontAwesome;
  content: '\f129';
}
gmf-layertree .gmf-layertree-layer-icon {
  display: inline-flex;
  width: 20px;
  height: 10px;
}
gmf-layertree .gmf-layertree-zoom {
  display: none;
}
gmf-layertree .gmf-layertree-zoom:hover {
  cursor: pointer;
}
gmf-layertree .gmf-layertree-zoom:before {
  font-family: FontAwesome;
  content: '\f18e';
}
gmf-layertree .outOfResolution .gmf-layertree-legend {
  display: none;
}
gmf-layertree .gmf-layertree-legend-button a:after {
  font-family: FontAwesome;
  content: '\f036';
}
gmf-layertree .gmf-layertree-legend img {
  padding-left: 15px;
}
gmf-layertree .noSource {
  opacity: 0.3;
}
gmf-layertree .noSource:after {
  content: '(source not available)';
}
gmf-layertree .outOfResolution {
  opacity: 0.6;
}
gmf-layertree .outOfResolution .gmf-layertree-zoom {
  display: inline;
}
gmf-layertree .gmf-layertree-state {
  font-family: FontAwesome;
  font-weight: lighter;
}
gmf-layertree .on .gmf-layertree-state:before {
  content: '\f14a';
}
gmf-layertree .off .gmf-layertree-state:before {
  content: '\f096';
}
gmf-layertree .indeterminate .gmf-layertree-state:before {
  content: '\f147';
}
gmf-layertree .on {
  color: green;
}
gmf-layertree .off {
  color: red;
}
gmf-layertree .indeterminate {
  color: orange;
}
[ngeo-popup] {
  top: 20px;
  max-width: 350px;
  width: 350px;
  margin-left: -175px;
  left: 50%;
  right: 50%;
  max-height: 400px;
  position: fixed;
}
[ngeo-popup] .popover-content {
  overflow: auto;
  /*
   * popup's height - popover-title's height
   * should be computed using bootstrap variables
   */
  max-height: calc(400px - 38px);
}
@media (max-width: 768px) {
  #map {
    height: 200px;
    width: 200px;
  }
  [ngeo-popup] {
    position: fixed;
    top: 0;
    left: auto;
    right: auto;
    max-width: 100%;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    max-height: none;
    margin: 10px;
  }
}
@media (max-width: 768px) {
  [ngeo-popup] .popover-content {
    /*
     * popup's height - popover-title's height
     * should be computed using bootstrap variables
     */
    max-height: calc(100% - 32px);
    -webkit-overflow-scrolling: touch;
  }
}
#desc,
#selections {
  margin-bottom: 20px;
}
gmf-layertree a.gmf-layertree-expand-node.fa-solid {
  display: inline-block;
}
gmf-layertree a.gmf-layertree-expand-node.fa-solid::before {
  content: '\f054';
}
gmf-layertree a.gmf-layertree-expand-node.fa-solid[aria-expanded='true']::before {
  content: '\f078';
}

/** Disclaimer */
gmf-disclaimer {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 30rem;
}
gmf-disclaimer .alert {
  padding: 0.5rem 1rem;
  margin: 0 0 0.5rem 0;
}
gmf-disclaimer .alert-dismissable .close,
gmf-disclaimer .alert-dismissible .close {
  right: -0.5rem;
}
