/* Ensure no scrollbars appear */
body {
  margin: 0;
  padding: 0;
     /* transform: scale(0.9); /* 90% zoom */
    transform-origin: 0 0; /* Fastgør zoompunktet til toppen/venstre */
  overflow: hidden;
}

#game-area {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: black;
}

#background {
  position: absolute;
  width: 10000px; /* Øget bredde */
  height: 6000px; /* Øget højde */
  background: url('bg.png') no-repeat;
  background-size: cover;
}

#drone {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  z-index: 100;
}

@keyframes squish {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.2, 0.8);
  }
  100% {
    transform: scale(1, 1);
  }
}

.fall-animation {
  animation: squish 2s ease-in-out forwards;
}

.smashed-watermelon {
  position: absolute;
  width: 40px;
  height: auto;
  z-index: 101;
}

#tank {
  position: absolute;
  width: 300px; /* Justér størrelsen som ønsket */
  height: auto;
  z-index: 101;
  top: 100px; /* Startposition */
  left: 100px; /* Startposition */
}

#drone, #tank {
  position: absolute;
  width: 200px;
  height: auto;
}



  #score {
    visibility:hidden;
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: white;

    padding: 10px;
    border-radius: 5px;
    /*z-index: 1000; /* Sørg for, at det ligger øverst */
  }
  
#ammo-indicator {
  position: fixed; /* Sørger for, at den er fast midt på skærmen */
  top: 90%; /* Justér top for at få pilen længere ind på skærmen */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 200;
animation: slideDown 2s infinite ease-in-out; /* Tilføj nedadgående animation */
}

.arrow {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 60px solid yellow;
  margin: 0 auto;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 70% { /* Hold teksten synlig 70% af tiden */
    opacity: 1;
  }
  70%, 100% { /* Skift til usynlig 30% af tiden */
    opacity: 0;
  }
}

/* Opdateret nedadgående animation */
@keyframes slideDown {
  0% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, 50px); /* Flytter 10px ned */
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.ammo-text {
  color: yellow;
  font-size: 80px;
  font-weight: bold;
  margin-top: -150px; /* Juster for at undgå overlap */
}
