@font-face {
    font-family: retroFont;
    src: url("../font/dos.ttf");
}

a {
    text-decoration: none;
}

html {
    max-width: 100%;
    scrollbar-gutter: stable both-edges;
    display: flex;
    justify-content: center;
}

body {
    font-family: retroFont;
    font-size: 28px;
    color: white;
    background-color: black;
    animation: crt-flicker 0.1s infinite;
    display: flex;
    justify-content: center;
    line-height: 1.0;
    letter-spacing: 2px;
    overflow-x: hidden;
    max-width: 900px;
    align-self: center;
}

body.off {
    animation: none;
}

.image {
    width: 100%;
    max-width: 900px;
    border: 4px solid white;
}

button {
    font-size: 16px;
    font-family: 'retroFont';
}

.effectwrapper {
    filter: url(#kill);
    height: 100%;
    width: 900px;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.effectwrapper.off {
    filter: none;
}

.scanlines {
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 54, 0, 0.6));
    background-size: 100% 2px;
    position: fixed;
    top: 0;
    left: 0;
    width: 110vw;
    height: 110vh;
    pointer-events: none;
    overflow: hidden;
    pointer-events: none;
}

.scanlines.off {
    background: none;
}

.scanlines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 110vw;
    height: 110vh;
    background: radial-gradient(circle, rgba(255, 0, 0, 1) 0%, rgba(34, 0, 255, 0.11248249299719892) 0%, rgba(170, 157, 255, 1) 0%, rgba(138, 120, 255, 0.3785889355742297) 0%, rgba(255, 255, 255, 0.11248249299719892) 100%);
    pointer-events: none;
    overflow: hidden;
}

@keyframes crt-flicker {
    0% {
        opacity: 0.97;
    }

    50% {
        opacity: 1;
    }
}

.headerbg {
    background-color: black;
    position: fixed;
    top: 0px;
    height: 8px;
    width: 100%;
    z-index: 1;
}

.header {
    display: flex;
    flex-direction: column;
    background-color: darkslateblue;
    padding-bottom: 10px;
    align-items: center;
    border: 4px solid white;
    max-width: 900px;
    align-self: center;
}

.logo {
    width: 90vw;
    max-width: 880px;
    image-rendering: pixelated;
}

.mainmenu {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    justify-content: center;
}

.optionmenu {
    margin-top: 8px;
    column-gap: 5px;
    align-items: center;
    justify-content: flex-end;
    display: none;
}

.menuitem {
    color: white;
    margin-inline: 10px;
    padding: 6px;
    border: 2px solid white;
    box-shadow: 3px 3px #261dde;
    text-align: center;
}

.menuitem:hover {
    color: darkslateblue;
    background-color: white;
}

.content {
/*     margin-inline: 8px; */
    width: 98%;
    max-width: 900px;
}

#fontSizeTester {
    visibility: hidden;
    white-space: nowrap;
    position: absolute;
    overflow: hidden;
}

.typed {
    display: flex;
    flex-direction: column;
}

.line {
    white-space: nowrap;
    width: fit-content;
}

@keyframes fade {
    0% {
        border-right: 4px solid white;
    }

    20% {
        border-right: 4px solid rgba(0, 0, 0, 0);
    }

    40% {
        border-right: 4px solid white;
    }

    60% {
        border-right: 4px solid rgba(0, 0, 0, 0);
    }

    80% {
        border-right: 4px solid white;
    }

    100% {
        border-right: 4px solid rgba(0, 0, 0, 0);
    }
}