/* ======================================= */
/* ccMap css variables */
:root {
    --cc-map-min-height: 150px;
    --cc-map-max-height: 925px;
    --cc-range-height: 75px;
    --cc-range-padding-vertical: 4px;
    --cc-range-padding-horizontal: 25px;
    --cc-range-set-width: 120px;
}

/* ======================================= */
/* main container of map and slider */

#ccMapContainer {
    position: relative;
    top: 0px;
    left: 0px;
    width: calc(100% - 2px);
    /*
    height: min(calc(100% - 2px), calc(100vmin - 2px));
    height: min(calc(100% - 2px), min(calc(50vh - 2px), calc(100vmin - 2px)));
    */
    height: min(calc(50vh - 2px), calc(100vmin - 2px));
    min-height: calc(var(--cc-range-height) + var(--cc-map-min-height));
    max-height: min(calc(var(--cc-range-height) + var(--cc-map-max-height)), 75vmin);
    background: rgba(255,255,0,0);
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 4px;
    background-clip: border-box;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.25em;
}

/* ======================================= */
/* loading map settings */

div.ccMapLoading:after {
    position: absolute;
    z-index: 10000;
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    content: "";
    border: 20px solid rgba(243, 243, 243, 1);
    border-radius: 50%;
    border-top: 20px solid #59a2bb;
    /* Safari */
    -webkit-animation: spin 1.5s linear infinite;
    animation: mapLoadSpin 1.5s linear infinite;

}
/* Safari */
@-webkit-keyframes mapLoadSpin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes mapLoadSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ======================================= */
/* settings of all map parts */

#ccMap {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: calc(100% - var(--cc-range-height));
    max-height: var(--cc-map-max-height);
    background: rgba(128,128,128,1);
    padding: 0px;
    margin: 0px;
}

#ccRange {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: calc(100% - (2 * var(--cc-range-padding-horizontal)) - var(--cc-range-set-width));
    height: calc(var(--cc-range-height) - (2 * var(--cc-range-padding-vertical)));
    background: rgba(255,255,255,1);
    padding: var(--cc-range-padding-vertical) var(--cc-range-padding-horizontal) ;
    margin: 0px;
}

#ccRangeSet {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: var(--cc-range-set-width);
    height: var(--cc-range-height);
    background: rgba(255,255,255,1);
    padding: 0px ;
    margin: 0px;
}

#ccMapLegend {
    background: rgba(255,255,255,1);
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.5em;
}
.ccMapLegendLine {
    padding: 2px;
}
.ccMapLegendMarker {
    display: inline-block;
    vertical-align: middle;
    height: auto;
    width: 30px;
    text-align: center;
}
.ccMapLegendCircle {
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #000000;
    background: #ff0000;
    vertical-align: middle;
}
.ccMapLegendCircleGreen {
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #000000;
    background: #00a800;
    vertical-align: middle;
}
.ccMapLegendCircle0 {
    width: 6px;
    height: 6px;
}
.ccMapLegendCircle1 {
    width: 12px;
    height: 12px;
}
.ccMapLegendCircle2 {
    width: 18px;
    height: 18px;
}
.ccMapLegendCircle3 {
    width: 24px;
    height: 24px;
}
.ccMapLegendLabel {
    display: inline-block;
    height: auto;
    vertical-align: middle;
}


/* ======================================= */
/* Extra slider style settings */

.noUi-connect {
    background: #59a2bb;
}
.noUi-value-horizontal {
    -webkit-transform: translate(-50%, 90%);
    /*! transform: translate(-50%, 50%); */
}


/* ======================================= */
/* Slider info (bottom right part) */

#ccSliderDisplay {
    position: absolute;
    top: 25%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    font-size: 14px;
}

#ccPeriodTotalDisplay,
#ccParticipantsDisplay {
    position: absolute;
    top: 75%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background: rgba(255,0,0,0);
    font-size: 12px;
    text-align: center;

}

/* ======================================= */
/* Slider activation button */
/* in 'Connected Contests' like style */

#ccSliderButton {
    position: absolute;
    top: 75%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #2a88a8;
    background: #ffffff;
    font-size: 12px;
    cursor: pointer;
    padding: 0.25em 0.5em;
}

#ccSliderButton:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

