.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    flex-direction: column;
    text-align: center;
    line-height: normal;
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
    box-sizing: border-box;
    padding: 24px;
}
/* Long text scrolls inside this box; the button below it always stays on screen */
.overlay-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    color-scheme: dark;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.overlay a {
  text-decoration: underline;
  color: white;
}
.hidden {
    display: none;
}
.overlay.hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.close-btn {
    flex-shrink: 0;
    margin-top: 20px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 18px;
    border: none;
    cursor: pointer;
    background-color: #ff5722;
    color: white;
    border-radius: 5px;
}
