* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: url("arcback4.png") no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}

.pageContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  width: 100dvw;
}
.root {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  width: 100dvw;
}

#arcade {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  width: 90vmin;
  max-width: 600px;
  background: transparent;
}

.console {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 90vmin;
  max-width: 600px;
  max-height: 90dvh;
  background: transparent;
}

.yellow {
  background-color: gold;
  margin-bottom: 100px;
}

.gameTitle {
  padding: 30px 15px;
  height: 200px;
  font-size: 50px;
  text-align: center;
  align-content: center;
  border: #000 5px double;
}
#scoreContainer {
  display: flex;
  color: #ffffff;
  background-color: darkblue;
  padding-top: 30px;
  height: 100px;
  text-align: center;
  justify-content: space-around;
  border: #000 5px dashed;
  margin-bottom: 5px;
  min-width: 88%;
  max-width: 90%;
}

.btn {
  position: relative;
  padding: 1.5rem 3rem;
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  background-color: black;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
}

.start {
  border: 2px solid rgba(0, 255, 255, 0.5);
  background: black;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.start span {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.start span::before,
.start span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  opacity: 0;
  filter: blur(1px);
  transition: all 0.3s ease;
}

.start span::before {
  top: -2px;
  color: #ff00ff;
  transform: translateX(0);
  animation: glitch 2s infinite;
}

.start span::after {
  bottom: -2px;
  color: #00ffff;
  transform: translateX(0);
  animation: glitch 2s infinite reverse;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 255, 0.8), transparent);
  top: 0;
  animation: scan 2s linear infinite;
  filter: blur(1px);
}

.flash-invert {
  filter: invert(1);
}

#gameCanvas {
  display: block;
  z-index: 1;
  width: 80vmin;
  aspect-ratio: 1 / 1 !important;
}

@keyframes glitch {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  20% {
    transform: translateX(-5px);
    opacity: 0.5;
  }
  40% {
    transform: translateX(5px);
    opacity: 0.7;
  }
  60% {
    transform: translateX(-3px);
    opacity: 0.5;
  }
  80% {
    transform: translateX(3px);
    opacity: 0.3;
  }
}

@keyframes scan {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4px, 2px);
  }
  40% {
    transform: translate(4px, -2px);
  }
  60% {
    transform: translate(-3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
