/* SCATTER PLOT CSS */


#main_content_row {
    justify-content: space-between;
    margin:0px;
    padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

#mp-alert,
#topo-data-alert {
    position:relative;
    display: flex;
    top:40px;
    left:13px;
    z-index: 102;
    margin-right: 25px;
    border-radius: 5px;
    justify-content: center;

}

.main_dash_chart_col {
    padding:0px 10px 0px 10px;
    margin:0px;
}

.chart_row {
    justify-content: space-between;
    margin: 0px 0px 10px 0px;
}

.std_chart_div {
    position: relative;
    width: 100%;
    height: 50vh;
    margin:0px;
    border:none;
}

.std_card {
    position: relative;
    margin: 0px;
    padding:10px;
    border: 1px solid;
    border-radius: 10px;
    overflow: hidden;
    height: 50vh;
    width: 100%;
}

.std_graph {
    height: 45vh;
    width:100%;
}

#error_plot {
    height:43vh !important
}

#chart_wrapper,
#chart_wrapper > div{
    width:100% !important;
}

.chart_loader,
.chart_loader > div {
    width: 100% !important;
    height: 100%;
    justify-self: center;
    justify-items: center;
    align-items: center;
}

.std_card {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.std_card .Div {
    width:100%;
}

.std_mobile_chart_button {
    padding:10px;
    margin:7px;
    border-radius: 10px;
    font-size: var(--font-size-body);
    font-weight: bold;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.std_mobile_chart_button:hover {
    transform: scale(1.02);
}

.std_mobile_chart_button:active {
    transform: scale(0.98);
}

.std_table_card {
    position: relative;
    margin: 0px;
    padding:10px;
    border: 1px solid;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

@media screen and (orientation: landscape) {
    .std_graph_modal {
        height: 85vh;
        width:100%;
    }

    .modal-body-custom {
        width: 100%;
        transform: rotate(0deg);
        align-content: center;
    }

    
}

@media screen and (orientation: portrait) and (max-width:500px) {
    .std_graph_modal {
        height: 85vw;
        width:100%;
    }

    .modal-body-custom {
        width: 90vh;
        transform: rotate(90deg);
        align-content: end;
    }

}

@media screen and (orientation: portrait) and (min-width:501px) {
    .std_graph_modal {
        height: 85vw;
        width:100%;
    }

    .modal-body-custom {
        width: 100%;
        transform: rotate(0deg);
        align-content: center;
    }

}



@media screen and (max-height:500px) and (orientation: landscape) {
    .std_chart_div{
        height: 100vh;
    }
    .std_card {
        height: 100vh;
    }
    .std_graph {
        height: 95vh;
    }

    #error_plot {
        height:93vh !important
    }

    .main_dash_chart_col{
        height: 100vh;
    }
}


@media screen and (min-width:992) and (max-width:1200px){
    .std_chart_div{
        height: 55vh;
    }
    .std_card {
        height: 55vh;
    }
    .std_graph {
        height: 50vh;
    }
    #error_plot {
        height:48vh !important
    }
    .main_dash_chart_col{
        height: 55vh;
    }
}
@media screen and (max-width:992px) and (min-height:500px){
    .std_chart_div{
        height: 60vw;
    }
    .std_card {
        height: 60vw;
    }
    .std_graph {
        height: 55vw;
    }
    #error_plot {
        height:51vw !important
    }
    .main_dash_chart_col{
        height: 60vw;
    }
}

/* When in vertical view with side bar (bpXlarge to large) add space between vertical charts */
@media screen and (min-width:992px) and (max-width:1200px){
    .main_dash_chart_col {
        padding:0px 10px 0px 10px;
        margin-bottom:10px;
    }

    .chart_row{
        margin: 0px;
    }
}



/* When in vertical view (bp large and below) remove side padding and add vertical space between cards */
@media screen and (max-width:992px){
    .main_dash_chart_col {
        padding:0px;
        margin-bottom:0px;
        margin-top:10px;
    }

    

    .chart_row{
        margin: 0px;
    }
}


.dropdown-up .Select-menu-outer {
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 5px;
    left:0px;
    border-radius:5px;
    width:130px;
}

.dropdown-up .VirtualizedSelectOption {
    font-weight:normal;
}
.dropdown-up .VirtualizedSelectSelectedOption {
    font-weight:bold;
}


.buttons-div {
    position: relative;
    bottom:8px;
}

#line_navigation_buttons_div {
    display: flex;
    position: absolute;
    justify-self: center;
    bottom: 8px;
    justify-content: center;
    align-items: center
}

@media screen and (max-width:450px) {
    #line_navigation_buttons_div {
        justify-self: end;
        padding-right:10px
    }
}

.profile_nav_buttons {
    margin: 5px;
    position: relative;
    z-index: 100;
    border-radius: 5px;
    width: 80px;
    height: 30px;
    line-height: 10px;
    transition: transform 0.2s ease-in-out;
}

.profile_nav_buttons:hover {
    transform: scale(1.05);
    cursor: pointer;
}


#error_bar_dropdown_holder_div {
    position:absolute;
    bottom:20px;
    justify-self:center;

}


.dropdown-up {
    font-size: var(--font-size-dropdown);
    font-weight: bold;
    position: relative;
    border-radius: 5px;
    width: 120px;
    height: 25px;
}


@media screen and (max-width:992px){
    #main_dash_charts {
        padding:0px 0px 0px 0px;
    }
    
}


/* LIGHT MODE STYLES */

.light-mode .std_card {
    box-shadow: 0px 0px 0px rgb(160, 160, 160);
    border-color: #ccc; 
    background-color:white;
}

.light-mode .std_mobile_chart_button {
    color:rgb(16, 51, 91);
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.light-mode .std_mobile_chart_button:hover {
    background-color: #f0f0f0;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.light-mode .std_mobile_chart_button:active {
    background-color: #e0e0e0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    color:rgb(16, 51, 91);
}

.light-mode .profile_nav_buttons {
    color:white
}

.light-mode .profile_nav_buttons:hover {
    color: white
}


.light-mode .Select-control {
    background-color: white;
}

.light-mode .Select-menu-outer {
    background-color: white;
}

.light-mode .VirtualizedSelectOption {
    color:black  
}

.light-mode .std_table_card {
    background-color: white;
    border: none;
}

/* DARK MODE STYLES */

.dark-mode .std_table_card {
    background-color: #111111;
    border:none
}

.dark-mode #map_info_modal_body {
    background-color: #10335b;
}


.dark-mode #survey-unit-dropdown .Select-control,
.dark-mode #survey-line-dropdown .Select-control,
.dark-mode #survey-type-dropdown .Select-control,
.dark-mode #error-bar-dropdown .Select-control {
    background-color: #292929!important;
    border: none;
    background-color: #424242;
}

.dark-mode .Select-menu-outer {
    background-color: #424242;
    
    border: none
}
.dark-mode .Select-control,
.dark-mode .Select--single > .Select-control .Select-value,
.dark-mode .Select-placeholder,
.dark-mode .Select-value-label,
.dark-mode .Select-option {
    color: white !important;
}



.dark-mode .VirtualizedSelectOption {
    color:white; 
}

.dark-mode .std_card {
    box-shadow: 0px 0px 0px rgb(160, 160, 160);
    border: 2px solid #424242; 
    background-color:#111111;
}

.dark-mode .profile_nav_buttons {
    color:white
}

.dark-mode .profile_nav_buttons:hover {
    color: white
}

.dark-mode .std_mobile_chart_button {
    color:white;
    background-color: #212121;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .std_mobile_chart_button:hover {
    background-color: #424242;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    color: white
}

.dark-mode .std_mobile_chart_button:active {
    background-color: #424242;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    color:white;
}


/* ISSUE - modals are not in the theme wrapper so harder to switch between light and dark mode */
/* .modal-content  {
    background-color: white !important;
} */

.modal-title {
    color: rgb(16, 51, 91);
}
