@import url('https://fonts.googleapis.com/css?family=Cousine&display=swap');

html,
body {
    margin               : 0;
    padding              : 0;
    font-family          : 'Cousine', monospace;
    font-size            : 1em;
    color                : white;
    background-color     : #02121d;
    background-image     : radial-gradient(#072a41, #02121d 60%, #000 100%);
    background-repeat    : no-repeat;
    background-attachment: fixed;
}

.terminal {
    margin : 0;
    padding: 0;
    height : 99vh;
    width  : 98vw;
    text-shadow: 0rem 0.2rem 3rem #17777a,
        0rem 0.2rem 2rem #0c777b,
        0rem 0.2rem 1rem #0c777b,
        0rem 0.2rem 1rem #0c777b;
    transform: matrix3d(1, 0, 0, -0.00001,
            0, 1, 0, 0,
            0, 0, 1, 0,
            0, 0, 0, 1);
}

.no-url,
.no-url:visited,
.no-url:hover,
.no-url:active {
    color          : white;
    text-decoration: none;
}

a,
a:visited {
    color: rgb(183, 240, 240);
}

a:hover {
    color: rgb(58, 223, 206);
}

a:active {
    color: rgb(183, 240, 240);
}

/* those rules where made for my own title, edufdez.es */
@media all and (min-width: 300px) { .fit-screen { font-size:0.38em; } }
@media all and (min-width: 400px) { .fit-screen { font-size:0.40em; } }
@media all and (min-width: 420px) { .fit-screen { font-size:0.45em; } }
@media all and (min-width: 460px) { .fit-screen { font-size:0.50em; } }
@media all and (min-width: 550px) { .fit-screen { font-size:0.60em; } }
@media all and (min-width: 640px) { .fit-screen { font-size:0.70em; } }
@media all and (min-width: 740px) { .fit-screen { font-size:0.80em; } }
@media all and (min-width: 830px) { .fit-screen { font-size:0.90em; } }
@media all and (min-width: 920px) { .fit-screen { font-size:1.00em; } }

/* flicker animation taken from http://goonhub.com/secret */
.flicker {
    position      : fixed;
    top           : 0;
    left          : 0;
    bottom        : 0;
    right         : 0;
    background    : rgba(18, 16, 16, 0.2);
    opacity       : 0;
    z-index       : 1000;
    pointer-events: none;
    animation     : flicker 0.12s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.552;
    }

    5% {
        opacity: 0.48287;
    }

    10% {
        opacity: 0.59134;
    }

    15.0% {
        opacity: 0.79543;
    }

    20% {
        opacity: 0.75134;
    }

    25% {
        opacity: 0.1956;
    }

    30.0% {
        opacity: 0.90687;
    }

    35% {
        opacity: 0.122;
    }

    40% {
        opacity: 0.62254;
    }

    45% {
        opacity: 0.56977;
    }

    50% {
        opacity: 0.9925;
    }

    55.0% {
        opacity: 0.55487;
    }

    60.0% {
        opacity: 0.16607;
    }

    65% {
        opacity: 0.12353;
    }

    70% {
        opacity: 0.2214;
    }

    75% {
        opacity: 0.67908;
    }

    80% {
        opacity: 0.97163;
    }

    85.0% {
        opacity: 0.1275;
    }

    90% {
        opacity: 0.37186;
    }

    95% {
        opacity: 0.24475;
    }

    100% {
        opacity: 0.37221;
    }
}

/* based on
https://blog.carbonfive.com/2015/01/07/vintage-terminal-effect-in-css3/
but in the end I writed what i wanted
*/
.scanlines {
    top   : 0;
    left  : 0;
    height: 100%;
    width : 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, .2) 70%,
            rgba(0, 0, 0, .1));
    background-size: 100% .3rem;
    position       : fixed;
    pointer-events : none;
}