@charset "UTF-8";
/* CSS Document */

.modalDialog {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: block;
    visibility: hidden;
}

.modalDialog.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modalDialog > div {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;         /* Limit height */
    overflow-y: auto;         /* Enable scrolling inside */
}


/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.8em;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    background-color: black;
    line-height: 1;
    padding: 0;
    color: #FFFFFF!important;
    text-align: center;
    width: 36px;
    text-decoration: none;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;    
}

.close:hover {
    background-color: gray;
    transform: scale(1.25);
    transition: 0.2s ease-out;    
}

.modal-trigger {
    font-weight: bold;
    color: #000;
    cursor: help;
    text-decoration: none;
    outline: none; 
}

.modal-trigger:hover,
.modal-trigger:focus {
    text-decoration: underline;
}

.modal-title {
    font-size: 1.75em; 
    font-weight: bold; 
    margin: 0.5em 0;
    line-height: 1em;
}

.modal-pathway-image {
    max-width:100%; 
    height:auto; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
    border-radius: 4px;
    margin: 1em 0;
}
