/* Modal and blur styles for initial selection popup */
.modal-blur-bg {
    filter: blur(6px);
    transition: filter 0.3s;
}
#sdg-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(30, 30, 30, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: modal-fade-in 0.5s cubic-bezier(.4,1.6,.6,1) 1;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
#sdg-modal .modal-content {
    background: linear-gradient(135deg, #f8fff8 0%, #e6f7ee 100%);
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(44, 62, 80, 0.18), 0 1.5px 8px 0 rgba(44,62,80,0.10);
    padding: 2.7em 2.2em 2.2em 2.2em;
    text-align: center;
    min-width: 270px;
    max-width: 92vw;
    transform: scale(0.85);
    opacity: 0;
    animation: modal-content-in 0.5s cubic-bezier(.4,1.6,.6,1) 0.1s forwards;
    position: relative;
}

@keyframes modal-content-in {
    from { opacity: 0; transform: scale(0.7) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#sdg-modal h2 {
    margin-bottom: 1.7em;
    font-size: 1.5em;
    color: #1e5c1e;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
#sdg-modal .modal-btns {
    display: flex;
    flex-direction: column;
    gap: 1.3em;
    margin-top: 0.5em;
}
#sdg-modal button {
    padding: 1em 2.5em;
    font-size: 1.13em;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2d7a2d 60%, #4ecb8f 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
    letter-spacing: 0.01em;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    outline: none;
    position: relative;
    overflow: hidden;
}
#sdg-modal button:hover, #sdg-modal button:focus {
    background: linear-gradient(90deg, #256325 60%, #3ea86e 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(44,62,80,0.13);
}
@media (max-width: 500px) {
    #sdg-modal .modal-content {
        padding: 1.2em 0.5em 1.2em 0.5em;
    }
    #sdg-modal h2 {
        font-size: 1.1em;
    }
    #sdg-modal button {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }
}
