/*TODO add comments for each style  */
body {
      font-family: Arial, sans-serif;
      margin: 0;
      background: #f4f4f4;
      color: #333;
    }

    /* Header styles */
    header {
      background: #003366;
      color: white;
      padding: 1rem;
      text-align: center;
    }

    /* Navigation links */
    nav a {
      color: white;
      margin: 0 1rem;
      text-decoration: none;
      font-weight: bold;
    }

    /* Main content area */
    main {
      padding: 2rem;
    }

    /* Section styling */
    section {
      margin-bottom: 3rem;
      background: white;
      padding: 1rem;
      border-radius: 8px;
    }

    /* Event list styling */
    #events li {
      cursor: pointer;
      transition: background 0.3s;
      padding: 0.5rem;
      border-radius: 4px;
    }

    #events li:hover {
      background: #eef;
    }

    #events li.expanded {
      font-weight: bold;
      background: #cce;
    }

    /* Footer styling */
    footer {
      background: #003366;
      color: white;
      text-align: center;
      padding: 1rem;
    }

    /* H2 styling */
    h2 {
      color: #003366;
      border-bottom: 2px solid #003366;
      padding-bottom: 0.5rem;
      text-align: center;
    }
    .signup-btn {
      display: inline-block;
      margin-top: 6px;
      padding: 6px 12px;
      background-color: #332a6f;
      color: white;
      text-decoration: none;
      border-radius: 4px;
      font-weight: bold;
    }

    .signup-btn:hover {
      background-color: #1f4f1f;
    }

    /* Hero image styling */
    #hero img,
    #img-header img {
      width: 90%;
      max-height: 455px;
      object-fit: cover;
      object-position: center 75%;
      display: block;
      margin: 20px auto;
      border-radius: 8px;
      filter: brightness(105%) contrast(140%) saturate(130%);   
     }
    /* Sign-up form styling */
    .signup-form {
      display: flex;
      flex-direction: column;
      max-width: 400px;
      margin: 1rem auto;
    }
    .signup-form input, .signup-form button {
      padding: 0.5rem;
      margin: 0.5rem 0;
      font-size: 1rem;
    }
    .signup-form button {
      background-color: #003366;
      color: white;
      border: none;
      cursor: pointer;
      border-radius: 4px;
    }
    .signup-form button:hover {
      background-color: #0055aa;
    }
    nav a.active {
      color: #f90;
      font-weight: bold;
      border-bottom: 2px solid #f90;
    }

    nav a:hover {
      color: #f90;
      transform: scale(1.05);
      transition: 0.2s;
    }

    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* High Contrast Mode */
    .high-contrast {
        background: black !important;
        color: yellow !important;
    }

    /* Dyslexia-Friendly Mode */
    .dyslexia {
        font-family: "OpenDyslexic", Arial, sans-serif;
    }

    /* Keyboard Focus Outline */
    :focus {
        outline: 3px solid #00aaff;
    }
    /*Add CSS for the entering the password for the patrol meetings*/
    #patrol-meeting {
        max-width: 400px;
        margin: 2rem auto;
        padding: 1rem;
        background: #f9f9ff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
        /* ===========================
    ANNOUNCEMENTS PAGE
    =========================== */

    #announcements {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    }

    #announcements h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    }

    /* Announcement Cards */
    .announcement-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .announcement-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #003366;
    }

    .announcement-card p {
    margin: 8px 0 0;
    line-height: 1.5;
    }

    /* Hover effect */
    .announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    /* High Contrast Mode Support */
    .high-contrast .announcement-card {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    }

    .high-contrast .announcement-card h3 {
    color: #ffeb3b;
    }

    /* Dyslexia Mode Support */
    .dyslexia .announcement-card {
    font-family: "OpenDyslexic", Arial, sans-serif;
    }
    /* Trip Planner Layout */
    #trip-container {
        max-width: 900px;
        margin: auto;
        padding: 20px;
    }

    /* Section Titles */
    #trip-container h2 {
        margin-top: 30px;
        border-bottom: 2px solid #004aad;
        padding-bottom: 5px;
    }

    /* Weather Box */
    #weather-box {
        background: #787879;
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid #004aad;
        max-width: 350px;
    }

    /* Checklist Styling */
    #personal-checklist label {
        display: block;
        padding: 6px 0;
        font-size: 1.05rem;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        background-color: #003366;
        padding: 10px 20px;
        }

        nav a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
        }

        nav a:hover {
        background-color: #0055aa;
        }

        nav a.active {
        background-color: #ffcc00;
        color: #003366;
        }
    /* Duty Roster Table */
    #duty-roster {
        border-collapse: collapse;
        width: 100%;
        margin-top: 10px;
    }

    #duty-roster th {
        background: #004aad;
        color: white;
        padding: 8px;
    }

    #duty-roster td {
        padding: 8px;
        border: 1px solid #ccc;
    }

    #map {
      height: 300px;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }

    .map-embed {
        display: block;
        width: 100%;
        height: 450px;
        border: 0;
        margin: 0;
        padding: 0;
    }
    #page-title {
        text-align: center;
        margin-top: 20px;
        font-size: 2.5rem;
        color: #003366;
    }
    /* 5‑Day Forecast Layout */
    #forecast {
        display: flex;
        gap: 12px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .forecast-day {
        background: #f3f7ff;
        padding: 12px;
        border-radius: 8px;
        width: 120px;
        text-align: center;
        border-left: 4px solid #004aad;
    }

    .forecast-day img {
        width: 40px;
        height: 40px;
    }
    #impact-tracker {
      padding: 2rem;
      background: #eef;
      border-radius: 12px;
      margin: 2rem auto;
      max-width: 900px;
    }

    #impact-tracker h2 {
      text-align: center;
      color: #003366;
      margin-bottom: 1rem;
    }

    .impact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .impact-card {
      background: white;
      padding: 1rem;
      border-left: 6px solid #004aad;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: bold;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    #impact-map {
      height: 400px;
      border-radius: 8px;
      overflow: hidden;
    }
    #onboarding {
      padding: 2rem;
      background: #f9f9ff;
      border-radius: 12px;
      max-width: 900px;
      margin: auto;
    }

    .onboarding-section {
      margin-bottom: 2rem;
      background: white;
      padding: 1rem;
      border-left: 6px solid #004aad;
      border-radius: 8px;
    }

    .onboarding-section h3 {
      margin-bottom: 0.5rem;
      color: #003366;
    }
    /*add styles for the new link for beascout.org*/

    #beascout-link {
      display: block;
      text-align: center;
      margin-top: 1rem;
      padding: 0.75rem;
      background-color: #004aad;
      color: white;
      border-radius: 6px;
      text-decoration: none;
    }
    #beascout-link:hover {
      background-color: #002f6c;
    }
    #uniform-preview {
      margin-top: 1rem;
      height: 150px;
      background: #eef;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }

    #faq-input {
      width: 100%;
      padding: 0.5rem;
      margin-bottom: 0.5rem;
    }

    #faq-response {
      background: #eef;
      padding: 0.5rem;
      border-radius: 6px;
    }
    /* Accessibility Enhancements */
    .accessible-button {
        font-size: 1.1rem;
        padding: 10px 20px;
        background-color: #004aad;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }
    .accessible-button:hover {
        background-color: #002f6c;
    }
    .accessible-link {
        color: #004aad;
        text-decoration: underline;
        font-size: 1.1rem;
    }
    .accessible-link:hover {
        color: #002f6c;
    }
    .large-text {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    .high-contrast {
        background-color: black !important;
        color: yellow !important;
    }
    .high-contrast a {
        color: yellow !important;
        text-decoration: underline;
    }
    .dyslexia-friendly {
        font-family: "OpenDyslexic", Arial, sans-serif !important;
    }
    .focus-outline :focus {
        outline: 3px solid #00aaff;
        outline-offset: 2px;
    }
    /*Add css to the recent eagle project information */
    /* Recent Eagle Projects Section */
    #eagle-projects {
        padding: 2rem;
        background: #f9faff;
        border-radius: 12px;
        max-width: 900px;
        margin: 2rem auto;
    }

    /* Section Title */
    #eagle-projects h2 {
        text-align: center;
        color: #003366;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #003366;
        padding-bottom: 0.5rem;
    }

    /* Project Cards */
    .eagle-project-card {
        background: white;
        padding: 1rem 1.25rem;
        border-left: 6px solid #004aad;
        border-radius: 8px;
        margin-bottom: 1.25rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* Project Title */
    .eagle-project-card h3 {
        margin-top: 0;
        color: #003366;
        font-size: 1.3rem;
    }

    /* Project Details */
    .eagle-project-card p {
        margin: 0.3rem 0;
        font-size: 1.05rem;
    }
    @media (max-width: 600px) {
        #forecast {
            flex-direction: column;
            align-items: center;
        }
    }
    @media (max-width: 600px) {
        #trip-container {
            padding: 10px;
        }
    }
    @media (max-width: 600px) {
        .impact-grid {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 600px) {
        .onboarding-section {
            padding: 0.5rem;
        }
    }
    @media (max-width: 600px) {
        header, footer {
            padding: 0.5rem;
        }
    }
    @media (max-width: 600px) {
        nav a {
            display: block;
            margin: 0.5rem 0;
        }
    }
    @media (max-width: 600px) {
        #hero img,
        #img-header img {
            width: 100%;
            max-height: none;
        }
    }
    @media (max-width: 600px) {
        .signup-form {
            width: 100%;
            padding: 0 1rem;
        }
    }
    @media (max-width: 600px) {
        #duty-roster th, #duty-roster td {
            font-size: 0.9rem;
            padding: 6px;
        }
    }
    @media (max-width: 600px) {
        .accessible-button {
            width: 100%;
            box-sizing: border-box;
        }
    }
    @media (max-width: 600px) {
        .accessible-link {
            font-size: 1rem;
        }
    }
    @media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
}
