@font-face {
    font-family: 'FancyPixel';
    src: url(../fonts/alagard.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    cursor: url("../cur/main_menu/normal.cur") 25 15, default;

    input{
        cursor: url("../cur/main_menu/text.cur") 25 15, text; 
    }
}

.screen-cracks-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    img{
        -moz-user-select: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        pointer-events: none !important;

        align-self: center;
        text-align: center;
    }
}

.background-image {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
}

.scanlines {
    position: fixed;
    left: 0;
    top: 0;
    width: 110%;
    height: 110%;
    pointer-events: none;
    z-index: 300;
    opacity: .6;
    will-change: opacity;
    animation: opacity 3s linear infinite;

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        background: linear-gradient(to bottom, transparent 50%, rgb(0, 0, 0) 51%);
        background-size: 100% 4px;
        will-change: background, background-size;
        animation: scanlines .2s linear infinite;
    }
}

@keyframes opacity {
    0% {
        opacity: .6;
    }

    20% {
        opacity: .3;
    }

    35% {
        opacity: .5;
    }

    50% {
        opacity: .8;
    }

    60% {
        opacity: .4;
    }

    80% {
        opacity: .7;
    }

    100% {
        opacity: .6;
    }
}

@keyframes scanlines {
    from {
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .5) 51%);
        background-size: 100% 4px;
    }

    to {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 50%, transparent 51%);
        background-size: 100% 4px;
    }
}

.eye-container {
    opacity: 0;
    position: relative;
    margin-bottom: 20%;

    .eye {
        animation: glitch 0.5s infinite;
        filter: invert() drop-shadow(0px 0px 5px white);
    }
}

.eye {
    display: block;
}

.pupil {
    display: block;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.eye-input{
    width: 250px;
    height: 30px;
    display: block;
    color: black;
    background-color: white;
    text-align: center;
    margin: auto;
    margin-top: 25px;
    font-family: 'FancyPixel';
    font-size: 24px;

    border: 5px solid black;
    border-image: url(../imgs/border-test.png) 65% repeat;
    outline: 3px solid black;
    padding: 5px;

    &:focus{
        outline: 3px solid black;
    }
}