/* ============================================================
 * ECO-MED SIG — Theme Lizmap (responsive)
 * ============================================================ */

/* #### Mobile Phones Portrait #### */
@media screen and (max-width: 480px) and (orientation: portrait) {
  #header {
    padding: 0 4px;
  }
  #logo h1 {
    font-size: 1rem !important;
  }
}

/* #### Mobile Phones Landscape #### */
@media screen and (max-width: 640px) and (orientation: landscape) {
  #logo h1 {
    font-size: 1rem !important;
  }
}

/* #### Mobile Phones Portrait or Landscape #### */
@media screen and (max-width: 640px) {
  .liz-repository-project-item,
  .thumbnail {
    margin: 8px 0 !important;
  }

  #dock,
  #mini-dock,
  #sub-dock {
    border-radius: 0 !important;
    width: 100% !important;
  }
}

/* #### Retina screen #### */
@media
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx),
only screen and (max-height: 640px),
only screen and (max-device-height: 640px) {
  body {
    padding-top: 60px;
  }

  #header {
    height: 30px;
  }

  #logo {
    height: 30px;
    margin: 0 5px;
  }

  #logo h1 {
    font-size: 1.5em;
    margin: 5px 5px 5px 40px;
    line-height: 20px;
  }

  #title {
    height: 30px;
    margin: 0 5px;
    padding-right: 5px;
  }

  #title h1 {
    margin: 0 5px;
    font-size: 1.5em;
    line-height: 30px;
  }

  #headermenu {
    height: 30px;
    position: fixed;
  }

  .navbar-inner {
    min-height: 30px;
    padding: 0 10px;
  }

  #overview-box {
    right: 10px;
    bottom: 40px;
  }

  #bottom-dock {
    width: 100%;
    height: auto;
  }

  #bottom-dock.visible {
    height: 100%;
    opacity: 1;
  }

  #bottom-dock.half-transparent {
    height: 100%;
    opacity: 1;
  }
}

/* #### Tablets Portrait or Landscape #### */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Tab adjustments */
  #dock {
    max-width: 340px;
  }
}

/* #### Desktops #### */
@media screen and (min-width: 1024px) {
  /* Desktop enhancements */
  .liz-repository-project-item {
    max-width: 320px;
  }
}
