/*---------------------------------------------------------------------------*/
/* POPUP --------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
.boatingPopup {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;

    padding: 0.5rem 0;
}

.boatingSummaryWrapper {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 0.5rem;
}

.boatingPhotoWrapper {
    margin: 0.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Most images come at around 1.3 width-to-height ratio. */
    width: 120px;
    height: 90px;
}

.boatingPhoto {
    background-image: url("../img/photos/placeholder-image.jpg");
    width: 120px;
    height: 90px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.loadingIndicator {
    color: grey;
}





/*---------------------------------------------------------------------------*/
/* LEGEND -------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#legend #legendItems {
    width: 19rem;
}

#legend #legendContent {
    width: 19rem;
}

.legendItemRow {
    padding: 0.75rem 0.5rem;
}

.legendPanel {
    width: 1.75rem;
    height: 1.75rem;
}

.legendTitle {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}





/*---------------------------------------------------------------------------*/
/* SEARCH -------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
.esri-search__clear-button .esri-icon-close:before {
    color: #6e6e6e;
}

#searchDiv {
    min-width: 12rem;
}





/*---------------------------------------------------------------------------*/
/* NAVBAR ---------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#boat-ramps-link {
    display: flex;
    flex-direction: row;
    margin-left: 4px;
    color: #333;
    white-space: nowrap;
}

#boat-ramps-link:hover {
    text-decoration: none;
}

#boat-ramps-link img {
    width: 1rem;
    margin-top: 2px;
    margin-right: 2px;
}

#boat-ramps-link p {
    margin: 0;
}





/*---------------------------------------------------------------------------*/
/* LEFT PANEL ---------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#infoDrawer {
    z-index: 102;
    
    position: absolute;
    top: 0rem;
    left: -22rem;

    width: 19rem;
    /* height: calc(100% - 30px); 30px is the height of the footer. */
    max-height: 90%;
    max-width: 80%;

    display: flex;
    flex-direction: column;

    background-color: white;
    border: 1px solid #ccc;

    overflow: auto;

    transition: left 0.3s ease-in-out;
}

#infoDrawer p {
    margin: 0;
}

#infoDrawer .titlebar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 1rem;

    color: #fff;
    background-color: #018753;

    border-bottom: 1px solid #ccc;
}

#infoDrawer .titlebar img {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

#infoDrawer .titlebar p {
    font-size: 1rem;
    font-weight: bold;
    padding-right: 1rem;
}

#infoDrawer .generalInfo {
    padding: 0 0.5rem;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#infoDrawer .generalInfoLeft {
    width: 50%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#infoDrawer .generalInfoRight {
    width: 50%;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#infoDrawer .infoWrapper .name {
    color: #767676;
}

#infoDrawer .infoWrapper .value {
    color: #000;
}

#infoDrawer .infoWrapper .extra {
    font-size: 0.75rem;
    font-style: italic;
}

#infoDrawer .infoWrapper .overflowText {
    white-space: nowrap;
}

#infoDrawer .infoWrapper .noOverflowText {
    max-width: 90%;
}

#infoDrawer .infoWrapper .projectStatus {
    color: #018753;
}

#infoDrawer .infoRows {
    display: flex;
    flex-direction: column;
}

#infoDrawer .infoRows .infoWrapper {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

/* Overwriting Bootstrap */
#infoDrawer .accordion-button {
    padding: 0.75rem 1rem;
    color: #0c63e4;
    background-color: #e7f1ff;
}

#infoDrawer #projectInfo .infoWrapper {
    padding: 0.5rem;
}

#infoDrawer .carousel-item p {
    text-align: center;
}

#infoDrawer .accordion-item:last-of-type {
    border-bottom: none;
}

#legendItems {
    max-height: calc(100% - 200px);
}


@media only screen and (max-width: 1280px) {
    .logo-img {
        height: 2rem;
        padding-left: 1rem;
    }
    #pageTitle {
      color: #3063a5 !important;
      padding-left: 2%;
      padding-top: 1.5%;
      padding-right: 1%;
      height: 3.7rem;
      display: flex;
      width: 100%;
      font-size: medium;
      align-items: center;
      white-space: normal;
      text-align: center;
    }
  }
  
  @media only screen and (max-width: 600px) {
    .logo-img {
      width: 75px;
      height: 1.5rem;
      padding-left: 0.2rem;
    }
  
    #pageTitle {
      color: #3063a5 !important;
      height: 2.5rem;
      display: flex;
      font-size: small;
      align-items: center;
      white-space: normal;
      text-align: center;
      margin-top: 0.5rem;
      width: 100%;
      margin-bottom: 0;
      justify-content: center;
    }
  
    #legendContent {
        width: 20rem;
    }

    /* The navbar items will be laid out vertically on small screens. */
    #navbar-top {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }

    #searchDiv {
        width: 75%;
        margin-top: 0.5rem;
    }

    #boat-ramps-link {
        margin-top: 0.5rem;
    }

    .content_container {
        top: calc(168px + 3px);
        height: calc(100% - 168px - 3px);
    }
  }
  