/*
* These CSS styles needs to modify the specific selectors generated by `Dash`. In some cases, a very specific selector is needed to work
* */

:root {
    --bg-color: #111;
    --bg-color-secondary: #333;
    --bg-color-tertiary: rgba(85, 85, 85, 0.1);
    --bg-gradient: linear-gradient(32deg, rgba(20,20,20,1) 0%, rgba(40,40,40,1) 58%, rgba(45,45,45,1) 100%);

}

html {
    background-image: var(--bg-gradient);
    color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
    font-size: 2rem;
    margin: 2rem 0 0 0;
    text-align: center;
}

h1, h2, h3 {
    color: #ccc;
}

.subtitle {
    font-size: 1rem;
    margin: 1rem 0 .5rem 0;
    color: #ccc;
    text-align: center;
    font-weight: lighter;
    text-wrap: wrap;
}

.hidden {
    opacity: 0;
    transition: all .7s ease;
    max-height: 0;
    max-width: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.instructions {
    width: 80%;
    font-size: 10pt;
    text-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    padding: 1rem;
}

.show {
    opacity: 1;
    transition: all .7s ease;
    max-height: 2000px;
    max-width: 900px;
    overflow: hidden;
}

.instructions h3 {
    color: white;
}

#toggle_instructions {
    margin-top: 1rem;
}

.instructions ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    line-height: 1.3rem;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-wrap: wrap;
}

.header h1 {
    margin: 2rem 0 .5rem 0;
}

.controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.slider {
    width: 50%;
    color: #000;
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    background-color: var(--bg-color-secondary);
    border-radius: 5px;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 1rem;
    width: 100%;
}

.plot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    white-space: normal;
}

.ml-map {
    height: 1000px;
    width: 100%;
}

.title_ml {
    text-align: center;
    font-size: 2.5rem;
}

.ml-zone, .parameters_ml {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.plot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
}

.plot-container > h2 {
    margin: 2rem 0 2rem 0;
    color:#bbb;
    font-size: 1.3rem;
    text-wrap: wrap;
}

input, .Select-value-label {
    color: #fff !important;
    font-size: 1.2rem;
    background-color: var(--bg-color-secondary) !important;
}

.DateRangePickerInput_arrow_svg {
    background-color: var(--bg-color-secondary) !important;
    height: 46px !important;
    fill: #fff !important;
}


.Select-menu-outer {
    background-color: #333 !important; /* Change the background color of the dropdown */
    color: white !important;           /* Change the text color in the dropdown */
}

.CalendarMonth, .CalendarMonth_1, .CalendarMonthGrid_month__hidden, .CalendarDay, .DayPickerNavigation_button, .CalendarMonth_caption {
    background-color: var(--bg-color-secondary) !important;
    color: #fff !important;
    stroke: #fff !important;
}

#table, #table_ml, #table_last {
    width: 100%;
}

#dd_type {
    margin: 2rem 0 1rem 10rem;
    width: 30%;
}

#dd_type_ml, #dd_hour_ml {
    width:70%;
    font-size: 1.2rem;
}

h3 {
    margin: 1rem 0 0 0;
}

#table_clear, #table_ml_clear, #toggle_instructions {
    padding: 0.5rem 1rem;
    color: white;
    background-color: var(--bg-color-tertiary);
    border: 1px white solid;
    cursor: pointer;
}

#model_version {
    color: #aaa;
    font-style: italic;
    font-size: 0.8rem;
    margin: 0;
}

#table_clear:hover, #table_ml_clear:hover, #toggle_instructions:hover {
    background-color: var(--bg-color);
    transition: ease .2s;
}

.Select-control {
    background-color: var(--bg-color-secondary) !important;
}

.DayPickerNavigation_svg__vertical {
    stroke: white;
    fill: white;
}

.DateInput, .DateRangePicker_picker, .DayPicker, .CalendarMonthGrid {
    background-color: var(--bg-color-secondary);
}

#date_range {
    width: 50%;
    color: #fff;
    font-size: 1rem;
    margin: 2rem 0 1rem 0;
}

#map {
    width: 100%;
    height: 500px;
}

#hourly, #daily, #scatter {
    width: 100%;
    height: 500px;
}
#table, #table_ml, #table_last {
    padding: 1rem 0;
    width: 100% ;
    #table, #table_ml, #table_last {
        padding: 1rem 0;
        width: 380px ;
        text-wrap: wrap;
    }
    text-wrap: wrap;
}

@media screen and (max-width: 850px) {
    .first-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    #toggle_instructions, .instructions {
        margin-bottom: 2rem;
    }

    .instructions {
        padding: 1rem !important;
    }

    .ml-map {
        height: 1000px;
        width: 380px;
    }
    .ml-zone {
        padding: 0 ;
        flex-direction: column-reverse;
    }
    .row {
        flex-direction: column;
    }

    .plot-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem ;
    }

    #dd_type {
        margin: 0;
    }
    #table, #table_ml, #table_last {
        padding: 1rem 0;
        width: 380px ;
        text-wrap: wrap;
    }

    .plot, .plot-container, #map, #hourly, #dd_type, #date_range, .header, .first-row {

        width: 380px;
        height: auto;
    }

    .controls {
        width: 100%;
        gap: 4rem;
        justify-content: space-between;
    }

    #date_range {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }
    h1, h2, h3, h4 {
        text-wrap: wrap;
    }
    .controls {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        width: 100%;
    }

}

