@import url("https://fonts.googleapis.com/css?family=VT323");

h1 {
  margin:0 0 0 0;
  font-size: 1em;
}

.scanlines {
  position: relative;
  overflow: hidden;
}
.scanlines:before, .scanlines:after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}
.scanlines:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  z-index: 2147483649;
  opacity: 0.55;
  
}
.scanlines:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648;
}

canvas {
  background: white;
  display: none;
}
pre {
  margin: 1em 0 0 0;
  font-size:1.5rem;
}

#fancypress {
  display: none;
}

#pressme {
  cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.modal iframe {
    width: 100%;
    height: 515px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5e5e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 4rempx;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-button:hover {
    background-color: #ff1e1e;
}

#switch:checked ~ .screen.scanlines:before { 
  background: rgba(0, 0, 0, 0.25);
  animation: scan-moving 6s linear infinite;
}

#switch:checked ~ .screen.scanlines:after {
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.123) 51%);
  background-size: 100% 0.5rem;
  animation: scan-crt 1s steps(60) infinite;
}
#switch:checked ~ .screen > .contents {
  animation: crt-power-on 1.5s forwards ease-in;
}

#switch:not(:checked) ~ .screen > .contents {
  animation: crt-power-off 1.5s forwards ease-in;
}

@keyframes fadeinout {
    0% {
    background-size: 100% 0.5rem;
    }
    60% {
    background-size: 100% 0.0rem;
    }
    75% {
    background-size: 100% 0.5rem;
    }
    85% {
    background-size: 100% 0.5rem;
    }
    100% {
    background-size: 100% 0.2rem;
    }
}

@keyframes scan-moving {
  0% {
	transform: translate3d(0, 100vh, 0);
  }
}
@keyframes scan-crt {
  0% {
	background-position: 0 50%;
  }
}
@keyframes blink {
  to {
	visibility: hidden;
  }
}
@keyframes crt-power-on {
    0% {
    transform: scale(0, 0.0001) translate3d(0, 0, 0);
    filter: brightness(50);
    opacity: 1;
    }
    60% {
    transform: scale(1.3, 0.006) translate3d(0, 0, 0);
    filter: brightness(10);
    }
    75% {
    transform: scale(1.1, 1.3) translate3d(0, 0, 0);
    filter: brightness(5);
    }
    85% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: brightness(2);
    }
    100% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: brightness(1);
    
    }
}
@keyframes crt-power-off {
  0% {
	transform: scale(1, 1.3) translate3d(0, 0, 0);
	filter: brightness(1);
	opacity: 1;
  }
  60% {
	transform: scale(1.3, 0.001) translate3d(0, 0, 0);
	filter: brightness(10);
  }
  100% {
	transform: scale(0, 0.0001) translate3d(0, 0, 0);
	filter: brightness(50);
  }
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-size: 2.4rem;
  font-family: "VT323", monospace;
  font-weight: 900;
  text-shadow: 0 0 0.08em white, -0.08em 0 0.08em aqua, 0.08em 0 0.08em fuchsia;
}

.container {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height:100vh;
  
}

.screentext {
  filter: blur(0.75px);
  padding: 0 0 50px 0;
}

.screen {
  position: relative;
  height: 100vh;
  width: 100%;
  box-sizing: content-box;
}
.screen .contents {
  position: absolute;
  overflow: scroll;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 4rem;
  background-color: #0064ff;
  box-sizing: border-box;
  box-shadow: inset 0 0 18rem rgb(39, 0, 45),
  inset 0 0 3rem rgb(39, 0, 45),
  0 0 10rem rgb(39, 0, 45);
}

.screen h2 span {
  animation: blink 1s steps(5, start) infinite;
}
.screen a {
  color: #fff;
}

nav {
  margin: 15px 0 10px 0;
}

nav ul li a {
  text-decoration: none;
}

.screen a:hover {
    //animation: blink .5s steps(2, start) infinite;
}

@keyframes ablink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h1 {
  text-transform: uppercase;
}

h2 {
  text-transform: uppercase;
}

.screen nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
}

.screen nav ul li {
  padding: 0.75rem 0;
}
.screen nav ul li:before {
  content: "-";
}
.screen nav ul li:hover:after {
  content: " ⊗";
  font-size:3.45rem;
  animation: blink 1s steps(5, start) infinite;
}

section {
    display: none;
}

.prescale {
  font-family: monospace;
}

section {
  display: none; /* Hide all sections by default */
}

section.active {
  display: block; /* Show the active section */
}

section p {
  letter-spacing: 0.01rem;
}

/* Widescreen Desktop */
@media (min-width: 1920px) {
  /* styles for widescreen desktop */
  .screen .contents {
  padding: 6rem;
  font-size: 4rem;
  }
}

/* Desktop */
@media (max-width: 1920px) {
  /* styles for desktop */
  .screen .contents {
  padding: 6rem;
  font-size: 4rem;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  /* styles for tablet */
  .screen .contents {
  padding: 6rem;
  font-size: 4rem;
  }
  .screen nav ul li {
    padding: 0.75rem 0;
  }
  
  pre.prescale {
    font-size:1rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  /* styles for mobile */
  .screen .contents {
  padding: 4rem;
  font-size: 4rem;
  }
  
  section p {
    font-size:2.5rem;
  }
  
  pre.prescale {
    font-size:0.525rem;
  }
  
  .modal iframe {
      height: 200px;
  }
}



