#info-modal-opener {
    cursor: pointer;
    background-color: white;
    margin: 0.5em;
    padding: 0;
    border-radius: 5px;
    height: 3em;
    width: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#info-modal-overlay {
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
}

#info-modal-overlay:has(+#info-modal-box.open) {
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#info-modal-box {
    position: absolute;
    background: white;
    box-sizing: border-box;
    padding: 2rem;
    top: 100%;
    left: -100%;
    transform: translate(-100%, 100%);
    margin: 2em;
    min-width: 30ch;
    max-width: 80vw !important;
    max-height: 60vh;
    overflow: scroll;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    opacity: 0;
    transition: opacity 0.5s ease;
}

#info-modal-box.open {
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 2em), -50%);
    z-index: 2000;
}

#info-modal-box h2 {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.2em;
    color: #222;
    margin: 3em 0 0.5em 0 !important;
}

#info-modal-box h2:first-of-type {
    margin: 1em 0 0.5em 0 !important;
}

#info-modal-box p {
    font-weight: 300;
    line-height: 1.75em;
}

#info-modal-box button.modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#version-info {
    font-weight: 100;
    text-align: right;
    font-size: 0.75em;
    color: #aaa;
    margin-top: 2rem;
}

@media (max-width: 950px) {
    #info-modal-box.open {
        max-width: 100vw !important;
        max-height: 100vh;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        margin: 1em;
    }
}