body {font-family: Arial, Helvetica, sans-serif;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    opacity: 1;
    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.6); /* Black w/ opacity */
    animation-name: fade-in;
    animation-duration: 1s;
}

.modal-closed {
    display: block;
    opacity: 0;
    position: fixed; /* Stay in place */
    z-index: -1;
    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.6); /* Black w/ opacity */
    animation-name: fade-out;
    animation-duration: 0.5s;
}

@keyframes fade-in {
    from {opacity:0;
        z-index: 0;}
    to {opacity:1;
        z-index: 1;}
}

@keyframes fade-out {
    from {opacity:1;
        z-index: 1;}
    to {opacity:0;
        z-index: 0;}
}

/* Modal Content */
.modal-content {
    /*position: relative;*/
    display: block;
    opacity: 1;
    position: fixed; /* Stay in place */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

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

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

.modal-header {
    padding: 2px 16px;
    background-color: #cccccc;
    color: black;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #cccccc;
    color: black;
}

.text-fade-out-in { 
  animation: fade-out-in 1s;
}

.text-fade-in { 
  animation: fade-in 1s;
}

.text-fade-out { 
  animation: fade-out 1s;
}

@keyframes fade-out-in {
  from {
    opacity:1;
  }
  70% {
    opacity: 0;
  }
  to {
    opacity:1;
  }
}
