.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-container.popup-active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.popup-content {
    position: relative;
    max-width: 600px;
    max-height: 80vh;
    margin: 5% auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    overflow-y: auto;
    z-index: 10000;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup-active .popup-content {
    transform: translateY(0);
    height: fit-content;
    display:flex;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.popup-close:hover {
    background-color: #f0f0f0;
}

.popup-close::before {
    content: '×';
    font-weight: 300;
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
}
