.page-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 0; /* will be changed by JS */
    z-index: 1;
}
.page-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px); /* modern & performant */
    /* or use filter: blur(5px); background-color: rgba(0,0,0,0.3); if you want fallback */
    z-index: -1;
    pointer-events: none;
}

/* 400 to 900 */
.playfair-display-main-header {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.playfair-display-body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.courier-new {
    font-family: 'Courier New', monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.desktop-hide {
    display: none !important;
}
@media (max-width: 425px) {
    .mobile-hide {
        display: none !important;
    }
    .desktop-hide {
        display: inherit !important;
    }
}

main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998; /* ensure it's above other elements */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f7f7f7;
    text-align: center;
    background: #0000006b;
    width: auto;
    height: 3rem;
    border-radius: 10px 10px 10px 10px;
    margin: 2rem 2rem 2rem 2rem;
    overflow: hidden;
}
@media (max-width: 425px) {
    main-header {
        margin: 1.5rem 0.5rem 0.5rem 0.5rem;
        left: auto;
    }
    main-header a {
        font-size: 1rem !important;
        padding: 0.2rem 0.35rem 0.2rem 0.35rem !important;
    }
    main-header img {
        height: 2rem;
    }
}

main-header a {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 1rem 0.2rem 1rem;
}
main-header img {
    height: 2.5rem;
    position: relative;
    top: 3px;
}

nav {
    position: relative; /* <-- containment context */
    overflow: hidden;   /* <-- clip cursor */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

bottom-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1rem;
    color: #f7f7f7;
    text-align: center;
    background-color: #000000;
}

fullscreen-modal {
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0000006b;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0000006b;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-image {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 1rem;
}

.modal-caption {
    color: #f7f7f7;
    font-size: 1.2rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: #f7f7f7;
    cursor: pointer;
}

.left-btn {
    position: absolute;
    left: 2rem;
    font-size: 2rem;
    color: #f7f7f7;
    cursor: pointer;
}
.right-btn {
    position: absolute;
    right: 2rem;
    font-size: 2rem;
    color: #f7f7f7;
    cursor: pointer;
}

.gradient-rounded-box {
    border-radius: 20px;
    background: radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0) 70%
    );
    background-color: #222;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.0) 100%);
}
