@import url("../fonts/fonts.css");

.ascii-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.ascii-item {
    text-align: left;
}

/* ASCII showcase */
pre.ascii {
    display: inline-block;
    max-width: 100%;
    overflow: auto;
    white-space: pre;

    position: relative;
    border: 1px solid var(--sec);
    padding: 1rem;
    margin: 1rem 0;
    background: none;
    font-family: "MonaspaceNeonNF", monospace;
    font-size: 0.9rem;
    line-height: 1.2;

    /* user-select: all; */
    /* -webkit-user-select: all; */
    user-select: none;
}

pre.ascii::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.88)),
        url("../assets/imgs/al.png");

    background-size: cover;
    background-position: center;
}

pre.ascii > code {
    font-family: "MonaspaceNeonNF", monospace;
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow:
        /* Inner */
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 8px #fff,
        /* Outer */ 0 0 12px var(--acc),
        0 0 20px var(--acc),
        0 0 25px var(--acc),
        0 0 35px var(--acc);

    background: none;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

@media (min-width: 540px) {
    .ascii-gallery {
        justify-content: flex-start;
    }
    pre.ascii {
        padding: 8rem;
    }
}

@media (min-width: 860px) {
    .ascii-gallery {
        gap: 3rem;
    }
}
