body {
    font-family: -apple-system, Helvetica, sans-serif;
    margin: 0;
    padding: 0;

    height: 100%;
    width: 100%;
    position: absolute;
}


/* @media (prefers-color-scheme: dark) {
    body {
        filter: invert(0);
    }
}

@media (prefers-color-scheme: light) {
    body {
        filter: invert(0.99);
    }
} */

body {
    filter: invert();
}

main {
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stage {
    margin: 100px auto;
    position: relative;
}

.inverse-text {
    max-width: 350px;
    mix-blend-mode: normal;
    position: -webkit-sticky;
    margin: 8px auto;
}

.stage .presenter {
    mix-blend-mode: normal;

    position: relative;
    width: fit-content;
    margin: 10em 5em;
    padding: 30px 40px;
    border-radius: 15px;

    text-align: center;

    transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
    color: #5d9b6f;
}

/* Smooth blur transition */
.stage .presenter::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: inherit;
    z-index: -1;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    filter: blur(10px);
    opacity: 1;
    border-radius: 30px;
}

/* .stage:hover .presenter {
    for pure white version
    box-shadow:
        inset 5px 5px 10px #fafafabf,
        inset -5px -5px 10px #f7f7f7c9,
        0px 0px 45px 15px rgba(0, 0, 0, 0.05);
} */
/*
.stage:hover .presenter::after {
    content: "";

    background-color: rgba(13, 13, 13, 0.5);
    position: absolute;
    bottom: -50%;
} */

.stage:hover .presenter {
    /* transform: translateY(-100px);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); */
    /* for pure white version */
    /* box-shadow:
        inset 5px 5px 10px #fafafabf,
        inset -5px -5px 10px #f7f7f7c9,
        0px 0px 45px 15px rgba(0, 0, 0, 0.05);
    */
}


/* .stage:hover .presenter {
    background-color: rgba(20, 20, 20, 0.65);
} */

/*
.stage:hover .presenter::after {
    content: "";

    background-color: rgba(13, 13, 13, 0.5);
    position: absolute;
    bottom: -50%;
} */

@media only screen and (max-width: 450px) {
    .stage .presenter {
        padding: 15px 20px;
    }

    .stage .presenter::before {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
}
