/* style.css */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars */
    background-color: black;
    font-family: Consolas, sans-serif;
    color: white;
}

#image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* For date-display positioning */
}

#image-container.hidden { /* Added for initial hiding */
    display: none;
}

#current-image {
    max-width: 100%;
    max-height: 100%;
    width: auto; 
    height: auto;
    object-fit: contain;
    display: block;
} 
/*
#current-image {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
*/
#date-display {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    color: white;
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Allows clicks to pass through */
}

#date-display.visible {
    opacity: 1;
}

/* Common Popup Styles */
#settings-popup, #login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

.hidden {
    display: none !important; /* Use !important to override other display properties */
}

.popup-content {
    background-color: black;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-align: center;
    color: white;
    max-width: 400px; /* Limit width */
    width: 90%; /* Responsive width */
}

.popup-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.popup-content label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.popup-content input[type="number"],
.popup-content input[type="password"] { /* Added password input */
    width: calc(100% - 20px); /* Adjust width for padding */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 1em;
    text-align: center;
}

.popup-content button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 10px;
    transition: background-color 0.2s ease;
}

.popup-content button:hover {
    background-color: #0056b3;
}

#close-settings {
    background-color: #6c757d;
}

#close-settings:hover {
    background-color: #5a6268;
}

/* Error Message */
.error-message {
    color: #ff4d4d; /* Red color for errors */
    font-size: 0.9em;
    margin-top: -10px; /* Pull it closer to the input */
    margin-bottom: 15px;
    height: 1.2em; /* Reserve space to prevent layout shifts */
}

/* Responsive adjustments for smaller screens (e.g., mobile) */
@media (max-width: 768px) {
    .popup-content {
        width: 90%; /* Wider on small screens */
        padding: 20px;
    }

    #date-display {
        font-size: 1em;
        padding: 8px 15px;
    }

    .popup-content input[type="number"],
    .popup-content input[type="password"] {
        width: calc(100% - 20px); /* Re-adjust for small screens */
    }
}

