/* The Modal (background) */
.popup-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.popup-modal-content {
    background-color: #ffffff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    width: 500px; /* Could be more or less, depending on screen size */
}

/* Modal Body */
#myPopup .popup-modal-body {
    margin-top: 10px;
    /* pour contrecarer margin-bottom
    par défaut de portlet-msg-alert */
    margin-bottom: 0;
}

/* The Close Button */
.popup-modal-close {
    color: #666666;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.popup-modal-close:hover,
.popup-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}