:root {
  --image-height: 860px;
  --image-width: 1280px;
  --block-fill-color: #ffffff00;
  --block-fill-opacity: 0.5;
  --block-stroke-color: #242534;
  --block-stroke-width: 2;
  --block-fill-color-hover: #0d5984;
  --block-fill-opacity-hover: 0.8;
  --block-stroke-color-hover: #242534;
  --menu-primary-color: #0d5984;
  --menu-text-color: #ffffff;
  --menu-border: 1px solid #aaa57d;
  --menu-dropdown-background-color: #ffffff;
  --menu-dropdown-text-color: #444;
}

/** Z-index Order :
    .header                 : 900
    .top-view-container.roof: 600
    .svg-container          : 550
    .top-view-container     : 500
**/

/** var() usage doubled with default value for IE browser **/

html {
  background: #000000;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, Verdana, sans-serif;
}

/*----------  Header  ----------*/

/* ? */
.header {
  position: absolute;
  z-index: 900;
  background: #000 url(../images/bg-form.png) center top repeat;

  border-bottom: 1px solid #aaa57d;
  border-bottom: var(--menu-border);
  border-left: 1px solid #aaa57d;
  border-left: var(--menu-border);
  color: white;
  color: var(--menu-text-color);
  width: 170px;
  right: 0;
}

.header-container {
  margin: auto;
  line-height: 30px;
  width: 160px;
}

/*----------  Configurations  ----------*/

.configurations {
  line-height: 30px;
  height: 30px;
  display: inline-flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  border-bottom: 1px solid #aaa57d;
  border-bottom: var(--menu-border);
}

.config-item {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  min-width: 30px;
}

.config-item:not(:last-child) {
  border-right: 1px solid #aaa57d;
  border-right: var(--menu-border);
}

.config-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  max-width: 70%;
  max-height: 70%;
}

/*----------  Selects  ----------*/

.select-container {
  line-height: 30px;
  margin-top: 5px;
  margin-left: 5px;
  height: 30px;
  border-bottom: 1px solid #aaa57d;
  border-bottom: var(--menu-border);
}

.select-container label {
  text-align: right;
  clear: both;
  float: left;
  margin-right: 15px;
  min-width: 55px;
}


/* Custom Select */
.select-container .custom-select {
  position: relative;
  display: block;
  width: calc(100% - 70px);
  height: 25px;
  line-height: 1.2;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
}

.select-container .custom-select select {

  /* Reset select */
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  border: 0 !important;
  background: #ffffff;
  background: var(--menu-dropdown-background-color);
  background-image: none;

  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0px;
  font: inherit;
  font-size: 12px;
  color: #444;
  color: var(--menu-dropdown-text-color);
  cursor: pointer;
}

.select-container .custom-select select::-ms-expand {
  display: none;
}

/* Arrow */
.select-container .custom-select::after {

  font-size: 60%;
  line-height: 30px;
  content: "▼";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 0 1rem 0 0;
  color: #0d5984;
  color: var(--menu-primary-color);
  background: #ffffff;
  background: var(--menu-dropdown-background-color);
  pointer-events: none;
  margin: -2px -10px 0 0;
}

/*----------  Search  ----------*/

/** ! REFAIRE **/

.search-button .icon {
  display: none;
}

.search-button {
  background-color: #0d5984;
  background-color: var(--menu-primary-color);
  font-size: 0.8em;
  line-height: 20px;
  text-align: center;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: 5px;
  padding-left: 5px;
  padding-right: 5px;

  color: #ffffff;
  color: var(--menu-text-color);
  cursor: pointer;
}


/*----------  SVG  ----------*/

.svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 550;
}

#svgDisplayed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1280px;
  max-width: var(--image-width);
  max-height: 860px;
  max-height: var(--image-height);
}

#svgContent polygon {
  fill: #ffffff00;
  fill: var(--block-fill-color);
  opacity: 0;
  opacity: var(--block-fill-opacity);
  stroke: #242534;
  stroke: var(--block-stroke-color);
  stroke-width: 2;
  stroke-width: var(--block-stroke-width);
}

#svgContent polygon:hover {
  cursor: hand;
  fill: #0d5984;
  fill: var(--block-fill-color-hover);
  opacity: 0.8;
  opacity: var(--block-fill-opacity-hover);
  stroke: #242534;
  stroke: var(--block-stroke-color-hover);
}

/*----------  Top/Roof view   ----------*/

.top-view-container {
  width: 100%;
  height: 100%;
  z-index: 500;
  position: absolute;
  top: 0;
  left: 0;
}

.top-view-container.roof {
  z-index: 600;
}

.top-view-container img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*----------  Mobile view  ----------*/

@media screen and (max-width: 799px) {
  label {
    display: none;
  }

  /*----------  Header  ----------*/

  .header {
    width: 100%;
    height: 30px;
  }

  .header-container {
    margin: auto;
    height: 30px;
    width: 100%;

    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }

  /*----------  Configurations  ----------*/

  .configurations {
    width: 100px;
  }

  /*----------  Selects  ----------*/

  .select-wrapper {
    min-width: 150px;
    width: 40%;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .select-container {
    flex: 1;
    margin-top: 2px;
    border-bottom: 0 !important;
    width: calc(100% / 3);
    min-width: 30px;
  }

  .select-container .custom-select {
    width: 100%;
  }


  .select-container label {
    display: none;
  }

  /*----------  Search  ----------*/

  .search-button .text {
    display: none;
  }

  .search-button {
    width: 60px;
    margin: 2px 5px;
    display: block;
    position: relative;
  }

  .search-button .icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 50%;
    display: block;
  }
}

@media screen and (max-width: 525px) {
    /*----------  Selects  ----------*/
    .select-wrapper {
      width: 70%;
    }
}

@media screen and (max-width: 345px) {
    /*----------  Selects  ----------*/
    .select-wrapper {
      width: 100%;
    }
}