.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(71, 69, 69, 0.95);
    min-height: 10vh;
    max-height: 80vh;
    min-width: 20vh;
    max-width: 50vh;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    animation: popUp 0.5s forwards;
    overflow: auto;
    padding: 15px;
}

.close-cross {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #1e1e1e;
    cursor: pointer;
    transition: color 0.05s ease, transform 0.02s ease;
}

.close-cross:hover {
    transform: scale(1.3);
    color: #450000;
}

.close-btn {
    padding: 5px 10px;
    background: none;
    border: 1px solid #ccc;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    0% { transform: scale(0.8); opacity: 0; }
    80% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}