﻿/* Modal container with fade effect */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    /* Show modal */
    .modal.show {
        display: block;
        opacity: 1;
    }

/* Modal content with scale animation */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* When modal is visible */
.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #66B848;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

    .close:hover {
        background-color: #559c3a;
    }