body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #007BFF;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #eaeaea;
}

@media (max-width: 600px) {
    th, td {
        padding: 10px;
        font-size: 14px;
    }
    h1 {
        font-size: 1.5em;
    }
}

/* Simple navbar styling */
/* Simple navbar styling with larger font */
nav {
    width: 100%;
    background-color: var(--background-color);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;  /* Increased from 0.95rem */
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;  /* Added for better readability */
}

nav ul li a:hover {
    color: var(--hover-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        gap: 1.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    nav ul li a {
        font-size: 1rem;  /* Slightly smaller on mobile but still larger than before */
        white-space: nowrap;
    }
}



h1 {
    color: var(--primary-color); /* This matches other headings */
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.snowfall-description {
    text-align: center;
    max-width: 1200px;
    margin: 1rem auto;
    color: var(--text-color);
}






/* indexStyle.css */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c88aa;
    --accent-color: #f0f9ff;
    --text-color: #2d3748;
    --background-color: #ffffff;
    --border-color: #e2e8f0;
    --hover-color: #164e63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    padding-right: 2rem;
}

.hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hero-text ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.hero-text li {
    margin-bottom: 0.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-direction: column;
    gap: 0.5rem; /* Adds space between elements */
}

.section-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}


.section-one-header {
         display: flex;     
         justify-content: space-between;     
         align-items: center;     
         margin-bottom: 2rem; }  
.section-one-header h2 {     color: var(--primary-color);     font-size: 1.8rem; } 




/* Button Styling */
.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--hover-color);
}











/* Table Styling */
.table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

td {
    font-size: 0.95rem;
}

tr:hover {
    background-color: #f8fafc;
}

.highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        padding-right: 0;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
    }

    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}















.resort-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resort-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}















/* Add these to your indexStyle.css file */

/* Improved table styling */
.table-container table {
    min-width: 800px; /* Ensures table doesn't get too narrow */
    max-width: 1200px; /* Prevents table from getting too wide */
    margin: 0 auto; /* Centers the table */
    table-layout: fixed; /* Added to better control column widths */
}

/* Column width adjustments */
.table-container th,
.table-container td {
    padding: 0.75rem 1rem; /* Increased horizontal padding */
    text-align: left;
    white-space: nowrap; /* Prevents wrapping */
}

/* Specific column widths */
.table-container th:nth-child(1), /* Rank */
.table-container td:nth-child(1) {
    width: 8%;
    text-align: center;
}

.table-container th:nth-child(2), /* Resort */
.table-container td:nth-child(2) {
    width: 40%;
}

.table-container th:nth-child(3), /* Elevation Range */
.table-container td:nth-child(3) {
    width: 15%; /* Reduced from 18% */
    text-align: center; /* Centered alignment */
}

.table-container th:nth-child(4), /* Top */
.table-container td:nth-child(4) {
    width: 11%;
    text-align: center;
}

.table-container th:nth-child(5), /* Mid-mountain */
.table-container td:nth-child(5) {
    width: 15%; /* Increased from 11% */
    text-align: center;
}

.table-container th:nth-child(6), /* Valley */
.table-container td:nth-child(6) {
    width: 11%;
    text-align: center;
}

/* Resort name handling */
.table-container td:nth-child(2) {
    white-space: normal; /* Allow resort names to wrap if needed */
    word-break: break-word; /* Breaks very long resort names */
}

/* Flag and resort name alignment */
.table-container td img {
    vertical-align: middle;
    margin-right: 8px;
}

/* Section header styling */
.section-header p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Snowfall values styling */
.table-container td.highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Center align all table headers */
.table-container th {
    text-align: center;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .table-container {
        margin: 0 -1rem;
        padding: 1rem;
        border-radius: 0;
        overflow-x: auto; /* Ensures horizontal scrolling on smaller screens */
    }
    
    .table-container table {
        min-width: 600px;
    }
}

/* Better mobile experience */
@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .table-container td, 
    .table-container th {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}















/* Resort Table Column Widths */
.resort-table th.resort-name,
.resort-table td:nth-child(1) {
    width: 50%; /* Make Resort Name column wider */
}

.resort-table th.top-lift-elevation,
.resort-table td:nth-child(2) {
    width: 20%; /* Make Top Lift Elevation column narrower */
}

.resort-table th.seven-day-snowfall,
.resort-table td:nth-child(3) {
    width: 30%; /* Adjust width as needed */
}

/* Center the Top Lift Elevation column */
.resort-table th.top-lift-elevation, 
.resort-table td:nth-child(2) {
    text-align: center;
}

/* Right-align the Resort Name column */
.resort-table th.resort-name,
.resort-table td:nth-child(1) {
    text-align: left;
}
  










































/* Specific styles for the forecast table */
.forecast-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.forecast-table th,
.forecast-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Forecast table specific column widths */
.forecast-table td:nth-child(1),
.forecast-table th:nth-child(1) {
    width: 40%;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.forecast-table td:nth-child(2),
.forecast-table th:nth-child(2) {
    width: 12%;
    text-align: center;
    white-space: nowrap;
}

.forecast-table td:nth-child(3),
.forecast-table th:nth-child(3),
.forecast-table td:nth-child(4),
.forecast-table th:nth-child(4),
.forecast-table td:nth-child(5),
.forecast-table th:nth-child(5) {
    width: 16%;
    text-align: center;
    white-space: nowrap;
}

/* History table specific styles */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.history-table th,
.history-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* History table specific column widths */
.history-table td:nth-child(1),
.history-table th:nth-child(1) {
    width: 50%;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.history-table td:nth-child(2),
.history-table th:nth-child(2) {
    width: 20%;
    text-align: center;
    white-space: nowrap;
}

.history-table td:nth-child(3),
.history-table th:nth-child(3) {
    width: 30%;
    text-align: center;
    white-space: nowrap;
}

/* Shared styles for both tables */
.forecast-table th,
.history-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.forecast-table tr:hover,
.history-table tr:hover {
    background-color: #f8fafc;
}

.forecast-table .highlight,
.history-table .highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .forecast-table,
    .history-table {
        min-width: 600px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}















/* Form container */
.history-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Main form title */
.date-range-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form layout */
#snowfall-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Date input groups */
.date-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-group label {
    font-weight: 500;
    color: var(--text-color);
    min-width: 4rem;
}

/* Date inputs */
#snowfall-form input[type="date"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    width: 160px;
    background-color: white;
}

/* Submit button */
#snowfall-form button[type="submit"] {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#snowfall-form button[type="submit"]:hover {
    background-color: var(--hover-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    #snowfall-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .date-input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    #snowfall-form input[type="date"] {
        width: 100%;
    }

    #snowfall-form button[type="submit"] {
        width: 100%;
    }
}









/* Center the description paragraph */
.snowfall-description {
    text-align: center;
    max-width: 1200px;
    margin: 1rem auto;
}

/* Center the Snowfall Statistics header */
#result h2 {
    text-align: center;
    margin: 2rem 0;
    color: var(--primary-color);
}

/* Table styling */
.historical-stats-table {
    max-width: 1200px;
    margin: 2rem auto;
    width: 95%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.historical-stats-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
}

.historical-stats-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.historical-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.historical-stats-table tbody tr:hover {
    background-color: var(--accent-color);
}

/* Make the table responsive */
@media (max-width: 768px) {
    .historical-stats-table {
        width: 98%;
        margin: 1rem auto;
    }
    
    .historical-stats-table th,
    .historical-stats-table td {
        padding: 0.5rem;
    }
}













































.article-section {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    padding: 0 20px;
  }
  
  .chart-container {
    background: white;  
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .probability-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .probability-table th,
  .probability-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
 
  
  .country-flag {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  .probability-bar {
    height: 24px;
    background: #2563eb;
    border-radius: 4px;
  }
  
  .monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }
  
  .month-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .month-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e40af;
  }
























  /* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    nav {
        position: relative;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav ul.active {
        max-height: 500px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Hamburger Menu */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: 30px;
        height: 30px;
        cursor: pointer;
        padding: 0.5rem;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        margin: 6px 0;
        transition: 0.4s;
    }
}

/* Enhanced Table Responsiveness */
@media (max-width: 768px) {
    /* General table improvements */
    .table-container {
        margin: 0;
        padding: 0.5rem;
        border-radius: 0;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Forecast table mobile optimization */
    .forecast-table {
        min-width: unset;
        width: 100%;
    }

    .forecast-table th,
    .forecast-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* History table mobile optimization */
    .history-table {
        min-width: unset;
        width: 100%;
    }

    .history-table th,
    .history-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Resort table mobile optimization */
    .resort-table th,
    .resort-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .resort-table td:nth-child(1) {
        min-width: 120px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further table optimizations */
    th, td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    /* Adjust column widths for better mobile display */
    .table-container th:nth-child(1),
    .table-container td:nth-child(1) {
        width: auto;
        min-width: 60px;
    }

    .table-container th:nth-child(2),
    .table-container td:nth-child(2) {
        width: auto;
        min-width: 100px;
    }

    /* Better handling of long text in tables */
    td {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Improved form responsiveness */
    .history-form-container {
        padding: 1rem;
    }

    #snowfall-form input[type="date"] {
        font-size: 0.875rem;
    }
}

/* Improved table scrolling indicators */
.table-container {
    position: relative;
}

.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.table-container.scrollable::after {
    opacity: 1;
}














/* Base nav styles */
nav {
    width: 100%;
    background-color: var(--background-color);
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--hover-color);
}

/* Hamburger menu button - hidden by default */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 1000;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Hamburger menu animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}






@media (max-width: 768px) {
    /* Add padding to top of page content when hamburger menu is present */
    nav {
        padding-top: 3.5rem;  /* Space for hamburger button */
    }

    /* Position hamburger button */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 0.75rem;  /* Adjusted positioning */
        z-index: 1000;
    }

    /* Add margin to first heading after nav */
    nav + h1,
    nav + .container h1,
    nav + div h1,
    nav + section h1 {
        margin-top: 1rem;  /* Space after navigation */
    }

    /* Ensure menu items don't overlap */
    nav ul.active {
        display: flex;
        background-color: var(--background-color);
        width: 100%;
        z-index: 999;
    }

    /* Adjust any fixed or absolute positioned elements */
    .hero-section,
    .section-header,
    .main-content {
        margin-top: 1rem;
    }
}