:root {
    --bubble-width: 85px;
    --bubble-top-offset: 50px;
    --slider-thumb-width: 25px;
    --slider-height: 20px;
}

/*---------
Map elements*/
#map_container {
    position: relative; 
    border-style: 1px black;
}
#map {
    height: 0; 
    overflow: hidden; 
    padding-bottom: 70%; 
    padding-top: 30px; 
    position: relative; 
    border:1px solid black; 
    z-index:0
}
.weatherOverlay {
    transition: opacity 0.5s ease-in-out;
}
.noRadarData {
    color: red;
    font: bold 30px Arial;
    opacity: 0;
}

/*---------
End map elements*/

/*----------
Map key elements*/
#rainKeyBlocksContainer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    font: 12px Arial bold;
    -webkit-overflow-scrolling: touch;
}
#rainKeyBlocksContainer::-webkit-scrollbar {
    display: none;
}
.keyColour {
    flex: 0 0 auto;
    margin: 3px;
    border: 1px solid black;
    border-radius: 3px;
    width:  fit-content;
    text-align: center;
    padding-left: 2px;
    padding-right: 2px;
}
.keyTextLight {
    /* font-style: normal;
    font-size: smaller; */
    color: white;
}
.keyTextDark {
    /* font-style: normal;
    font-size: smaller; */
    color: black;
}
#r01{background:#0000fe;}
#r02{background:#3265fe;}
#r03{background:#7f7f00;} 
#r04{background:#fecb00;} 
#r05{background:#fe9800;} 
#r06{background:#fe0000;} 
#r07{background:#fe00fe;} 
#r08{background:#e5fefe;}

#keyRateText {
    line-height: 20px; /*vertical-align the text...*/
}
/*End of key elements
-----------*/

/*-------
Station name label*/
#forecastStation {
    font-family: Arial;
    font-weight: bold;
    text-transform: lowercase;
    text-align: center;
    white-space: nowrap;
}
#forecastStation::first-letter {
    text-transform: capitalize;
}
/* End station name label
----------*/

/*---------
Container for user input slider, its bubble and the weather type/probability elements*/
#forecastContainer {
    width: 100%;
    overflow-x: hidden;
}

/*Selection slider (input)*/
#slideContainer {
    display: block;
    height: 35px;
    padding-left: calc((var(--bubble-width) - var(--slider-thumb-width))/2);
    padding-right: calc((var(--bubble-width) - var(--slider-thumb-width))/2);
    padding-top: calc(var(--bubble-top-offset) - 20px);
}
#weatherSlider {
    -webkit-appearance: none;
    width: 100%;
    height: var(--slider-height);
    border-radius: 10px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin: 0px;
}
#weatherSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--slider-thumb-width);
    border-radius: 10px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}
#weatherSlider:hover {
    opacity: 1;
}
output {
    position: relative;
    background-image: -moz-linear-gradient(top, #444444, #999999);
    background-image: -o-linear-gradient(top, #444444, #999999);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#444444), to(#999999));
    background-image: -webkit-linear-gradient(top, #444444, #999999);
    width: var(--bubble-width);
    text-align: center;
    background-color: gray;
    color: white;
    border-radius: 10px;
    display: inline-block;
    font: bold 15px Arial;/* Georgia;*/
    left: 0;
    top: calc(-1 * var(--bubble-top-offset));
}
output:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid #999999;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    margin-top: -1px;
}
/*End selection slider (input)*/
/* End container for user input slider and its bubble
-----------*/

/*--------
Container for scrollable weather forecast (type/probability) elements*/
#forecasts {
    text-align: centre;
    width: fit-content;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: left 0.1s ease-in-out;
}

.iconContainer {
    transition: background-color 0.5s ease-in-out;
    border-radius: 5px;
    text-align: center;
}
.iconContainer[nightTime] {
    background-color: lightgray;

}
.iconContainer[selected] {
    background-color: cyan;
}
.precipitationProbabilityText {
    font-style: normal;
}
/*End Container for scrollable weather forecast (type/probability) elements
----------*/

