body {
    font-family: "Vend Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}


.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    z-index: 1000;
    transition: opacity 2s ease;
    text-align: center;
    width: 400px;
    
    background-size: 140% auto;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.popup .background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: auto;
    max-width: none;
    z-index: 0;
}

.popup .content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup.show {
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
}

.popup title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
}

.popup p {
    font-size: 20px;
    max-width: 90vw;
    color: #333;
}

/*
Page dimming effect
*/
.page {
    transition: filter 1s ease;
    will-change: filter;
    font-size: 0;
}

.page.dimmed {
    filter: brightness(20%);
    pointer-events: none;
}


/*
Page down arrow style
*/ 

.pagedown {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    opacity: 1;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    z-index: 2;

    display: none;
}

.pagedown.dark {
    background-color: rgba(0,0,0,0.42);
    -webkit-backdrop-filter: blur(2px) brightness(0.7);
    backdrop-filter: blur(2px) brightness(0.7);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.pagedown.light {
    background-color: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(2px) brightness(1.03);
    backdrop-filter: blur(2px) brightness(1.03);
    color: #000000;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.pagedown:hover {
    opacity: 1;
}

.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 30px;
    height: 30px;
}

.arrow path {
    stroke-width: 5;
    stroke-linecap:round;
    stroke-linejoin:round;
    fill:none;
    stroke:#000000;
    opacity: 1;
}

/* Corner Ribbon */
.ribbon {
    font-family: 'Roboto Mono', monospace;
    width: 200px;
    background: #FFFFFF;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    touch-action: manipulation;
    
    position: fixed;
    top: 15px;
    right: 15px;
    
    text-align: center;
    line-height: 40px;
    letter-spacing: 1px;
    color: #000000;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    z-index: 2;
    width: 15em;

    display: none;
}

.ribbon.show {
    display: block;
}

.ribbon a {
    color: #000000;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0.5em 0;
    box-sizing: border-box;
    user-select: text;
}