:root {
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-color);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --text-color: black;
    --link-color: var(--text-color);
    --link-shadow-color: rgba(0, 0, 0, 0.5);
    --border-color: rgba(200, 200, 200, 0.5);
    --text-bg-color: rgba(255, 255, 255, 0.9);
    --text-border-shadow-color: rgba(255, 255, 255, 0.7);
    --text-shadow-color: rgba(0, 0, 0, 0.1);
    --img-bg-color: rgba(50, 50, 50, 0.2);
    --img-border-color: rgba(255, 255, 255, 0.8);
}

body,
html {
    inline-size: 100%;
    block-size: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#app {
    inline-size: 100%;
    block-size: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

h1 {
    font-size: 1.5rem;
    margin-block: .5rem;
}

p {
    font-size: 1.5rem;
    margin: 0;
    text-align: justify;
    text-align-last: center;
    inline-size: 100%;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: .2s text-shadow, .2s transform;
    display: inline-block;
    font-weight: 600;
}

a:hover {
    text-shadow: 0rem 0.2rem 1rem var(--link-shadow-color);
    /* transform: rotate(-3deg); */
    transform: translateY(-7%) scale(1.01);
}

img {
    transform: translate(-50%, -50%) translateZ(var(--translate-z));
    transition: transform 1s;
    position: absolute;
    inline-size: 10%;
    z-index: -1;
    min-inline-size: 10rem;
    border: 0.01rem solid var(--img-border-color);
    border-radius: 1rem;
    box-shadow: 0.05rem 0.05rem 0px var(--img-bg-color),
        -0.05rem -0.05rem 0px var(--img-bg-color),
        0.05rem -0.05rem 0px var(--img-bg-color),
        -0.05rem 0.05rem 0px var(--img-bg-color),
        0 0 1rem rgba(0, 0, 0, 0.3);
}

#background {
    transform-style: preserve-3d;
    transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    inline-size: 100%;
    block-size: 100%;
    z-index: -1;
    position: absolute;
}

@media (prefers-reduced-motion: reduce) {
    #background {
        transform: none;
    }

    a {
        transition: none;
    }

    a:hover {
        transform: none;
    }
}

.text {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--text-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.01rem solid var(--border-color);
    margin: 1px;
    padding: .8rem 1.6rem;
    inline-size: clamp(20rem, 30%, 40rem);
    border-radius: 1rem;
    box-shadow: 0.05rem 0.05rem 0px var(--text-border-shadow-color),
        -0.05rem -0.05rem 0px var(--text-border-shadow-color),
        0.05rem -0.05rem 0px var(--text-border-shadow-color),
        -0.05rem 0.05rem 0px var(--text-border-shadow-color),
        0rem 0rem 2rem var(--text-shadow-color);
}
