/* Load Roboto for this page */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* Page-wide font and base color */
:root {
    --base-font: 'Roboto', sans-serif;
    --base-color: #404040;
}

/* Apply base font, color and page background broadly */
html, body {
    font-family: var(--base-font);
    color: var(--base-color);
    background-color: #ebebeb;
    min-height: 100vh;
}

/* Ensure form controls, links and headings use the same font/color */
body, button, input, select, textarea, a {
    font-family: var(--base-font);
    color: var(--base-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--base-font);
    color: var(--base-color);
}

/* Links should use the same color by default */
a, a:link, a:visited {
    color: var(--base-color);
}

a:hover, a:focus {
    color: var(--base-color);
    text-decoration: underline;
}

/* Placeholder text for inputs */
::placeholder {
    color: rgba(64, 64, 64, 0.6);
}

/* Ensure buttons inherit the text color unless intentionally styled */
.btn, .btn * {
    color: inherit;
    font-size: 0.9rem;
    border: 1px solid #838383;
    box-shadow: none;
}

hr {
    display: none;
}

.progress-bar {
    line-height: 16px;
    height: 2rem !important;
}

.table > tbody > tr > td {
    padding-bottom: 0px !important;
}

.progress {
    height: 2rem;
}

.progress-bar-info {
    font-size: 1.4rem !important;
}

.aniswath-preview-img {
    /* Make the image fill its container so the overlay can cover it */
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Container for preview image to allow overlaying the number */
.aniswath-preview-img {
    /* Make the image fill its container so the overlay can cover it */
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100% !important;
}

/* Container for preview image to allow overlaying the number */
.aniswath-preview {
    position: relative;
    display: block;
    width: 100%;
}

/* Overlay number shown on top of the preview image and sized to cover it */
.aniswath-overlay {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D7D6D6; /* requested color */
    font-weight: 800;
    /* Make the number as large as possible while clamping to sensible bounds */
    font-size: clamp(2rem, 20vmin, 12rem);
    /*
      Prefer the smaller of a viewport-width-based and viewport-height-based
      size to better match the visible image dimensions; clamp to sensible
      min/max to avoid absurd sizes.
    */
    font-size: clamp(2rem, min(15vw, 20vh), 14rem);
    line-height: 1;
    pointer-events: none; /* don't block clicks */
    user-select: none;
    opacity: 0.5;
    /*text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);*/
    /*font-family: 'Roboto', sans-serif;*/
}

.alert-info {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.order-img {
    width: 16em !important;
    margin-top: 1em !important;
}

/*
  Overwrite nav background for lighter pages.
*/
.software-lp .navbar:not(.top-nav-collapse) {
    background: #5991fb !important;
}

.search-progress {
    max-width: 16rem !important;
    min-width: 16rem !important;
    height: 30px;
}

.search-progress-bar {
    height: 30px !important;
}

.grid-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto; /* center if desired */
    --grid-gap: 8px;
    display: grid;
    gap: var(--grid-gap); /* space between cells */
    /* Ensure each column is at least 15rem wide and grow to fill available space.
       Using auto-fit makes the grid automatically wrap when the container is too
       narrow for additional 15rem columns. */
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    align-items: stretch; /* make items equal height */
    padding: 8px;
}

/* item styling */
.grid-item {
    background: #FFFFFF;
    border: 1px solid #d6e0f5;
    padding: 12px;
    min-width: 15rem;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 16.7rem;
    margin-left: auto;
    margin-right: auto;
}


/* small tweak for very-narrow containers */
@media (max-width: 240px) {
    .grid-box {
        gap: 6px;
        padding: 6px;
    }

    .grid-item {
        padding: 8px;
        font-size: 0.9rem;
    }
}

.sub-header-details {
    margin-left: auto;
    margin-right: auto;
    max-width: 39rem;
}

#stormSearchInput {
    border-radius: 1rem;
    padding-left: 1rem;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border: 1px solid #B3B3B3;
    margin-top: 1rem;
    box-shadow: rgb(107 107 107 / 24%) 1px 1px 4px 1px;
}

.hail-map-sub-title {
    display: block;
}

.station-link {
    font-size: 1rem;
    font-weight: bolder;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

/* make the slider touch-friendly */
#impactRangeSlider .noUi-target {
    height: 1.2rem;
}

#impactRangeSlider .noUi-handle {
    width: 1.6rem;
    height: 1.6rem;
    top: -0.2rem;
}

@media (max-width: 767.98px) {
    #impactRangeSlider .noUi-handle {
        width: 2rem;
        height: 2rem;
    }
}

.no-results-div {
    text-align: center;
    margin-top: 3rem;
    display: none;
}

.seo-btn {
    margin-left: auto;
    margin-right: auto;
}

.right-panel-storm-info {
    text-align: center;
    /*margin-top: 2.8rem;*/
    padding-top: 0 !important;
}

.fa {
    border: none;
}

.radar-hover-text {
    position: absolute;
}

.storm-details-fa {
    color: #33b5e5;
    margin-bottom: 0.2rem;
}

/* Radar image hover text: positioned at top center of the image */
.radar-container {
    position: relative;
    margin-top: 0.2rem;
    /*display: inline-block; !* shrink-wrap to image width *!*/
}

.radar-container img {
    display: block;
    width: 100%;
    height: auto;
}

.radar-hover-text {
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translate(-50%, 0);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.5rem;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: none;
}

.panel {
    margin-bottom: 1rem;
}

.dar-btn-2 {
    font-size: 1rem;
    /*width: 100%;*/
    border-radius: 0.8rem;
    padding: 0.5em 10px;
    box-shadow: rgb(0 0 0 / 24%) 2px 2px 2px 1px;
    line-height: 1.0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.button-sub-text {
    border: none;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.impact-score-above-label {
    font-weight: 999;
    font-size: 1.5rem;
    font-style: italic;
    color: #81868B !important;
}

.fa-impact-score {
    color: #808080d4;
    font-size: 1.2rem !important;
    margin-bottom: 4px;
}

.fa-impact-score-span {
    vertical-align: super;
}

.search-limit-text {
    font-size: 1.2rem;
    color: #00000087;
    font-weight: bolder;
}

.popover-body {
    line-height: 1.2;
}