body {
    /* https://coolors.co/f06449-ede6e3-7d82b8-36382e-613f75  */
    --background-color: #404598;
    --wall-color: #EDEDED;
    --joystick-color: #ffffff ;
    --joystick-head-color: #9BD24D;
    --ball-color: #FFF6D2;
    --end-color: #404598;
    --text-color: #210124;
    background-image: url("../images/background.jpg");
    background-position: top;
    background-size: cover;
    padding: 20px;
    font-family: Inter, sans-serif;
    letter-spacing: 0.12em;
  
    /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
    background-color: var(--background-color);
  }

  .logoHeader {
    display: flex;
    justify-content: center;
    margin-bottom: -100px;
}

.logoHeader img {
    width: 80%;
}
  
  html,
  body {
    height: 100%;
    margin: 0;
  }
  
  #center {
    display: flex;
    align-items: top;
    justify-content: center;
    height: 100%;
    margin-top: 200px;  
  }
  
  #game {
    display: flex;
    flex-direction: column;
    perspective: 600px;
  }
  
  #maze {
    position: relative;
    grid-row: 1 / -1;
    grid-column: 1;
    width: 350px;
    height: 315px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #end {
    width: 35px;
    height: 15px;
    border: 5px solid var(--end-color);
    background-color: #404598;
    border-radius: 0%;
    position: fixed;
    bottom: 5px;
    right: -10px;
    z-index: 1000;
  }
  
  #joystick {
    position: relative;
    background-color: var(--joystick-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
  
  }
  
  #joystick-head {
    position: relative;
    background-color: var(--joystick-head-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: grab;
  
    animation-name: glow;
    animation-duration: 0.6s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    animation-delay: 4s;
  }

  .joystick-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0px 50px 0px;
  }
  
  @keyframes glow {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.2);
    }
  }
  
  .joystick-arrow:nth-of-type(1) {
    position: absolute;
    bottom: 55px;
  
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  
    border-bottom: 10px solid var(--joystick-color);
  }
  
  .joystick-arrow:nth-of-type(2) {
    position: absolute;
    top: 55px;
  
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  
    border-top: 10px solid var(--joystick-color);
  }
  
  .joystick-arrow:nth-of-type(3) {
    position: absolute;
    left: 55px;
  
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  
    border-left: 10px solid var(--joystick-color);
  }
  
  .joystick-arrow:nth-of-type(4) {
    position: absolute;
    right: 55px;
  
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  
    border-right: 10px solid var(--joystick-color);
  }
  
  #note {
    text-align: center;
    font-size: 0.8em;
    color: var(--text-color);
    transition: opacity 2s;
  }
  
  a:visited {
    color: inherit;
  }
  @keyframes ball-glow {
    0% {
      box-shadow: 0 0 10px #000000, 0 0 20px #000000;
    }
  }
  .ball {
    position: absolute;
    margin-top: -5px;
    margin-left: -5px;
    border-radius: 50%;
    background-color: var(--ball-color);
    width: 20px;
    height: 20px;
    outline-width: 2px;
    outline-color: #331836;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 0 20px rgba(0,0,0, .15);
  }
  
  .wall {
    position: absolute;
    background-color: var(--wall-color);
    transform-origin: top center;
    margin-left: -5px;
  }
  
  .wall::before,
  .wall::after {
    display: block;
    content: "";
    width: 10px;
    height: 10px;
    background-color: inherit;
    border-radius: 50%;
    position: absolute;
  }
  
  .wall::before {
    top: -5px;
  }
  
  .wall::after {
    bottom: -5px;
  }
  
  .black-hole {
    position: absolute;
    margin-top: -9px;
    margin-left: -9px;
    border-radius: 50%;
    background-color: black;
    width: 18px;
    height: 18px;
  }
  /* .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 1, 36, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .popup-content {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px #00000066;
    text-align: center;
    max-width: 300px;
  }
  
  .popup-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--ball-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }
  
  .popup-content button:hover {
    background-color: #d8503e;
  } */
  
  .hidden {
    display: none !important;
  }
  
  .bottomButton {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1000;
    margin-top: 50px;
}

.bottomButton a {
    width: 100%;
    padding: 20px 10px;
    font-size: 20px;
    background-color: #9BD24D;
    color: #fff;
    border-radius: 10px;
    border: 0;
    border-bottom: 6px solid #5B7E2A;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.bottomButton a:hover {
    background-color: #5B7E2A;
}

/* Overlay background */
.popupOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

/* Popup container */
.popup {
  width: 100%;
  max-width: 600px;
  background-color: transparent;
  box-sizing: border-box;
}

/* Content block inside popup */
.popupContentBlock {
  background-color: #fff;
  padding: 35px;
  text-align: center;
  font-size: 1.2em;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.imageWrapper{
  display: flex;
  justify-content: center;
  margin-bottom: -20px;
}

.imageWrapper img {
  width: 40%;
}