:root {
    --ascii-gradient-inner: #5fe85f;
    --ascii-gradient-outer: #7fb29d;
    
    --ascii-gradient-inner: #3bed3b;
    --ascii-gradient-outer: #55cc9b;
    
    --ascii-gradient-size: 150px;

    --ascii-art-color: #6fa28d;
    --ascii-art-color: rgb(111, 162, 141);

    --page-bg-stripes: rgba(120, 120, 120, 0.03);

    --page-bg: #151515;
    --page-fg: #55cc9b;

    --link-fg: #afa;
    --link-fg-hover: #bff;
}

* {
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
body {
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--page-fg);
    font-family: monospace;
    text-shadow: 0 1px 0px black;
    background-color: var(--page-bg);
    background-image:
        repeating-linear-gradient(
            0deg,
            var(--page-bg-stripes),
            var(--page-bg-stripes) 3px,
            transparent 3px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            var(--page-bg-stripes),
            var(--page-bg-stripes) 3px,
            transparent 3px,
            transparent 4px
        );
}
@media (max-width: 481px) {
    body {
        font-size: 13px;
    }
}
a {
    color: var(--link-fg);
    outline: none;
    text-decoration: none;
    -webkit-transition: all .25s ease-out;
    -moz-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}
a:hover {
    color: var(--link-fg-hover);
    outline:none;
    text-shadow:0 1px 0px #000,
                0 0 3px #9f9;
    -webkit-transition: all .25s ease-out;
    -moz-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}
main {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}
#background-container {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}
#background-container canvas {
    width: 100%;
    height: 100%;
    opacity: 0.2;
    transition: opacity 1s ease-in-out;
}

main:focus-within #background-container canvas {
    opacity: 0.9;
    transition: opacity 1s ease-in-out;
}

@media (max-width: 481px) {
    main h1 {
        font-size: 2.3em;
    }
}
pre.art {
    position: relative;
    margin: 0 auto;
    padding: 1em;
    overflow-x: auto;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    text-shadow: 0 0 4px rgba(158,208,192,0.1);
    display: inline-block;
    color: var(--ascii-art-color);
    cursor: default;

    background: transparent 50% 50% no-repeat;
    background-image: radial-gradient(var(--ascii-gradient-size) at center, var(--ascii-gradient-inner), var(--ascii-gradient-outer) );
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

pre.art .pw-field {
    display: inline-block;
    position: relative;
}
pre.art .pw-field span {
    opacity: 0;
}
pre.art .pw-field input {
    position: absolute;
    left: -10px;
    right: -10px;
    top: 0;
    bottom: 0;
    width: calc(100% + 20px);
    height: auto;
    outline: none;
    border: none;
    border-radius: 3px;
    padding-left: 10px;

    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    font-weight: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .57em;
    line-height: 1;

    background: rgba(85, 204, 155, 0);
    color: var(--page-fg);
    background-clip: none;
    -webkit-background-clip: none;
    text-fill-color: currentcolor;
    -webkit-text-fill-color: currentcolor;
    transition: all 1s ease;
}
pre.art .pw-field input::placeholder {
    color: currentcolor;
    opacity: 1;
}
pre.art .pw-field input:focus {
    background: rgba(85, 204, 155, 0.05);
    transition: all 1s ease;
}

pre.art .door {
    cursor: pointer;
    color: red;
    text-shadow: 0 0 4px rgba(95, 186, 157, 1.0);
    animation: art-door 3s infinite;
}
/* Standard syntax */
@keyframes art-door {
    0% {
        text-shadow: 0 0 10px rgba(95, 186, 157, 0.0);
    }
    50% {
        text-shadow: 0 0 12px rgba(114, 223, 188, 1.0);
    }
    100% {
        text-shadow: 0 0 10px rgba(95, 186, 157, 0.0);
    }
}

@media (max-width: 800px) {
    pre.art {
        font-size: 1.8vw;
    }
}
