/* General Layout */

#map {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#legend {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 20px;
    width: 200px;
    height: 280px;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: all 300ms ease;
    cursor: pointer;
}

#legend:before {
    content: "";
    position: absolute;
    top: 27px;
    right: 20px;
    width: 18px;
    height: 10px;
    background-image: url('/content/dam/cargo/network-map/img/expand.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(180deg);
    transition: all 300ms ease;
}

#legend.hide {
    bottom: -220px;
    transition: all 300ms ease;
}

#legend.hide:before {
    transform: rotate(0deg);
    transition: all 300ms ease;
}

#legend img {
    width: 100%;
    height: auto;
}

/* AMMAP styles */

/* Hide it */
.amcharts-chart-div a {
    display: none !important;
}

/* References gradient created under 'SVG defs' in the JSON */
.amcharts-map-area-unlisted {
    fill: url(#gradient);
}

/* Description popup */
.ammapDescriptionWindow {
    font-size: 11px;
    font-family: Arial, sans-serif;
    background-color: rgba(250,250,250,0.85);
    border-width: 0;
    color: #222222;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 300px !important;
}

@media (max-width: 767px) {
    .ammapDescriptionWindow {
        position: fixed !important;
        left: calc(50% - 125px) !important;
        top: calc(50% - 125px)!important;
    }
}

.ammapDescriptionWindow a {
    color: #61126B;
    text-decoration: none;
}

.ammapDescriptionTitle {
    font-size: 12px;
    color: #e1163c;
    font-weight: bold;
    font-family: Arial, sans-serif;
    padding-bottom: 0;
}

.ammapDescriptionText {
    overflow: auto;
}