.ghost {
  margin: 0;
  position: absolute;
  z-index: 2;
}
* {
  font-family: "Press Start 2P", sans-serif;
}

body {
  margin: 0;
  overflow: hidden;
}

.overflow-mask {
  background-color: #000;
  color: #fff;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
}

.backdrop {
  position: absolute;
  visibility: hidden;
}

.fps-display {
  position: absolute;
  right: 10px;
  top: 10px;
  visibility: hidden;
}

.preload-div {
  align-items: baseline;
  bottom: 0;
  display: flex;
  flex-wrap: wrap-reverse;
  position: absolute;
  visibility: hidden;
}

.header-buttons a {
  font-family: none;
  display: inline-block;
}
.header-buttons button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  outline: none;
  padding: 0;
}
.header-buttons button svg {
  width: 40px;
  height: 40px;
}
.header-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.paused-text {
  align-items: center;
  display: flex;
  font-size: 50px;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  user-select: none;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

.game-ui .one-up {
  animation: blink 0.6s infinite;
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.game-ui .row {
  display: flex;
}
.game-ui .top ._25 {
  width: 25%;
}
.game-ui .top ._50 {
  width: 50%;
}
.game-ui .top .column :first-child {
  text-align: center;
}
.game-ui .top .column :not(:first-child) {
  margin-right: calc(50% - 3em);
  text-align: right;
}
.game-ui .bottom {
  justify-content: space-between;
}
.game-ui .bottom .extra-lives {
  align-items: flex-start;
  display: flex;
}
.game-ui .bottom .fruit-display {
  display: flex;
  flex-direction: row-reverse;
}

.loading-cover {
  background: #7A00E6;
  height: 100vh;
  position: absolute;
  top: 0;
  width: 50vw;
  z-index: 4;
}

.left {
  left: 0;
  transition: left 0.5s 0.5s;
}

.right {
  right: 0;
  transition: right 0.5s 0.5s;
}

.main-menu-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.25s;
  visibility: hidden;
  width: 100%;
  z-index: 5;
}

.brent-ward-logo {
  position: absolute;
  top: 2rem;
  left: 3rem;
}
.brent-ward-logo img {
  height: 2rem;
}

.game-start {
  background-color: #FAD347;
  border: 4px solid #7A00E6;
  border-radius: 15px;
  box-shadow: 16px 8px #A0EADF;
  color: #231f20;
  cursor: pointer;
  font-size: 48px;
  outline: none;
  padding: 4px 72px 0;
}
.game-start:active {
  box-shadow: none;
  transform: translateX(5px) translateY(5px);
}
.game-start:disabled {
  cursor: default;
}

@media only screen and (max-width: 600px) {
  .game-start {
    scale: 0.5;
  }
}
.loading-container {
  background-color: #000;
  border: 5px solid #FAD347;
  border-radius: 10px;
  height: 58px;
  position: absolute;
  top: 50%;
  transition: opacity 0.5s 1s;
  width: 510px;
  z-index: 5;
}

@media only screen and (max-width: 600px) {
  .loading-container {
    transform: scale(0.5);
  }
}
.loading-pacman {
  animation: loading-animation 0.3s steps(4) infinite;
  background-color: #000;
  background-image: url("../app/style/graphics/spriteSheets/characters/pacman/pacman_right.svg");
  background-size: 192px;
  border-radius: 10px;
  height: 48px;
  position: absolute;
  transition: left 1s;
  width: 48px;
  z-index: 6;
}

@keyframes loading-animation {
  100% {
    background-position: -192px;
  }
}
.loading-dot-mask {
  background-color: #000;
  border-radius: 10px;
  height: 48px;
  left: 0;
  position: absolute;
  top: 0;
  transition: width 1s;
  z-index: -1;
}

.loading-dot {
  background-image: url("../app/style/graphics/spriteSheets/pickups/pacdot.svg");
  height: 6px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  z-index: -2;
}

._5 {
  left: 5%;
}

._10 {
  left: 10%;
}

._15 {
  left: 15%;
}

._20 {
  left: 20%;
}

._25 {
  left: 25%;
}

._30 {
  left: 30%;
}

._35 {
  left: 35%;
}

._40 {
  left: 40%;
}

._45 {
  left: 45%;
}

._50 {
  left: 50%;
}

._55 {
  left: 55%;
}

._60 {
  left: 60%;
}

._65 {
  left: 65%;
}

._70 {
  left: 70%;
}

._75 {
  left: 75%;
}

._80 {
  left: 80%;
}

._85 {
  left: 85%;
}

._90 {
  left: 90%;
}

._95 {
  left: 95%;
}

.error-message {
  color: #231f20;
  opacity: 0;
  position: absolute;
  top: 30vh;
  transition: opacity 0.5s;
  visibility: hidden;
  width: 50vw;
  z-index: 4;
}
.error-message .error-pacman {
  animation: error-animation 1.5s steps(12) infinite;
  background-image: url("../app/style/graphics/spriteSheets/characters/pacman/pacman_error.svg");
  background-size: 576px;
  height: 48px;
  margin-left: 10px;
  width: 48px;
  z-index: 6;
}
@keyframes error-animation {
  100% {
    background-position: -576px;
  }
}
.error-message .header {
  display: flex;
  font-size: 50px;
  margin-bottom: 30px;
}
.error-message .body {
  font-size: 20px;
  line-height: 1.25;
}
.maze-cover {
  background: #000;
  height: 100%;
  position: absolute;
  visibility: hidden;
  width: 100%;
  z-index: 3;
}

.maze {
  margin: 0 auto;
  position: relative;
}

.maze-img {
  position: absolute;
  user-select: none;
  width: 100%;
}

.maze-row {
  display: flex;
}

.dot-container {
  height: 100%;
  position: absolute;
  width: 100%;
}
/**
 * Modal Styles and Animations
 *
 * Provides fade in/out animations and touch interaction improvements
 * Most styles are applied via Tailwind utilities in modalManager.js
 * SCSS only for complex animations and interactions
 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.modal-overlay {
  animation: modalFadeIn 200ms ease-out;
  overscroll-behavior: contain;
}

.modal-overlay.closing {
  animation: modalFadeOut 200ms ease-out;
}

.modal-content {
  animation: modalFadeIn 300ms ease-out 100ms backwards;
}

.choice-button,
.modal-button {
  transition-property: background-color, transform, border-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.choice-button:active,
.modal-button:active {
  transform: scale(0.98);
}
.choice-button:disabled,
.modal-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.choice-button,
.modal-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.modal-active {
  overflow: hidden;
}
.pacman {
  margin: 0;
  position: absolute;
  z-index: 1;
}
.power-pellet {
  animation: blink 0.3s infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}