﻿/* Additional style rules for Current Condition app */

.content
{
    padding-bottom: unset;
}

#hoverInfo
{
    position: absolute;
    border-radius: 4px;
    pointer-events: none;
}

section
{
    padding: 0;
}

.bottom-panel
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: white;
    box-shadow: 0 -2px 10px rgba( 0, 0, 0, 0.2 );
    transform: translateY( 100% );
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

.bottom-panel.active
{
    transform: translateY( 0 );
}

#chart-container
{
    height: 400px;
}

/* Style for visible layers in the LayerList */
.visible-layer .esri-layer-list__item-label
{
    font-weight: bold; /* Bold the visible layer's label */
    color: #007bff; /* Optional: Highlight with a primary color */
}

.thermometer-card
{
    backdrop-filter: blur( 15px ); /* Optional: blurs the background content behind the card, works on modern browsers */
    border: 1px solid rgba( 0, 0, 0, 0.2 ); /* Optional: slightly transparent border */
    left: 10px;
    position: absolute;
    top: 100px;
    z-index: 1000;
}

#thermometerLegend
{
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100px; /* Adjust height if necessary */
    justify-content: space-between;
    width: 100%;
}

.thermometer-card .card-header
{
    font-size: 0.5rem; /* Adjusts the font size of the card heading */
}

.thermo-section
{
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    width: 100%;
}

.thermo-background
{
    background: linear-gradient( to top, rgba( 245, 245, 220, 0.5 ), rgba( 128, 0, 128, 0.5 ) ); /* Adjust colors as necessary */
    border-radius: 15px;
    height: 100%;
    width: 100%;
}

.max-value,
.min-value
{
    font-size: 0.6rem; /* Adjusts the font size of the max and min temperature labels */
    left: 100%;
    position: absolute;
    white-space: nowrap;
}

.max-value
{
    margin-left: 5px; /* adjust spacing from the thermometer */
    top: 0;
}

#noDataLegend div
{
    font-size: 0.8rem; /* Match small font size */
    color: #6c757d; /* Gray color for "No Data" text */
}

#noDataLegend div:first-child
{
    background-color: #bdc1c7; /* Same gray as the map no-data squares */
    border-radius: 2px; /* Slight rounding */
}

.min-value
{
    bottom: 0;
    margin-left: 5px; /* adjust spacing from the thermometer */
}

.choices.is-disabled
{
    color: #666; /* Darker text */
    cursor: not-allowed; /* Shows a 'not-allowed' cursor on hover */
    opacity: 0.5; /* Makes the dropdown semi-transparent */
}
