@font-face {
    font-family: 'vcr'; 
    src: url('/fonts/vcr_osd.ttf'); 
}

body {
    margin: 0;
    background: black;
}
.terminal img[src*="blob:"], .terminal video {
    max-width: 100%;
}
#terminal {
    height: 100vh;
}
/* glow */
.terminal {
    text-shadow: 0 0.2rem 1rem #0c7b46;
}
:root {
    --background: #031e11;
}
@media (min-width: 800px) {
    :root {
        --size: 1.2;
    }
}
@media (min-width: 1200px) {
    :root {
        --size: 1.5;
    }
}

.self {
    transform: scale(-1, 1);
}
.flicker {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.2);
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    animation: flicker 0.12s infinite;
}
@keyframes flicker {
  0% {
    opacity: 0.552;
  }
  5% {
    opacity: 0.48287;
  }
  10% {
    opacity: 0.59134;
  }
  15.0% {
    opacity: 0.79543;
  }
  20% {
    opacity: 0.75134;
  }
  25% {
    opacity: 0.1956;
  }
  30.0% {
    opacity: 0.90687;
  }
  35% {
    opacity: 0.122;
  }
  40% {
    opacity: 0.62254;
  }
  45% {
    opacity: 0.56977;
  }
  50% {
    opacity: 0.9925;
  }
  55.0% {
    opacity: 0.55487;
  }
  60.0% {
    opacity: 0.16607;
  }
  65% {
    opacity: 0.12353;
  }
  70% {
    opacity: 0.2214;
  }
  75% {
    opacity: 0.67908;
  }
  80% {
    opacity: 0.97163;
  }
  85.0% {
    opacity: 0.1275;
  }
  90% {
    opacity: 0.37186;
  }
  95% {
    opacity: 0.24475;
  }
  100% {
    opacity: 0.37221;
  }
}
.scanlines {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,.2) 70%,
        rgba(0,0,0,.6)
    );
    background-size: 100% .3rem;
    position: fixed;
    pointer-events: none;
}
.scanlines:before {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 5px;
  background: #fff;
  background: linear-gradient(to bottom,
      rgba(255,0,0,0) 0%,
      rgba(255,250,250,1) 50%,
      rgba(255,255,255,0.98) 51%,
      rgba(255,0,0,0) 100%
  ); /* W3C */
  opacity: .1;
}
.scanlines:after {
  box-shadow: 0 2px 6px rgba(25,25,25,0.2),
      inset 0 1px rgba(50,50,50,0.1),
      inset 0 3px rgba(50,50,50,0.05),
      inset 0 3px 8px rgba(64,64,64,0.05),
      inset 0 -5px 10px rgba(25,25,25,0.1);
}
#terminal:focus-within ~ .scanlines:before {
    content: '';
    display: block;
    animation: vline calc(var(--time, 2) * 1s) linear infinite;
}
/*
 * MS Edge don't support focus-within and css vars
 * inside pseudo selector
 */
@supports (-ms-ime-align:auto) {
    .scanlines:before {
        content: '';
        animation: vline 3s linear infinite;
    }
}
@keyframes vline {
  to { transform: translate(0, 100vh)}
}
/* turn off animation */
.tv {
    height: 100vh;
    position: relative;
}
.tv.collapse {
    animation: size 2s ease-out;
    animation-fill-mode: forwards;
}
.tv.collapse:before {
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: white;
    z-index: 1;
    opacity: 0;
    animation: opacity 2s ease-out;
    animation-fill-mode: forwards;
}

@keyframes opacity {
    to { opacity: 1; }
}
@keyframes size {
    50% {
        transform: scaleX(calc(1 / var(--width)));
        opacity: 1;
    }
    98% {
        transform: scaleX(calc(1 / var(--width))) scaleY(calc(1 / var(--height)));
        opacity: 1;
    }
    100% {
        transform: scaleX(calc(1 / var(--width))) scaleY(calc(1 / var(--height)));
        opacity: 0;
    }  
}
#terminal {
    padding-bottom: 36px;
}
.collection {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
}
.noise {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2000;
    opacity: 0.05;
    pointer-events: none;
    background: 
        repeating-radial-gradient(#000 0 0.0001%,#fff 0 0.0002%) 50% 0/2500px 2500px,
        repeating-conic-gradient(#000 0 0.0001%,#fff 0 0.0002%) 50% 50%/2500px 2500px;
    background-blend-mode: difference;
    animation: shift .2s infinite alternate;
}
@keyframes shift {
    100% {
        background-position: 50% 0, 50% 60%;
    }
}
@media (prefers-reduced-motion) {
    .noise, .flicker, .scanlines:before {
        animation: none !important;
    }
}

#fullover {
	position: fixed;
	top: 0; left: 0; z-index: 999;
	width: 100vw; height: 100vh;
	background: url("./images/death.jpg") no-repeat center center fixed;
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0; visibility: hidden;
	transition: opacity 6s;
	pointer-events: none;
}

#fullover.show {
	opacity: 0.2; visibility: visible;
}

.ach-area {
  position: absolute;
  bottom: 0;
  right: 0;
  overflow-y: hidden;
  z-index: 9999;
}

.ani_div {
  font-family: 'vcr'; 
  width: 256px;
  height: 100px;
  background-color: #30302e;
  color: #ffffff;
  line-height: 30px;
  animation: 6s ease 0s 1 slideInFromBottom;
}

.noani_div {
  display: inline-block;
  vertical-align: top;
  font-family: 'vcr'; 
  width: 256px;
  height: 100px;
  margin: 20px;
  background-color: #30302e;
  color: #ffffff;
  line-height: 30px;
  border: 1px solid #888;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

.grad {
  background: #30302e; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(#30302e, #1a1a17); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#30302e, #1a1a17); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#30302e, #1a1a17); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#30302e, #1a1a17); /* Standard syntax */
}

@keyframes slideInFromBottom {
  0% {transform: translateY(100%);}
  10% {transform: translateY(0%);}
  90% {transform: translateY(0%);}
  100% {transform: translateY(100%);}
}

.ani_icon {
  width: 68px;
  height: 68px;
  background-color: green;
  background-size: cover;
  float: left;
  margin: 16px;
  line-height: 70px;
  text-align: center;
}

.glyphicon-size {
  font-size: 36px;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9998; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow-x: hidden;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  font-family: 'vcr'; 
  color:#ffffff;
  position: relative;
  background: #30302e; /* For browsers that do not support gradients */
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 3px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s
}

.inventory-content {
	position: relative;
	background: #30302e; /* For browsers that do not support gradients */
	margin: 5% auto; /* 15% from the top and centered */
	padding: 10px;
	border: 3px solid #888;
	width: 50%;
	animation-name: animatebottom;
	animation-duration: 0.6s
}

.invSlot {
	background-size: cover;
	display: inline-block;
	vertical-align: top;
	font-family: 'vcr'; 
	width: 128px;
	height: 128px;
	margin: 10px;
	background-color: #30302e;
	color: #ffffff;
	line-height: 30px;
	border: 3px solid #888;
}

.invSlot:hover {
	border: 3px solid gold;
}
	
.invDescrip {
	display: block;
	width: 100%;
	font-family: 'vcr'; 
	color:#ffffff;
	text-align: center;
}
	
.invButton {
	display: inline-block;	
}
	
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

@keyframes animatebottom {
  from {bottom: -1000px;}
  to {bottom: 0;}
}

.close {
  color: #aaa;
  float: right;
  font-size: 25px;
  font-weight: bold;
  margin-top: -10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.highlight-red {
	background-color: #660000;
	padding:0.1em 0.2em;
}

.highlight-red:hover {
	pointer-events: none;
}

@font-face {
	font-family: codeP437;
	src: url('/fonts/ibm_vga8.woff');
}

.loadOverlay {
	display: block; 
	position: fixed;
	z-index: 9997; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%; 
	overflow: hidden;
	background-color: transparent; 
}

.loadContainer {	
	color: #ffffff;
	position: relative;
	background: #30302e; 
	margin: 20% auto; 
	padding: 20px;
	border: 5px solid #888;
	width: 30%;
	height: 20%;
	font-family: codeP437;
	text-align: center;
}

.mapOverlay {
	display: none; 
	position: fixed;
	z-index: 9995; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%; 
	overflow: hidden;
	background-color: transparent; 
}

.mapContainer {	
	color: #ffffff;
	position: relative;
	margin: 10px auto; 
	padding: 20px;
	width: 70%;
	height: 70%;
}

.mapHover {
	border: 5px solid #888;
}

.mapHover rect:hover {
	fill: #800080;
	opacity: 0.4;
}