* {
  box-sizing: border-box;
}

body {
  background-color: black;
}

#wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game {
  position: relative;
  display: inline-grid;
  background: black;
}

.game-status {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 3rem;
}

#score {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3rem;
}

#start-button {
  position: absolute;
  top: calc(50% - 100px);
  left: 50%;
  transform: translate(-50%, -50%); /* Center the div both horizontally and vertically */
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 0, 0.2);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

#start-button:hover {
  background-color: rgba(255, 255, 0, 1);
  border: 2px solid rgba(0, 0, 0, 1);
  cursor: pointer;
  
}

.hide {
  display: none;
}

.square {
  display: block;
}

.blank {
  background: black;
}

.wall {
  border: 1px solid blue;
}

.dot {
  background: goldenrod;
  border: 8px solid black;
  border-radius: 50%;
}

.pill {
  background: gold;
  border: 4px solid black;
  border-radius: 50%;
}

.ghost {
  position: relative;
  border-radius: 10px 10px 2px 2px;
  border: none;
}

.ghost::before {
  content: '';
  display: block;
  position: absolute;
  width: 3px;
  height: 3px;
  background: black;
  border-radius: 50%;
  left: 3px;
  top: 5px;
  border: 2px solid white;
}

.ghost::after {
  content: '';
  display: block;
  position: absolute;
  width: 3px;
  height: 3px;
  background: black;
  border-radius: 50%;
  right: 3px;
  top: 5px;
  border: 2px solid white;
}

.scared {
  background: blue !important;
}

.blinky {
  background: red;
}

.pinky {
  background: pink;
}

.inky {
  background: cyan;
}

.clyde {
  background: orange;
}

.pacman {
  background: yellow;
  border: none;
  border-radius: 50%;
  clip-path: polygon(
    0 0,
    20px 0,
    20px -5px,
    8px 10px,
    20px 25px,
    20px 20px,
    0 20px
  );
  animation: chew 0.2s linear forwards infinite;
}

@keyframes chew {
  50% {
    clip-path: polygon(
      0 0,
      20px 0,
      20px 10px,
      8px 10px,
      20px 10px,
      20px 20px,
      0 20px
    );
  }
}

#move-button {
  width: 200px;
  height: 200px;
  background-color: red;
  border: none;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-top: 10px;
}

#direction-left {
  height: 100%;
  width: 50%;
  position: absolute;
  top: 0;
  left: 0;
}
#direction-right {
  height: 100%;
  width: 50%;
  position: absolute;
  top: 0;
  left: 50%;
}
#direction-up {
  height: 50%;
  width: 50%;
  position: absolute;
  top: 0;
  left: 25%;
}
#direction-down {
  height: 50%;
  width: 50%;
  position: absolute;
  top: 50%;
  left: 25%;
}
/* Base styling for all arrows */
.arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Up Arrow */
.arrow.up {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 15px 10px;
  border-color: transparent transparent white transparent;
}

/* Down Arrow */
.arrow.down {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  border-width: 0 10px 15px 10px;
  border-color: transparent transparent white transparent;
}

/* Left Arrow */
.arrow.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  border-width: 0 10px 15px 10px;
  border-color: transparent transparent white transparent;
}

/* Right Arrow */
.arrow.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  border-width: 0 10px 15px 10px;
  border-color: transparent transparent white transparent;
}
