@font-face {
    font-family: console;
    src: url(lucida-bsod.ttf);
}

/* Global stuff */

* {
    margin: auto;
    box-sizing: border-box;
    font-family: console, 'Comic Sans MS';
    text-align: center;
    color: white;
    text-decoration: none;
}

body {
    background-color: black;
    text-decoration: none;
}

::selection {
    background: white;
    color: black;
}

/* Universal blocks */

.section_block {
    display: table;
    margin: 0 auto;
    width: 100%;
}

.side_block {
    float: left;
    width: 50%;
}

.screen_content {
    background-color: black;
    font-size: 20px;
    padding: 30px;
    display: table;
    margin: 0 auto;
    width: 100%;
    /*max-width: 1980px;*/
}

.console_corner {
    text-align: left;
    display: block;
    padding: 0 65px 0 0;
}

.console_content {
    padding: 0 20px 0 20px;
    max-width: 1000px;
}

.about_entry {
    border-radius: 5px;
    margin-top: 5px;
    border: 2px solid white;
    margin: 10px;
    text-align: left;
}

.about_entry:hover {
    background-color: rgb(53, 53, 53)
}

.border {
    width: 100%;
    background-color: white;
    height: 2px;
}

/* Specific blocks */

#skills {
    text-align: start;
}

/* Retro screen thingy */

.old_screen_overlay {
    background-image: url(test_mask.png);
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 15%;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

.retro_screen_border {
    position: fixed;
    width: 100%;
    height: 100%;
    border: 30px solid transparent;
    border-image-source: url(screen_transparent.png);
    border-image-slice: 30;
    border-image-outset: 0;
    pointer-events: none;
}

.retro_screen_glowing {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(150, 150, 150, 0.4), transparent 100%);
    pointer-events: none;
}

/* Attempt to use an image for gradient. Didn't solve the optimization 
issue. 

.retro_console_effect_new {
    position: absolute;
    background-image: url(gradient.png);
    width: 100%;
    height: 100%;
    animation: barberpole 1s linear infinite;
    background-size:contain;
    animation-duration: 500ms;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;        
    image-rendering: -o-crisp-edges;          
    image-rendering: -webkit-optimize-contrast; 
    -ms-interpolation-mode: nearest-neighbor;  
}

*/

.retro_console_effect {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent 1rem, black 1.2rem);
    background-size: 200% 200%;
    animation: barberpole 1s linear infinite;
    animation-direction: alternate;
    animation-duration: 500ms;
    pointer-events: none;
}

@keyframes barberpole {
    100% {
        background-position: 100% 100%;
    }
}