/* Password Container: Fullscreen Centering */
#password-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: white;
    z-index: 10;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

/* Password Wrapper Styles */
.password-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 300px;  /* Fixed width */
    max-width: 90%;  /* Responsive max-width */
    text-align: center;
}

/* Input Field */
#password-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid white; /* White border for visibility */
    border-radius: 5px;
    background-color: black; /* Matches the background */
    color: white; /* White text for contrast */
}

/* Toggle Password Button */
#toggle-password {
    background: none;
    border: none;
    color: white; /* White icon */
    cursor: pointer;
    font-size: 18px;
}

/* Submit Button */
.submit-button {
    background-color: white; /* White background for visibility */
    color: black; /* Black text */
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.hidden {
    display: none !important; /* Ensures it overrides inline styles */
}

.visible {
    display: flex !important; /* Maintains flexbox centering */
}

/* Error Message */
#error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    display: none; /* Initially hidden */
}

/* Protected Content */
#protected-content {
    display: none; /* Initially hidden */
}

/* ================
   MAIN CONTAINER & LAYOUT
   ================ */
.container {
    min-height: 100vh; /* Changed from height to min-height */
    margin: 0 auto; /* Removed vertical margin */
    padding: 30px;
    background-color: #c7c6c6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body, html {
    margin: 0;
    padding: 0;
}

/* ================
   COUNTERS & POST-ITS
   ================ */
.counters-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    align-items: center;
    gap: 5%;
    width: 100%;
    margin-top: 40px;
}

.counter {
    width: 50%; /* Set a smaller width for counters */
    max-width: 400px; /* Optional: limit the max width of each counter */
    margin-bottom: 30px; /* Add some space between counters on smaller screens */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-it {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    min-height: 400px; /* Changed from fixed height to min-height */
    max-height: 600px; /* Added max-height for larger screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Reduced padding for a less wide look */
    box-sizing: border-box;
}

/* Custom Font Size for Specific Headings */
#anniversary-counter-heading, #met-counter-heading {
    font-size: 16px; /* Smaller font size for headings */
}

/* Custom Font Size for Counters */
#anniversary-counter, #met-counter {
    font-size: 18px; /* Smaller font size for counters */
    font-weight: bold; /* Optionally make the font weight bold */
    max-width: 200px; /* Limit width of text for counters */
    overflow: hidden;  /* Hide any overflow text */
    text-overflow: ellipsis;  /* Display "..." if the text is too long */
    text-align: center; /* Ensure the text is centered */
}

/* Optional: Add a media query for responsiveness */
@media (max-width: 768px) {
    #anniversary-counter-heading, #met-counter-heading {
        font-size: 14px; /* Even smaller font size for headings on mobile screens */
    }

    #anniversary-counter, #met-counter {
        font-size: 16px; /* Smaller font size for counters on mobile */
    }

    .container {
        padding: 15px;
    }

    .counter {
        width: 100%; /* Take up full width on mobile */
        max-width: 100%;
    }

    .post-it {
        min-height: 300px;
        padding: 15px;
    }

    .post-it h2 {
        font-size: 1.5em;
    }

    .time {
        font-size: 1.7em;
    }
}

@media (max-width: 768px) {
    #met-counter, #anniversary-counter {
        font-size: 16px; /* Smaller font size for counters on mobile */
    }
}

@media (min-width: 769px) {
    #met-counter, #anniversary-counter {
        font-size: 18px; /* Smaller font size for counters on larger screens */
    }
}

.birthday-message {
    font-size: 110%;
    max-width: 50%;
    padding-bottom: 10%;
}
