@import url(/css/common.css);
@import url(/css/color.css);
@import url(/css/share.css);
@import url(/tools/prompt/prompt.css);

:root {
    /* --safe-top: 30px;  */
    /* --safe-area-inset-top: 59px;
    --safe-area-inset-bottom: 34px; */
    /* --safe-top: calc(env(safe-area-inset-top, 0px) * 0.85); */
    --safe-top: var(--safe-area-inset-top, 20px);
    --safe-bottom: var(--safe-area-inset-bottom, 24px);
}  
body {
    background: var(--bg);
}
main {
    height: 100vh;
    overflow: scroll;
    transition: var(--duration);
    display: flex;
}
main > *:not(.current) {
    display: none;
}
qrcode {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #000000cc;
    z-index: 10;
    backdrop-filter: blur(30px);
    animation: fade-in 0.5s both;
}
qrcode:empty {
    display: none;
}
qrcode > div {
    border-radius: 10px;
    padding: 10px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
qrcode > #code {
    width: 65vw;
    background: #ffffff;
}
qrcode text {
    color: white;
    font-size: 3.5vw;
}

img.ok{
    --duration: 2.0s;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    animation: fade-in-out var(--duration) both;
    --width: 25vw;
    width: var(--width);
    height: var(--width);
} 
img.close {
    position: fixed;
    aspect-ratio: 1;
    top: calc(var(--safe-top) + 4vw);
    right: 4vw;
    width: 70px;
    cursor: pointer;
    border-radius: 50%;
    background: #ffffff08;
    padding: 10px;
}