#vacons-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(255,255,255,0.7);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.35s ease-in; 
}

#vacons-overlay.fade-in {
    opacity: 1;
}

#vacons-popup {
    position: relative;
    line-height: 1.25;
    margin: 0 16px;
    padding: 18px 14px;
    padding-bottom: 6px;
    max-width: 544px;
    max-height: 95%;
    overflow: hidden;

    white-space: normal;
    text-align: justify;
    text-justify: inter-word;

    background-color: white;
    border-style: solid;
    border-width: 2px;
    box-shadow: 4px 4px 2px 2px rgba(100, 100, 100, 0.9);

    display: flex;
    flex-direction: column;
}

#vacons-text {
    overflow: auto;
    flex-shrink: 1;
}

#vacons-popup p {
    margin: 1rem 0;
}

#vacons-popup a {
    text-decoration: underline dotted;
}

#vacons-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;

    justify-content: space-evenly;
    align-items: center;
}

#vacons-actions button {
    background: none;
    border: none;
    margin: 0.4em;
}

#vacons-close {
    position: absolute;
    display: inline-flex;
    top: 0;
    right: 0;
    margin: 8px 8px 0 0;
    padding: 4px;
    background-color: white;
    border: 4px solid black;
    border-radius: 50%;
}

#vacons-close:active {
    top: 1px;
    right:-1px;
}

#vacons-close:hover {
    box-shadow: 4px 3px 2px rgba(0,0,0, 0.7);
}

@media only screen and (min-width: 580px) {
    #vacons-popup {
        position: relative;
        top: -70px;  
    }
}
