/* styles.css */

body {
    font-family: "Roboto", Arial, sans-serif;
    margin: 0 auto;
}

.brand-bar {
/*    background-color: #5AA6CA;*/
    color: #222;
    font-weight: bold;
    padding: .75rem 1rem;
    background-image:url(nav-bg-transparent.png);
    background-size: contain;
    background-position: bottom right 0px;
    background-repeat: no-repeat;
}
.brand-bar-wrapper {
    background: linear-gradient(rgba(98, 205, 255, 0.95), rgba(255, 255, 255, 0.95));
    border-bottom: 1px solid #aaa;
    box-shadow: 0px 0px 10px rgba(0,0,0,.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.brand-bar-link {
    color: #000;
    text-decoration: none;
}

.brand-bar-link:hover {
    color: #000;
    text-decoration: underline;
}

.brand-bar-link:visited {
    color: #000;
    text-decoration: none;
}

.brand-bar-link:active {
    color: #000;
    text-decoration: none;
}

h1 {}

.main-page-title {
    text-align: center;
    margin-bottom: .5rem;
    margin-top: 4.5rem;
}
.forecast-generation-container {
    padding-bottom: 3rem;
}

.forecast-generation-complete .main-page-title {
    margin-top: 6.5rem;
}

.how-to-link {
    display: inline;
    margin: 1rem .5rem;
}
h3.generate-heading {
    margin-top: 15px;
}
h3 {
    font-size: 1.25rem;
}
.skewt-instructions {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.component-container {
    padding: 3rem 0 0 0;
    margin: 0 0 3rem 0;
    border-top: 10px solid #eee;
}

input[type="text"], input[type="number"] {
    padding: 5px;
    width: 136px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}
.forecast-input-container {
    border:1px solid #ddd;
    box-shadow: 1px 1px 10px rgba(0,0,0,.2);
}

.input-group {
    text-align: center;
    margin-bottom: 20px;
}

.input-description {
    font-size: 80%;
    margin-top: .5rem;
    margin-bottom: 1rem;
    color: #444;
    padding-left: 4px;
}

.generate-heading {
    margin-bottom: 5px;
}

.button {
    margin: 5px;
    padding: 10px;
    font-weight: bold;
    background-color: #0091D2;
    border: 1px solid #0091D2;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.1rem;
    width: 170px;
}
.button:hover {
    background-color: #05A3EB;
}
.reset-button {
    background-color:white;
    color: #0091D2;
    border: 1px solid #0091D2;
/*    margin-top: 0;*/
    /* font-size: .8rem; */
    width: 125px;
}
.reset-button:hover {
    background-color: #D6EAFF;
}

.graph-container {
    width: 100%;
    height: 500px;
}

.cape-li-graph-container {
    width: 100%;
    height: 400px;
    margin-top: 40px;
}

.skewt-chart-container {
    text-align: center;
    /* max-width: 1200px; */
    margin: 0 auto;
    /* border-top: 3px solid #eee; */
}

.skewt-chart-row {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.skewt-image {
    /* min-height: 200px; */
    background-color: #eee;
}

.hidden {
/*    opacity: 0;*/
    display: none;
}

.visible {
    display: block;
}

.visible > div {
    display: block;
}

.plot-container {
    min-height: 400px;
}

#journey-map .plot-container {
    height: 800px;
}

#chart-section {
    display: none;
}

#map-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    height: 350px;
    z-index: 100;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease-in-out;
}

.skewt-times {
    margin-top: 5px;
    font-style: italic;
    display: block;
}

.skewt-date {
    margin: .5rem 0;
    font-weight: bold;
}

.skewt-date-local {
    font-weight: bold;    
}

.skewt-cape {
    margin: 1rem 0 0 0;
}

.skewt-location {
    margin: .5rem 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
    padding: .5rem 0;
}

.skewt-location-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skewt-coordinates, .skewt-elevation {
    display: inline;
    margin-top: 0;
}

.skewt-waypoint-id {
    color: #0091D2;
    font-weight: bold;
}

.skewt-waypoint-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #DB4437;  /* Google Maps marker red */
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    vertical-align: middle;
}

.skewt-lifted-index, .skewt-k-index, .skewt-convective-inhibition, .skewt-lcl-altitude {
    margin-top: .5rem;
}

.skewt-index {
    margin-top: .5rem;
}

.skewt-advanced-checkbox {
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}

.dash-graph {
    max-width: 1200px;
    /* margin: 2rem auto; */
}

.dash-dropdown {
    width: 100%;
}

.measurement-yellow {
    color: orange;
}

.measurement-red {
    color: red;
}

.chart-error {
    color: #000;
    padding: 1rem;
    margin: 1rem auto 3rem auto;
    background-color: rgba(255, 0, 0, .05);
    border-radius: 10px;
    border: 1px solid red;
    max-width: 1200px;
}

.forecast-imagery-error {
    background-color: #ebebeb;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* Flexbox container for the chart and info */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.row-attribution {
    /* margin-bottom: 2rem; */
    text-align: center;
    background-color: #eee;
    padding: 1rem 0;
    border-top: 1px solid #ccc;
}

/* Column for the Skew-T chart */
.col-lg-9 {
    flex: 0 0 75%;  /* 75% width on large screens */
    max-width: 75%;
}

.max-1200 {
    max-width: 1200px;
    margin: 0 auto;
}

.row-instructions {
    max-width: 1200px;
    width: 90%;
    margin: .8rem auto 1rem auto;
}

.sponsors-row {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.sponsors-container {}

.sponsor-group {
    margin: 2rem auto .5rem auto;
    text-align: center;
}

.sponsors-description {
    width: 90%;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* #maverick-sponsors .sponsor-group {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
} */

.sponsor-items-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sponsor-item {
    flex: 0 0 15%;
    max-width: 15%;
    text-align: center;
    background-color: #eee;
    padding: .5rem .2rem;
    border-radius: 5px;
    margin: .2rem;
    font-size: 80%;
}

.sponsor-item-g800 {
    flex: none;
    font-weight:  bold;
    width: auto;
    max-width: 300px;
    border: 2px solid #0091D2;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #e8f3f8;
    font-size: 100%;
}

.sponsor-item-maverick {
    font-weight: bold;
}

.sponsor-item-wright {
    background-color: transparent;
    border: 1px solid #ccc;
}

.sponsor-item-cub {
    margin-right: 5px;
    font-size: 90%;
}

.top-sponsors {
    margin-top: 4rem;
}

.sponsor-promo-link {
    display: block;
    margin: .5rem auto;
    text-align: center;
}

.how-to-heading {
    /* border-top: 2px solid #eee; */
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}

.how-to-container {}

.alert-bar-wrapper {
    max-width: 1114px;
    width: 90%;
    margin: 0 auto;
    background-color:rgb(255, 242, 242);
    padding: 1rem;
    border-radius: 10px;
}

.alert-bar {
    /* background-color: #FFDBDB; */
    color: red;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    width: 90%;
    padding: 0 1rem;
    margin: 0 auto;
    border-radius: 5px;
}

.alert-bar-content {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.row-instructions .col-lg-6 {
    margin: 1rem;
    background-color: #efefef;
    max-width: 45%;
    border-radius: 10px;
}

.row-instructions h3 {
    margin: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: .3rem;
    margin-bottom: 1rem;
}

.instructions-wrapper {
    padding: 1rem;
}

.row-instructions ul {
    margin-top: .3rem;
    padding-inline-start: 1rem;
}

.row-instructions ul li {
    margin-bottom: .3rem;
}

.row.max-1200 {
    margin: 1rem auto .5rem auto;
    /* border-top: 3px solid #eee; */
    /* border-bottom: 3px solid #eee; */
    padding: 1.5rem 1rem .5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 10px;
}


/* Column for the information next to the chart */
.col-lg-2 {
    flex: 0 0 16%;  /* 16% width on large screens */
    max-width: 16%;
}

.col-lg-3 {
    flex: 0 0 25%;  /* 25% width on large screens */
    max-width: 25%;
}

.col-lg-6 {
    flex: 0 0 50%;  /* 25% width on large screens */
    max-width: 50%;
}

.skewt-data-column {
    text-align: left;
}
.text-center {
    text-align: center;
}

.sponsorship-button {
    display: block;
    margin: 1rem;
    padding: 10px 20px;
    background-color: #0091D2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.sponsorship-button:hover {
    background-color: #05A3EB;
}

.sponsorship-button:visited {
    color: white;
}

.sponsorship-button:active {
    color: white;
}

.sponsorship-button-bronze {
    background-color: #b08d57;
}

.sponsorship-button-bronze:hover {
    background-color: #bf995f;
}

.sponsorship-button-silver {
    background-color: #929292;
}

.sponsorship-button-silver:hover {
    background-color: #a8a8a8;
}

.sponsorship-button-gold {
    background-color: #caab00;
}

.sponsorship-button-gold:hover {
    background-color: #e4c203;
}

.sponsorship-button-platinum {
    background-color: #E5E4E2;
}

.sponsorship-card {
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.sponsorship-mission {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sponsorship-description {
    font-style: italic;
}

.sponsorship-disclaimer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-row {
    border-top: 3px solid #eee;
    margin-top: 2rem;
    padding-top: 2rem;
    margin-bottom: 1rem;
}

.sponsor-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.sponsor-input {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sponsors-table-container {
    max-width: 1200px;
    margin: 2rem auto;
}

#sponsor-tier {
    margin: 1rem 0;
}

#add-sponsor-status {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}
.forecast-sponsor {
    padding: 1.5rem .5rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    font-size: 130%;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    border: 2px solid #0091D2;
    background-color: #e8f3f8;
}
.forecast-sponsor a.forecast-sponsor-link {
    /* color: white; */
    margin-top: .5rem;
}
.forecast-sponsor a.forecast-sponsor-link:hover {
    /* color: white; */
}
.forecast-sponsor-text {
    /* font-weight: bold; */
}
.forecast-sponsor-name {
    font-weight: bold;
}
.forecast-sponsor-link {
    display: block;
    font-size: 80%;
}

.forecast-history-section {}

.forecast-history-list {
    margin: 0 auto;
    width: 90%;
    max-width: 482px;
}

.forecast-history-container {
    margin-top: 10px;
}

.forecast-history-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.forecast-history-item:hover {
    background-color: #e5e5e5;
    text-decoration: none;
    color: inherit;
}

.forecast-history-item:hover .forecast-history-item-load {
    color: #666;
}

.forecast-history-item-departure {
    font-weight: bold;
    display: inline-block;
    width: 80%;
    text-align: left;
    text-transform: uppercase;
}

.forecast-history-item-date {
    color: #666;
    display: inline-block;
    width: 210px;
    text-align: left;
    font-size: 80%;
    line-height: 22px;
}
.forecast-history-item-load {
    float: right;
    display: inline-block;
    color: #838383;
    font-size: 80%;
    font-weight: bold;
    text-transform: uppercase;
    width: 45px;
    text-align: right;
    line-height: 24px;
    padding-right: 5px;
    top: 50%;
    right: 10px;
    margin-top:-12px;
}
.forecast-clear-history-link {
    display: inline-block;
    margin-top: .5rem;
    font-size: 80%;
}
/* Padding and spacing for the information column */
.skewt-info {
    padding: 20px;
    text-align: left;
}

/* Support Page Styles */
.support-content,
.resources-content {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.contact-section {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Resource Page Styles */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.resource-card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.resource-link:hover {
    background: #0056b3;
}

.utility-links {
    margin-top: 5px;
    font-size: 0.9em;
}

.utility-link {
    color: #007bff;
    text-decoration: none;
}

.utility-link:hover {
    text-decoration: underline;
}

.utility-separator {
    color: #666;
    margin: 0 5px;
}

/* Add these styles at the end of the existing CSS file */

.skewt-data-table {
    margin: 20px auto 0 auto;
    border-collapse: collapse;
    font-size: 14px;
}
.skewt-data-table tr:hover {
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
}

.skewt-data-table th,
.skewt-data-table td {
    padding: 2px 4px;
    border: 1px solid #ddd;
}

.skewt-data-table-altitude {
    text-align: center;
    width: 90px;
}

.skewt-data-table-temperature, .skewt-data-table-dewpoint, .skewt-data-table-spread, .skewt-data-table-cloud-cover {
    width: 70px;
}

.skewt-data-table-wind {
    width: 100px;
    font-family: monospace;
    font-size: 90%;
}

.skewt-data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.skewt-data-table-subheader {
    font-size: 80%;
    color: #888;
}

.skewt-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

/* Add these styles at the end of the file */
.skewt-table-container {
    margin-top: 20px;
    overflow-x: auto;
    display: none;  /* Hidden by default */
}
.show-data-button {
    background-color: #f5f5f5;
    border-radius: 10px;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid #ddd;
    margin-top: 1rem;
}

.show-data-button:hover {
    background-color: #e5e5e5;
}

.cold-cell {
    background-color: #dde7f9;  /* Light blue background */
}

.very-cold-cell {
    background-color: #eef3fc;  /* Lighter blue background (half the intensity) */
}

.cloud-cover-heavy {
    background-color: rgba(128, 128, 128, 0.375);  /* 75% of 50% gray */
}

.cloud-cover-heavy {
    background-color: rgba(128, 128, 128, 0.375);  /* 75% of 50% gray */
}.cloud-cover-medium {
    background-color: rgba(128, 128, 128, 0.25);   /* 50% of 50% gray */
}

.cloud-cover-light {
    background-color: rgba(128, 128, 128, 0.125);  /* 25% of 50% gray */
}

.spread-tight {
    background-color: rgba(136, 42, 130, 0.3);
}
.spread-narrow {
    background-color: rgba(136, 42, 130, 0.2);  /* 50% of 50% gray for 1.1-2.0 */
}
.spread-moderate {
    background-color: rgba(136, 42, 130, 0.1); /* 25% of 50% gray for 2.1-3.0 */
}
.spread-wide {
    background-color: transparent;  /* No shading for > 3.0 */
}


.airport-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.airport-input {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.airport-search {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.airports-table-container {
    max-width: 1200px;
    margin: 2rem auto;
}

#add-airport-status {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.route-summary-legend-container {
    margin: 10px 10px 20px 10px;
    text-align: center;
    width: 100%;
    overflow-x: auto;
}
.route-summary-legend-table {
    margin: 0 auto;
}

.route-summary-legend {
    margin: 1rem auto;
}

.route-summary-legend .route-summary-cell-wind, .route-summary-legend .route-summary-cell-relative-wind {
    opacity: 1;
}

.legend-label {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 4px;
    border: 1px solid #ddd;
    width: 110px;
    min-width: 110px;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.legend-header {
    font-size: 12px;
    font-weight: bold;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.legend-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
}   

.legend-item {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.route-summary-wrapper {
    width: 100%;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.route-summary-wrapper {
    max-width: 1200px;
    overflow: visible;
}

.route-summary-header {
    text-align: center;
    margin: 20px 0;
}

.route-summary-container {
    margin: 20px auto;
    max-width: 95%;
    overflow-x: auto;
    position: relative;
}
.route-summary-title {
    padding: 2rem 0 0 0;
    border-top: 5px solid #ddd;
    margin: 0 auto;
}

.route-summary-table {
    margin: 0 auto 1rem auto;
    transition: opacity 0.3s ease-in-out;
}
.route-summary-table tr:hover {
    font-weight: bold;
    background-color: #ebebeb;
}

.route-summary-table tr:hover .route-summary-cell-wind, .route-summary-table tr:hover .route-summary-cell-relative-wind {
    opacity: 1;
}

.route-summary-table tr:hover .route-summary-cell-wind--line {
    width: 2px;
}

.route-summary-table tr:hover .route-summary-cell-wind--line::after {
    width: 10px;
    height: 4px;
}

.route-summary-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 12px;
    padding: 4px;
}

th.route-summary-table-subheader {
    font-size: 10px;
    color: #888;
    padding: 4px;
}

.route-summary-table-spacer-row td {
    height: 15px;
    border: none;
    background-color: transparent;
}

.route-summary-cell {
    text-align: center;
    border: 1px solid #ddd;
    width: 75px;
    min-width: 75px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    font-size: 12px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}

.route-summary-cell-wind {
    position: absolute;
    top: 50%;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 5px;
    transform: rotate(90deg);
    background-color: red;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.route-summary-cell-temp {
    position: relative;
    z-index: 15;
    transition: all 0.3s ease-in-out;
}

.route-summary-cell-wind--line {
    position: absolute;
    top: 0px;
    left: 1px;
    width: 1px;
    height: 15px;
    background-color: red;
    content: "";
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
}

.route-summary-cell-wind--line::after {
    content: "";
    width: 5px;
    height: 2px;
    background-color: red;
    position: absolute;
    bottom: -2px;
    left: 0;
    z-index: 10;
    transform: rotate(25deg);
    transition: opacity 0.3s ease-in-out;
}

.route-summary-altitude {
    width: 75px;
    min-width: 75px;
    font-size: 12px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.route-summary-index-subheading {
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ddd;
    padding: 4px;
}

.cape-row td {}

.route-summary-cell.high-cape {
    background-color: rgb(255 156 156);
    font-weight: bold;
}

.index-caution {
    background-color:rgb(255 251 0 / 37%);
    color: black;
    font-weight: bold;
}

.index-warning {
    background-color:rgb(255, 113, 113);
    color: white;
    font-weight: bold;
}

/* Special class for freezing temperatures with clear skies */
.route-summary-cell.cold-cell.clear-skies {
    background-color: rgb(238 243 252 / 50%); /* Light sky blue with low opacity */
}



/* Cloud cover classes for cells with temperature > 0 */
.route-summary-cell.cloud-0-25 {
    background-color: transparent;
}

.route-summary-cell.cloud-25-50 {
    background-color: rgba(128, 128, 128, 0.25);
}

.route-summary-cell.cloud-50-75 {
    background-color: rgba(128, 128, 128, 0.45);
}

.route-summary-cell.cloud-75-100 {
    background-color: rgba(128, 128, 128, 0.6);
}

/* Cloud cover classes for cells with temperature <= 0 (blue tinted) */
.route-summary-cell.cold-cell.cloud-0-25 {
    background-color: rgb(120 148 199 / 30%);
}

.route-summary-cell.cold-cell.cloud-25-50 {
    background-color: rgb(120 148 199 / 50%);
}

.route-summary-cell.cold-cell.cloud-50-75 {
    background-color: rgb(120 148 199 / 70%);
}

.route-summary-cell.cold-cell.cloud-75-100 {
    background-color: rgb(120 148 199 / 90%);
}
/* Style for cells with no data */
.route-summary-cell.no-data {
    background-color: rgb(192 186 173);
}

.precip-0-1 {
    background-color: transparent;
}

.precip-1-25 {
    background-color: rgb(214 241 214);
}

.precip-25-50 {
    background-color: rgb(115 214 115);
}

.precip-50-75 {
    background-color: rgb(25 178 25);
    color: white;
}

.precip-75-100 {
    background-color: rgb(0 115 0);
    color: white;
}

.route-summary-cell-relative-wind {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.route-summary-cell-relative-wind.wind-tailwind {
    transform: rotate(270deg);
}

.route-summary-cell-relative-wind.wind-headwind {
    transform: rotate(90deg);
    top: 2px;
}

.route-summary-cell-relative-wind--line {
    width: 2px;
    transform-origin: center;
    position: absolute;
    top: 0;
    right: 0px;
    transition: opacity 0.3s ease-in-out;
}

.route-summary-cell-relative-wind.wind-tailwind .route-summary-cell-relative-wind--line{
    background-color:#037a00;
}

.route-summary-cell-relative-wind.wind-headwind .route-summary-cell-relative-wind--line{
    background-color: #9c0000;
}

.route-summary-cell-relative-wind.wind-tailwind .route-summary-cell-relative-wind--line::after {
    content: "";
    border-bottom: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #037a00;
    position: absolute;
    bottom: -4px;
    left: -3px;
}

.route-summary-cell-relative-wind.wind-headwind .route-summary-cell-relative-wind--line::after {
    content: "";
    border-bottom: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #9c0000;
    position: absolute;
    bottom: -4px;
    left: -3px;
}

.route-summary-cell-relative-wind.wind-headwind .route-summary-cell-relative-wind--line::after {
    content: "";
    border-bottom: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #9c0000;
    position: absolute;
    bottom: -4px;
    left: -3px;
}

.route-summary-cell--details {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    white-space: pre-line;
    text-align: left;
    width: 150px;
    left: 70px;
    top: 20px;
    font-weight: bold;
    transition: opacity 0.3s ease-in-out;
}

.route-summary-cell--details::after {
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 10px solid white;
    border-left: 0;
    position: absolute;
    top: -5px;
    left: -5px;
    transform: rotate(45deg)
}

.route-summary-cell:hover {
    z-index: 20;
    /* border: 1px solid #333; */
    box-shadow: inset 0 0 10px rgb(0 0 0 / 50%);
    cursor: pointer;
    font-weight: bold;
}

.route-summary-cell:hover .route-summary-cell-wind, .route-summary-cell:hover .route-summary-cell-relative-wind, .route-summary-cell:hover .route-summary-cell-temp {
    opacity: 1;
    display: block !important;
}

.route-summary-cell:hover .route-summary-cell--details {
    display: block;
}

.route-summary-cell--details--temperature.below-freezing {
    color: rgb(0 76 214);
}

.route-summary-cell--details--wind-component.headwind {
    color: #9c0000;
}

.route-summary-cell--details--wind-component.tailwind {
    color:#037a00;
}

.route-summary-cell--details--waypoint {
    font-weight: normal;
    font-style: italic;
}

.route-summary-table.hide-wind-barbs .route-summary-cell-wind {
    display: none;
}

.route-summary-table.hide-wind-vector .route-summary-cell-relative-wind {
    display: none;
}

.route-summary-table.hide-temp-labels .route-summary-cell-temp {
    display: none;
}

/* Add some styling for the controls */
.table-controls-container {
    margin: 1rem auto;
    text-align: center;
}

.table-controls {
    display: inline-block;
    width: 100%;
}

.table-display-options {
    width: 100%;
}

.table-display-options label {
    font-size: 14px;
    margin: .5rem;
    width: 44%;
    max-width: 165px;
    background-color: #eee;
    border-radius: 5px;
    padding: 4px 4px 2px 4px;
}

.route-summary-cell.net-headwind {
    background-color: rgba(156, 0, 0, 0.1);
    font-weight: bold;
    color: #9c0000;
}

.route-summary-cell.net-tailwind {
    background-color: rgba(3, 122, 0, 0.1);
    font-weight: bold;
    color: #037a00;
}

.route-summary-cell--details--wind-diff {
    color: #666;
    font-size: 11px;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 4px;
}

.possible-turbulence {
    position: relative;
}

.possible-turbulence::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    /* width: 3px; */
    /* height: 24px; */
    width: 100%;
    height: 100%;
    z-index: 9;
    opacity: .1;
}

.turbulence-light::after {
    background-color: #ffc163;
}

.turbulence-moderate::after {
    background-color: #ff9900;
    opacity: .2;
}

.turbulence-severe::after {
    background-color: #bb7000;
    opacity: .5;
}

.route-summary-table.hide-turbulence .possible-turbulence::after {
    display: none;
}

/* Aviation Weather Section */

.aviation-weather-section {
    background-color: #f4f4f4;
}

.aviation-weather-title {
    padding: 2rem 0 0 0;
    border-top: 5px solid #ddd;
    margin: 2rem auto .5rem auto;
}

.aviation-weather-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.aviation-weather-group {
    margin-bottom: 4rem;
    /* background: #f8f9fa; */
    border-radius: 8px;
    /* padding: 1rem; */
}

.aviation-weather-group-title {
    margin-bottom: .5rem;
    font-size: 2rem;
    /* border-bottom: 2px solid #ddd; */
}

.aviation-weather-image-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.aviation-weather-image-container {
    /* flex: 0 1 auto; */
    width: 100%;
    text-align: center;
    background: white;
    border-radius: 4px;
    padding: 0.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.aviation-weather-image {
    /* max-width: 100%; */
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.aviation-weather-image-title {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.aviation-weather-time-offset {
    font-weight: normal;
    font-size: 0.9em;
    color: #666;
}

.aviation-weather-image-time {
    margin: 0 0 0.5rem 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.time-window-info {
    display: inline-block;
}

.time-window-display {
    position: fixed;
    top: 49px;
    left: 0;
    width: 100%;
    background-color: rgb(245 245 245 / 90%);
    padding: 0;
    box-shadow: 0px 0px 10px rgba(0,0,0,.3);
    z-index: 999;
    font-size: 0.9rem;
    border-bottom: 1px solid #adb3b4;
    text-align: center;
}

.time-window-display h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.time-window-display p {
    margin: 0;
    font-family: monospace;
    font-weight: bold;
}

.time-window-route {
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
}

.time-window-time {
    font-weight: normal;
    border-left: 1px solid #aaa;
    padding: 5px 10px;
    display: inline-block;
}

.time-window-time-enroute {
    font-style: italic;
    display: inline-block;
    padding: 5px 10px;
    border-left: 1px solid #aaa;
}

.time-window-nav {
    display: inline-block;
    border-left: 1px solid #aaa;
    padding: 5px 10px;
}

.time-window-link {
    padding: 0 .25rem;
    font-weight: bold;;
}

.time-window-link:hover {
    text-decoration: underline;
}

.route-summary-cell.low-visibility {
    color: #0071EA;
    font-weight: bold;
    background-color: #e5f1ff;
}

.route-summary-cell.low-spread {
    background-color:rgba(136, 42, 130, 0.1);
    font-weight: bold;
}

.plotly-skewt-chart {
    width: 100%;
    /* margin: 20px 0; */
    /* border: 1px solid #eee; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.y2title, .xtitle, .xtick, .y2tick, .ytick, .ytitle {
    font-weight: bold !important;
}

.skewt-comparison-container {
    width: 100%;
    height: 0;
    padding-bottom: 68.5%;
    position: relative;
    overflow: hidden;
}

.skewt-comparison-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: top left;
}

.skewt-comparison-inner > .plotly-skewt-chart {
    transform:scale(1);
}

.skewt-comparison-title {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

@media screen and (max-width: 1200px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.9);
    }
}

@media screen and (max-width: 1100px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.8);
    }
}

@media screen and (max-width: 1000px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.75);
    }
}

@media screen and (max-width: 900px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.7);
    }
}

@media screen and (max-width: 800px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.6);
    }
}

@media screen and (max-width: 700px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.6);
    }
}

@media screen and (max-width: 600px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.55);
    }
}

@media screen and (max-width: 500px) {
    .skewt-comparison-inner  .svg-container {
        transform:scale(.4);
    }
}

@media screen and (max-width: 725px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .main-page-title {
        margin-top: 4rem;
    }
    .forecast-generation-complete .main-page-title {
        margin-top: 7.5rem;
    }
    h2 {
        font-size: 1.35rem;
    }
    .time-window-display {
        top: 46px;
        font-size: 0.8rem;
    }
    .time-window-nav {
        font-size: 0.75rem;
        display: block;
        border-left: none;
        border-top: 1px solid #aaa;
    }
    .aviation-weather-group-title {
        font-size: 1.5rem;
    }
    .aviation-weather-group {
        margin-bottom: 2rem;
    }
    .forecast-imagery-error {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .component-container {
        padding: 3rem 0 0 0;
        margin: 0 0 3rem 0;
    }
    /* On small screens, both chart and info take up full width */
    .col-lg-9, .col-md-8, .col-md-4, .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-sm-6 {
        flex: 0 0 50%;  /* Full width on small screens */
        max-width: 50%;
    }
    .col-sm-12 {
        flex: 0 0 100%;  /* Full width on small screens */
        max-width: 100%;
    }
    .skewt-data-column {
        padding-top: 10px;
        text-align: center;
    }
    .skewt-times {
        display: inline;
        margin-right: 10px;
    }
    .skewt-location {
        margin: .5rem 0;
        padding: .5rem 0;
    }
    .skewt-coordinates {
        /* margin-left: 7px; */
    }
    .skewt-location-container {
        justify-content: center;
    }
    .skewt-date {
        display: inline;
    }
    .skewt-index {
        display: inline;
        margin: 0 7px;
    }
    .row.max-1200 {
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 0;
    }
    .input-description {
        margin-bottom: 15px;
    }
    .row-instructions .col-lg-6 {
        max-width: 100%;
    }

    #journey-map .plot-container {
        height: 300px;
        min-height: 300px;
    }
    #map-container {
        bottom: 0px;
        right: auto;
        left: 0px;
        width: 200px;
        height: 200px;
        border-radius: 0 10px 0 0;
    }
    .sponsor-item {
        flex: 0 0 90%;
        max-width: 90%;
    }
    .sponsor-group {
        padding: 0;
    }
    .table-controls {
        max-width: 490px;
    }
}

@media screen and (max-width: 585px) {
    .forecast-sponsor-name {
        display: block;
    }
    .reset-button {
        margin-left: 50px;
        margin-right: 50px;
    }
    .forecast-history-item-date {
        /* float: right; */
        /* text-align: right; */
        width: 85%;
    }
    .skewt-data-table {
        font-size: 12px;
    }
    .skewt-data-table td,
    .skewt-data-table th {
        padding: 2px 4px;
    }
}
