/* --- Info Popup Styles --- */

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001; /* Higher than other elements */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

/* This class will be added by JavaScript to show the popup */
.popup-container.show-popup {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    position: relative;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    z-index: 1;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden; /* Add this line to contain the confetti */
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.popup-close-btn:hover {
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

.popup-image {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.popup-image img {
    max-width: 100%;
    max-height: 100%;
}

.popup-text h2 {
    font-size: 1.8rem;
    color: #4A90E2;
    margin: 0 0 1rem;
}

.popup-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.popup-option {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.popup-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.popup-option label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-contributors {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contributor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contributor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contributor-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.popup-learn-more-btn {
    display: inline-block;
    background-color: #4A90E2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.popup-learn-more-btn:hover {
    background-color: #3A7BC8;
    transform: translateY(-2px);
}

.contributor-daycare {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}