
/* Lock page scroll */
body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}
/* Main game styles with Air Defence theme */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #002147; /* Light blue background */
  color: #333;
  text-align: center;
}

h1 {
  color: #ffffff; /* bright white */
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
  color: #00529b; /* Darker blue for headings */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

#gameContainer {
  position: relative;
  position: relative;
  position: relative;
  width: 800px;
  height: 600px;
  margin: 0 auto 10px;
  box-shadow: 0 0 15px rgba(0, 82, 155, 0.3);
  border-radius: 5px;
  overflow: visible;
  background-color: #87CEEB; /* Sky blue background */
}

#gameCanvas {
  display: block;
}

/* Quiz overlay styling */
#questionDiv {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 20px;
  background-color: rgba(0, 82, 155, 0.9);
  border: 2px solid #00A651; /* Green border to match jet */
  border-radius: 10px;
  z-index: 100;
  color: white;
  display: none;
}

/* Fact popup styling */
#factDiv {
  position: absolute;
  width: 250px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #00A651; /* Green border to match jet */
  border-radius: 8px;
  font-size: 14px;
  display: none;
  z-index: 10;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Game info row below canvas */
#infoRow {
  display: flex;
  justify-content: space-between;
  background-color: #00529b; /* Dark blue for info row */
  color: white;
  padding: 10px 15px;
  margin: 0 auto;
  width: 800px;
  border-radius: 0 0 5px 5px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}

#gameTitle {
  font-size: 16px;
}

#gameScore {
  font-size: 16px;
}

/* Game controls */
#controlButtons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.control-btn {
  width: 70px;
  height: 70px;
  font-size: 24px;
  background-color: #00A651; /* Green to match jet */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.control-btn:hover {
  background-color: #008b44;
  transform: scale(1.05);
}

.control-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#shootBtn {
  background-color: #e63946; /* Red for shoot button */
  font-size: 28px;
}

#shootBtn:hover {
  background-color: #d62839;
}

/* Option buttons for quiz */
.option-btn {
  width: 80%;
  padding: 12px;
  margin: 8px auto;
  display: block;
  text-align: left;
  background-color: #00529b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.option-btn:hover {
  background-color: #003a6b;
}

/* Game status overlay for start message */
#gameStatus {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 24px;
  z-index: 50;
}

/* Media queries for responsive design */
@media (max-width: 850px) {
  #gameContainer, #infoRow {
    width: 95%;
  }
  
  h1 {
  color: #ffffff; /* bright white */
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .control-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  #shootBtn {
    font-size: 24px;
  }
}




.jet-placeholder {
  position: absolute;
  width: 140px;
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

/* All positions now fully manually adjustable */









/* Attach jets to the corners of the game box */
.jet-placeholder {
  position: absolute;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}










/* Attach jets to corners inside #gameContainer */
#gameContainer .jet-placeholder {
  position: absolute;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

#gameContainer #jetTopLeft {
  top: -20px;
  left: -100px;
  background-image: url('jet1.gif');
}

#gameContainer #jetTopRight {
  top: -20px;
  right: -100px;
  background-image: url('jet2.gif');
}

#gameContainer #jetBottomLeft {
  bottom: -50px;
  left: -100px;
  background-image: url('jet3.gif');
}

#gameContainer #jetBottomRight {
  bottom: -50px;
  right: -100px;
  background-image: url('jet4.gif');
}
