/*********
 * Fonts *
 *********/

@font-face {
  font-family: 'customFont';
  font-style: normal;
  font-weight: normal;
  src: url('../font/built titling sb.eot');
  src: local('☺'),
    url('../font/built titling sb.eot?#iefix') format('embedded-opentype'),
    url('../font/built titling sb.woff') format('woff'),
    url('../font/built titling sb.ttf') format('truetype'),
    url('../font/built titling sb.svg#customFontRegular') format('svg');
}

/*************
 * Overrides *
 *************/

.fa {
  font-size: large;
}

#main-container #map {
  background-color: #ffffff;
  box-shadow: 0 0 1rem #d2d2d2;
  height: calc(100% - 10rem);
}

body > .container {
  margin: 0;
}

#message-center-wrapper {
  display: none;
}

.mg-controlcontainer .ol-control {
  margin: .5em 0.5rem 0 0;
}

.ol-overlay-container {
  z-index: 10;
}

.ol-rotate {
  display: none;
}

.ol-control button {
  font-size: 1.6em;
  height: 48px;
  width: 48px;
}

.mg-control-northarrow {
  bottom: 2rem;
}

/*************************
 * Overrides - Bootstrap *
 *************************/

.btn.active {
  font-weight: bold;
}

.btn-primary {
  background-color: #9b97a7;
  border-color: #516757;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: #4b9461;
  border-color: #516757;
  color: #ffffff;
}

.btn-link {
  border-radius: 0;
  color: #4b9461;
  font-weight: normal;
}

.popover {
  background-color: rgb(255, 255, 255);
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  display: block;
  font-family: "Trebuchet MS";
  font-size: 14px;
  font-weight: normal;
  left: 0;
  line-height: 2;
  max-width: 276px;
  padding: 1px;
  position: absolute;
  text-align: center;
  top: 0;
  white-space: normal;
  z-index: 1060;
}


/*************************
 * Overrides - LayerTree *
 *************************/

.layer-tree {
  left: 0.5rem;
  top: 10.5rem;
}

.mg-layer-tree {
  left: 0.5rem;
  top: 0.5rem;
}

.mg-layer-node .mg-layer-node-header {
  padding: 0.4rem 1rem 1rem 1rem;
}

.mg-layer-node-title {
  color: #444b4a;
  display: block;
  font-family: "Trebuchet MS";
  font-size: 18px;
  font-weight: 500;
  min-width: 30rem;
}

.mg-layer-tree {
  font-size: 2.5rem;
}

.mg-layer-node-actionbtns .btn {
  width: auto;
}

.mg-layer-node-actionbtns .btn.btn-xs {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
}

.mg-layer-node-actionbtns .btn.btn-xs {
  padding: 0 0.6rem;
  font-size: 2rem;
  line-height: 1.5;
  border-radius: 3px;
}

.mg-layer-node-collapsebtn {
  color: #4b9461;
  float: left;
  margin: -6px 6px 0 -2px;
}

.mg-layer-root.mg-layer-node-collapsed > .mg-layer-node-inner > .mg-layer-node-header .mg-layer-node-title {
  min-width: 15rem;
}

.mg-layer-node-content .mg-tree.rule-tree .rule-tree-thumbnail {
  margin: 0.65rem 0 0 0;
}

.mg-layer-node-drawbtn,
.mg-layer-node-modifybtn {
  display: none;
}

.mg-layer-root > .mg-layer-node-inner > .mg-layer-node-content {
  height: auto;
  padding: 0 2px 3px 0;
}

.mg-layer-node-content .mg-tree.rule-tree .rule-tree-label {
  display: inline-block;
  font-family: "Trebuchet MS";
  font-size: 16px;
  padding: 0 0 0 1rem;
  width: auto;
}


/****************************
 * Overrides - Popup, Modal *
 ****************************/

.modal.mg-modal-picture {
  margin: 30px calc(40% - 300px);
}

.modal-body .mg-image-preview {
  height: 900px;
  max-height: 900px;
}

.mg-result-longlist-recordsfound {
  display: none;
}


/*********
 * Title *
 *********/

.ecomusee-title {
  border: 0;
  color: #4B9461;
  display: block;
  font-family: 'customFont';
  font-size: 4rem;
  font-weight: bold;
  height: 10rem;
  margin: 0;
  overflow: hidden;
  padding: 2.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/****************
 * YearSelector *
 ****************/

.ecomusee-yearselector {
  left: calc(50% - 10rem);
  position: absolute;
  top: 0.5rem;
}


/*************
 * LayerTree *
 *************/

.mg-lyr-cadastres-et-rues .mg-layer-node-actionbtns {
  display: none;
}

.mg-lyr-zone-d-etude-rues-et-cartes-anciennes .mg-layer-node-actionbtns {
  display: none;
}