/* style.css */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Prevents scrolling the main content when the overlay is active */
    background-color: #f0f2f5;
    color: #333;
}

.content {
    padding: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.content h1 {
    color: #0056b3;
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 15px;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styles for the password overlay */
.password-overlay {
    position: fixed; /* Covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    backdrop-filter: blur(10px); /* The magic! Blurs the content underneath */
    z-index: 1000; /* Ensures it's on top of all other content */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* Smooth transition for hiding */
}

/* Class to hide the overlay */
.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allows interaction with elements below when hidden */
}

.password-prompt {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 350px;
    width: 90%;
    animation: fadeIn 0.5s ease-out; /* Simple fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-prompt h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.password-prompt input[type="password"] {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width calculation */
}

.password-prompt button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.password-prompt button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.password-prompt button:active {
    transform: translateY(0);
}

#errorMessage {
    margin-top: 15px;
    font-weight: bold;
}
