/* Style for the modal container to position it correctly */
#aboutUsContainer {
    position: fixed; /* Fixes position relative to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Helps center the modal content */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it's on top of other content */
}

/* Your existing overlay style might need a z-index too */
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Semi-transparent black */
    z-index: 999; /* Below the modal, but above everything else */
}

/* Remove the old #aboutUsContainer styling and replace with this */
/* Style for the modal dialog itself */
#aboutModal {
    /* Core positioning */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This centers the element */
    /* Sizing */
    width: 80%;
    max-width: 700px; /* Optional: prevents it from getting too wide on large screens */
    box-sizing: border-box; /* Ensures padding is included in the width */

    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* The <dialog> element adds a ::backdrop pseudo-element automatically when
  .showModal() is called. We can style it for the overlay effect.
*/
#aboutModal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.aboutText {
    color: white;
    font-weight: bold;
}

