/* Custom Modal CSS */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: url(images/overlay.png) repeat 0 0;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Th�m transition cho opacity v� visibility */
    opacity: 1;
    visibility: visible;
}

.custom-modal.fade-out {
    opacity: 0;
    visibility: hidden;
}

.custom-modal-content {
    background-color: #fff;
    position:relative;
    /*margin: 5% auto;*/
    border: 1px solid #888;
    width: 80%;
    height: 80%;
    overflow: auto;
    border-radius: 30px;
    /*top: -300px;
    opacity: 0;*/
    /*animation: animatetop 1s forwards;*/
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.8s;
    animation-name: animatetop;
    animation-duration: 0.8s
}

@-webkit-keyframes animatetop {
    from {
        top: -500px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -500px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 4px 3px;
    line-height: 16px;
}

    .custom-modal-close:hover,
    .custom-modal-close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
