@import 'https://fonts.googleapis.com/css?family=Inconsolata';

html {
    min-height: 100%;
}

body {
    box-sizing: border-box;
    height: 100%;
    background-color: #000000;
    background-image: radial-gradient(#11581E, #041607), url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Inconsolata', Helvetica, sans-serif;
    font-size: 1.5rem;
    color: rgba(128, 255, 128, 0.8);
    text-shadow:
            0 0 1ex rgba(51, 255, 51, 1),
            0 0 2px rgba(255, 255, 255, 0.8);
}

.noise {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    opacity: .02;
}

.overlay {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background:
            repeating-linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0) 0,
                    rgba(0, 0, 0, 0.3) 50%,
                    rgba(0, 0, 0, 0) 100%);
    background-size: auto 4px;
    z-index: 1;
}

.overlay::before {
    content: "";
    pointer-events: none;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            0deg,
            transparent 0%,
            rgba(32, 128, 32, 0.2) 2%,
            rgba(32, 128, 32, 0.8) 3%,
            rgba(32, 128, 32, 0.2) 3%,
            transparent 100%);
    background-repeat: no-repeat;
    animation: scan 7.5s linear 0s infinite;
}

@keyframes scan {
    0%        { background-position: 0 -100vh; }
    35%, 100% { background-position: 0 100vh; }
}

.terminal {
    box-sizing: inherit;
    max-width: 100%;
    padding: 4rem; /* Padding di default per Desktop */
    text-transform: uppercase;
    /* Rimuovi margin-bottom da qui se lo gestisci nelle media query */
}

#qr-code {
    /* Stili base se necessari, ma img-fluid fa molto */
}

/* --- Stili SPECIFICI per Mobile (< 992px) per ridurre altezza --- */
@media (max-width: 991.98px) {
    .terminal {
        padding: 1.5rem;       /* Padding ridotto drasticamente */
        margin-bottom: 1rem;  /* Spazio sotto il terminale ridotto */
        /* font-size: 0.9em; */ /* Opzionale: Riduci font se serve ancora spazio */
    }

    #qr-code {
        max-width: 150px;    /* Rendi QR code più piccolo */
        max-height: 150px;   /* Rendi QR code più piccolo */
        margin-left: auto;   /* Assicura centraggio */
        margin-right: auto;
    }

    /* Opzionale: Stile più piccolo per "Scan me" */
    .row > div:last-child .card-text { /* Selettore per "Scan me" */
        font-size: 0.9rem;         /* Font più piccolo */
        margin-bottom: 0.25rem;    /* Meno spazio sotto "Scan me" */
    }
}

/* --- Stili per Desktop (>= 992px) per ripristinare --- */
@media (min-width: 992px) {
    .terminal {
        padding: 4rem;     /* Ripristina padding desktop */
        margin-bottom: 0;  /* Nessun margine sotto quando affiancato */
        /* font-size: inherit; */ /* Ripristina font se modificato sopra */
    }

    #qr-code {
        max-width: none;   /* Rimuovi limiti mobile */
        max-height: none;
    }

    /* Opzionale: Ripristina stile "Scan me" */
    .row > div:last-child .card-text {
        font-size: inherit; /* O la dimensione che aveva */
        margin-bottom: 1rem; /* Ripristina margine (controlla valore default Bootstrap) */
    }
}

.output {
    color: rgba(128, 255, 128, 0.8);
    text-shadow:
            0 0 1px rgba(51, 255, 51, 0.4),
            0 0 2px rgba(255, 255, 255, 0.8);
}

.output::before {
    content: "> ";
}



a {
    color: #fff;
    text-decoration: none;
}

a::before {
    content: "[";
}

a::after {
    content: "]";
}

.errorcode {
    color: white;
}