body {
    margin: 0;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #1B1B1E;
    background-image: url('src/img/static.gif');

    color: #ffffff;
}

p {
    position: relative;
    opacity: 0.95;
    animation: vhstracktext 0.2s linear infinite,
                flicker 0.1s infinite alternate;

    flex: 1;
    padding: 0.5em;
    font-family: 'MaruMinya';
}

p.reveal-anim {
    animation: vhstracktext 0.2s linear infinite,
                flicker 0.1s infinite alternate,
                fadeIn 1s linear 1,
                rise 1s linear 1;
}

.overlay {
    position: fixed;
    left: 0;
    right: 0;
    pointer-events: none;
}

.overlay.top {
    top: 0;
    height: 100px;
    background: url("src/img/gradient-top.png") repeat-x;
    background-size: 100% 100%;
}

.overlay.bottom {
    bottom: 0;
    height: 100px;
    background: url("src/img/gradient.png") repeat-x;
    background-size: 100% 100%;
}

img {
    animation: vhstrackimg 0.2s linear infinite, 
                flicker 0.1s infinite alternate;

    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.matrix {
    z-index: 2;
    pointer-events: none;
    position: fixed;
    height: 1000%;
    width: 1000%;
    bottom: 0;
    top: 0;
    right: 0;
    opacity: 0.7;
    left: 0;
    background-image: url("src/img/bayer.png");
    background-size: .5em;
    filter: contrast(.45);
    background-attachment: fixed;
    text-align: center;
    mix-blend-mode: color-dodge;
    image-rendering: pixelated;
}

.matrix2 {
    z-index: 3;
    pointer-events: none;
    position: fixed;
    height: 1000%;
    width: 1000%;
    bottom: 0;
    top: 0;
    right: 0;
    opacity: 1;
    left: 0;
    background-image: url("src/img/static.gif");
    background-size: .5em;
    filter: grayscale();
    background-attachment: fixed;
    text-align: center;
    mix-blend-mode: color-dodge;
    image-rendering: pixelated;
}

.div-pixel-screen {
    z-index: 5;
    pointer-events: none;
    position: fixed;
    height: 1000%;
    width: 1000%;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    background-image: url("src/img/pixelscreen.jpg");
    image-rendering: pixelated;
    text-align: center;
    mix-blend-mode: hue;
}

#vignette {
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    opacity: 0;
    transition: none;
}

.clickable {
    cursor: pointer;
}

.dotted-underline {
    text-decoration: underline dotted white;
}

.small-text {
    font-size: smaller;
}

.disabled-link {
    color: rgb(75, 75, 75);
}

.side-by-side {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    top: 4px;
}

.top-down {
    text-align: center;
}

.side-by-side p {
    flex: 0 1 auto;
    box-sizing: border-box;
}

.content {    
    padding: 2em;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
}

img.reveal-anim {
    animation: vhstrackimg 0.2s linear infinite,
               flicker 0.1s infinite alternate,
               reveal 5s steps(15) forwards;
}

@keyframes rise {
    0% {
        transform: translateY(4px); 
    }
    100% {
        transform: translateY(0px); 
    }
}

.rise {
    animation: rise 1s both 1;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s both 1;
}

@keyframes reveal{
    from {
        clip-path: inset(0 0 100% 0);
    } to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes flicker {
    from { opacity: 0.95; }
    to { opacity: 1; }
}

@keyframes vhstracktext {
	from { 
        text-shadow: 4px 0px 0px rgba(151, 91, 222, 0.6), -3px 0px 3px rgba(152, 222, 91, 0.8);  
	}
    to {
        text-shadow: 3px 0px 0px rgba(151, 91, 222, 0.4), -2px 0px 0px rgba(152, 222, 91, 0.7);
	}
}

@keyframes vhstrackimg {
	from { 
		filter: drop-shadow(2px 0px 0px rgba(151, 91, 222, 0.6)) drop-shadow(-1.5px 0px 3px rgba(152, 222, 91, 0.8));
	}
	to {
		filter: drop-shadow(1.5px 0px 0px rgba(151, 91, 222, 0.4)) drop-shadow(-1px 0px 0px rgba(152, 222, 91, 0.7));
	}
}

@font-face {
    font-family: 'MaruMinya';
    font-style: normal;
    font-weight: normal;
    src: local('MaruMinya'), url('src/fonts/x12y12pxMaruMinya.woff') format('woff');
}
