@font-face {
  font-family: console;
  src: url('../fonts/glass_tty_vt220.ttf');
}

* {
	box-sizing: inherit;
	text-shadow: inherit;
	font-family: console;
	font-size: 20px;
	transition: all 0.5s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
	text-shadow: 0 0 8px rgba(50, 255, 50, 0.4);
}

textarea {
  -webkit-touch-callout: inherit;
  -webkit-user-select: text;
}

*:focus {
  outline: none;
}

h1 {
  margin: 0;
  padding: 0;
  color: white;
}

body {
	background: rgba(0,25,0,1.0);
	color: rgba(50, 255, 50, 0.4);
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	cursor: crosshair;
	line-height: 170%;
}

#watermark {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url('../img/aquila.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 70%;
  opacity: 0.2;
  pointer-events: none;
}

d {
  opacity: 0.5;
}

nd {
  opacity: 0;
}

a {
	color: rgba(50, 255, 50, 0.55);
	text-decoration: underline;
	cursor: pointer !important;
	text-shadow: 0 0 16px rgba(150, 255, 150, 0.7);
}

a:hover {
	color: rgba(150, 255, 150, 1.0);
}

.highlight, .highlight * {
  color: rgba(150, 255, 150, 1.0);
}

.highlight .cursor {
  background: rgba(150, 255, 150, 1.0);
}

nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 12px;
	border-bottom: 2px solid rgba(50, 255, 50, 0.55);
}

footer {
	position: absolute;
	bottom: 0;
	left: 0;
  right: 0;
	border-top: 2px solid rgba(50, 255, 50, 0.55);
	min-height: 32px;
}

.footer-item {
  display: inline-block;
  padding: 8px;
  margin: 4px;
  background: rgba(0,0,0,0.5);
  border-right: 2px solid rgba(0,255,0,0.25);
}

.footer-item:hover {
  color: white;
  background: rgba(0,0,0,0.0);
}

.footer-item:hover * {
  color: white;
}

button {
  display: inline-block;
  border: 2px solid rgba(50, 255, 50, 0.55);
  box-shadow: 0px 0px 6px 6px rgba(0,0,0,0.35);
	min-width: 80px;
	color: white;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 6px;
  margin-left: 6px;
  height: 48px;
  vertical-align: top;
}

button:hover {
  border-color: rgba(50, 255, 50, 0.55);
}

.bw-pulse {
  animation-direction: alternate;
  animation: bwPulseKey 2s infinite;
}

@keyframes bwPulseKey {
  0% {
    color: #999999;
  }
  50% {
    color: #ffffff;
  }
  100% {
    color: #999999;
  }
}

#menu-screens {
  position: absolute;
  width: 800px;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  border: 4px solid gray;
  background: #222;
  padding: 8px;
  display: none;
  opacity : 0;
  transition: opacity 1s linear;
  z-index: 1000;
  margin-top: 64px;
  margin-bottom: 64px;
  box-shadow: 0px 0px 16px 8px rgba(0,0,0,1.0);
  cursor: default;
  overflow: auto;
}

#menu-maintext {
  padding-top: 8px;
  padding-bottom: 8px;
}

.option-buttons > a {
  display: inline-block;
  margin-right: 8px;
}

.menu-item {
  padding: 8px;
  margin: 4px;
  background: rgba(0,0,0,0.15);
  padding-left: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
}

.menu-item:hover, .menu-item:focus {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,250,0,0.5);
}

.menu-items {
  padding: 32px;
}

.menu-items > a {
  display: block;
  padding: 24px;
  padding-left: 128px;
}

.menu-items > a:hover, .menu-items > a:focus {
  background: rgba(255,255,200,0.3);
}

.sep-bottom {
  border-bottom: 4px solid rgba(50, 255, 50, 0.55);
}

.sep-top {
  border-top: 4px solid rgba(50, 255, 50, 0.55);
}

#alien-counter {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px;
  white-space: nowrap;
  border-radius: 12px;
}

#stats-element {
  position: absolute;
  left: 16px;
  top: 100px;
}

#logo {
  width: 306px;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
}

#announcer {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 40px;
  opacity: 0;
  text-align: center;
}

.de-em {
  opacity: 0.6;
}

#level-stats {
  margin-bottom: 12px;
}

.score-table tr > td {
  border-bottom: 2px solid rgba(50, 255, 50, 0.55);
}

.score-table td {
  opacity: 0.6;
  min-width: 160px;
}

.score-table td.score {
  opacity: 1.0;
  text-align: right;
}

.score-bar {
  padding: 4px;
  width: 108px;
  margin: 4px;
}

.score-bar > div {
  width: 0px;
  background: rgba(50, 255, 50, 0.55);
  height: 8px;
}

#main-element {
  z-index: 1000;
  position: absolute;
  width: 80%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  top: -128px;
}
  
#main-logo {
  width: 100%;
  image-rendering: pixelated;
}

#main-buttons {
  margin-top: 32px;
  text-align: center;
}
  
#bg-element-scroll {
  position: absolute;
  background-position: 50% 50%;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 100;
  opacity: 0.5;
  background: url('../img/marble1dark-pix.png');
  animation: backgroundScrollRev 18s linear infinite;
  -webkit-animation: backgroundScrollRev 18s linear infinite;
}
  
body.scroll {
  animation: backgroundScroll 13s linear infinite;
  -webkit-animation: backgroundScroll 13s linear infinite;
}
 
@keyframes backgroundScroll {
  from {background-position: 0 0;}
  to {background-position: -1016px -2480px;}
}
  
@keyframes backgroundScrollRev {
  from {background-position: 0 0;}
  to {background-position: 1016px -2480px;}
}

@-webkit-keyframes backgroundScroll {
  from {background-position: 0 0;}
  to {background-position: -1016px -2480px;}
}
  
@-webkit-keyframes backgroundScrollRev {
  from {background-position: 0 0;}
  to {background-position: 1016px -2480px;}
}

#content {
  position: absolute;
  left: 0;
  top: 54px;
  bottom: 64px;
  right: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1000;
}

#content::-webkit-scrollbar-track
{
	border-radius: 10px;
	background-color: none;
}

#content::-webkit-scrollbar
{
	width: 12px;
	background-color: rgba(0,50,0,0.75);
}

#content::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	background-color: rgba(0,250,0,0.25);
}

.cursor {
  display: inline-block;
  width: 16px;
  height: 28px;
  -webkit-animation: pulsate 1s ease-out;
  -webkit-animation-iteration-count: infinite; 
  animation: pulsate 1s ease-out;
  animation-iteration-count: infinite; 
  background: rgba(50, 255, 50, 0.55);
  vertical-align: top;
}

.blinking {
  -webkit-animation: pulsate 1s ease-out;
  -webkit-animation-iteration-count: infinite; 
  animation: pulsate 1s ease-out;
  animation-iteration-count: infinite; 
}

@-webkit-keyframes pulsate {
  0% {opacity: 0.0;}
  5% {opacity: 1.0;}
  50% {opacity: 1.0;}
  100% {opacity: 0.0;}
}

.menu-centered {
  width: 640px;
  margin-left: auto;
  margin-right: auto;
}

button {
  background: rgba(0,50,0,0.5);
  cursor: pointer;
}
button:hover {
  background: rgba(0,150,0,0.5);
}

.map-item-text {
  display: inline-block;
  overflow: hidden;
}
