body {
  font-family: Arial, sans-serif;
  text-align: center;
  color: rgb(251, 255, 0);
  margin: 0;
  min-height: 100vh;

  background-image: url("achtergrond.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  background-color: rgba(0, 0, 255, 0.81)
}

.hud {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 14px 0;
}

.hud > div {
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  border-radius: 14px;
  min-width: 90px;
  text-align: center;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hud-title {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.hud span {
  font-size: 20px;
  font-weight: bold;
}



#startBtn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #ed0505;
  color: rgb(19, 18, 18);
  margin-top: 20px;
}

#game {
  width: 1200px;
  height: 720px;
  /* border: 1px solid black; */
  margin: 12px auto;
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 6px;
  background-image: url("game.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

#paddle {
  width: 110px;
  height: 16px;
  background: rgb(7, 228, 14);
   border-radius: 6px;
  position: absolute;
  bottom: 10px;
  left: 245px;
}

.faller {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 0px;
  border-radius: 50%;

}

.help {
  font-size: 13px;
}


@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.faller {
  font-size: 28px;
  position: absolute;

  animation: spin 1s linear infinite;
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.hidden {
  display: none;
}

.overlay-box {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  min-width: 280px;
}

.overlay-box h1 {
  font-size: 42px;
  margin: 0 0 10px;
  color: #070606;
}

.overlay-score {
  font-size: 24px;
  font-weight: bold;
  color:#090909
}

.overlay-sub {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.8;
  color: #060505;
}


#overlayBtn {
  margin-top: 16px;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: red;
  color: white;
  font-weight: bold;
}
