/* Main body and content styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
}

main {
    padding: 2rem;
}

/* Popup Overlay Styling */
#popup-overlay {
    position: fixed; /* Sits on top of the page content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    display: flex; /* Use flexbox for easy centering */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it's on top of other content */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Style for the popup image */
#popup-image {
    max-width: 90%;
    max-height: 80vh; /* Limits height to 80% of the viewport height */
    display: block;
    cursor: pointer; /* Changes cursor to a pointer on hover */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Modern 'X' Close Button */
#close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none; /* Prevents text selection */
}

#close-button:hover {
    color: #cccccc;
    transform: scale(1.1); /* Slightly enlarges the button on hover */
}
