body { 
  font-family: sans-serif;
  background-color: #111;
  color: #0f0;
  text-align: center;
}

body {
  margin: 0;
  padding: 0;
}

/* Center the cockpit image */
#cockpit {
  display: block;
  margin: 0 auto;
  width: 1700px;
  height: auto;
  border: 2px solid lime;
	margin-top: -20px;
}


/* Center the Push-To-Talk button */
#pttButton {
  font-size: 18px;
  padding: 10px 20px;
  margin: 10px auto;
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 8px #fff;
  cursor: pointer;
  display: block;
}

#pttButton:hover {
  background-color: #9f0;
  color: #fff;
}

#pttButton {
  z-index: 10;
  position: relative;
}
.avionics {
  z-index: 1;
}

/* Container aligned with cockpit image */
.avionics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 1700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-top: -50px;
}

/* Panel base style */
.com-radio,
.transponder {
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  border: 2px solid #fff;
  padding: 5px;
  width: 600px;
  border-radius: 8px;
  box-shadow:
  inset 0 1px 3px rgba(255, 255, 255, 0.05),
    0 0 10px #0f0;
  position: relative;
  text-align: left;
  background-blend-mode: overlay;
}

/* Titles */
.com-radio h2,
.transponder h2 {
  margin: 0 0 5px 0;
  font-size: 16px;
}


/* Frequency layout */
.freq-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 4px;
}

.freq {
  background: #8ff;
  border: 2px inset #080;
  padding: 4px 8px;
  font-size: 24px;
	font-weight: bold;
	color: #00f;
  width: 120px;
  text-align: center;
  border-radius: 6px;
	box-shadow: inset 1px 1px 2px #fff, 0 0 2px #0f0;
}

#flipFreq {
  font-size: 28px;
  margin: 0 10px;
  padding: 6px 10px;
  height: 60px;
  width: 60px;
  border-radius: 6px;
  background-color: #200;
  color: #fff;
  border: 1px solid #080;
	box-shadow: inset 1px 1px 2px #fff, 0 0 2px #fff;
}

/* Frequency adjustment buttons */
.adjust-block {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: -45px;
}

.adjust-block div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.adjust-block button {
  width: 35px;
  height: 25px;
  font-size: 18px;
  padding: 0;
  margin: 1px 0;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px #fff, 0 0 2px #0f0;
  background-color: #200;
  color: #fff;
  border: 1px solid #080;
}

/* Move MHz & KHz labels down by 5px */
.adjust-block div label {
  display: block;
  margin-top: 5px;
}

/* Transponder display */
.transponder .display {
  font-size: 24px;
	font-weight: bold;
  background: #8ff;
  color: #00f;
  padding: 6px 10px;
  width: 160px;
  text-align: center;
  margin-bottom: 6px;
  margin-left: 300px;
  border-radius: 4px;
	box-shadow: inset 1px 1px 2px #fff, 0 0 2px #0f0;
  position: relative;
  top: -10px; /* moved up by 10px */
}

/* Digit buttons 0-9 */
.transponder .digit-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-left: 220px; /* aligns horizontally with display */
}

.transponder .digit-buttons button {
  width: 40px;
  font-size: 16px;
  padding: 6px 0;
  border-radius: 4px;
  background-color: #200;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: inset 1px 1px 2px #0f0, 0 0 2px #0f0;
  cursor: pointer;
}

/* Transponder buttons (OFF, STBY, ALT, IDENT) */
.transponder .buttons {
  margin-top: -80px;
  display: grid;
  grid-template-columns: repeat(2, 70px);
  grid-template-rows: repeat(2, auto);
  gap: 8px 12px;
  justify-content: start;
}

.transponder .buttons button {
  width: 70px;
  font-size: 14px;
  padding: 6px 0;
  border-radius: 4px;
  background-color: #200;
  color: #fff;
	border: 1px solid #fff;
  box-shadow: inset 1px 1px 2px #0f0, 0 0 2px #0f0;
  cursor: pointer;
  text-align: center;
}

/* Active container offset */
.active-container {
  margin-left: 200px;
}
#altLabel {
  position: absolute;
  font-size: 12px;
  bottom: 4px;
  left: 8px;
  color: #00f;
  visibility: visible;
}
.map-container {
  position: absolute;
  width: 620px;
  height: 250px;
  top: 0px; /* Adjust based on your layout */
  left: calc(1700px - 620px); /* Align right edge with cockpit image */
  border: 2px solid #00ff00; /* Optional: green outline to debug layout */
	border-radius: 8px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-box {
 	width: 1700px;
  height:50px;
  margin: -360px auto 0 auto;
  border: 2px solid #fff;
  color: #ff0;
  background-color: #00f;
	font-family: "Comic", cursive, sans-serif;
	font-weight: bold;
  font-size: 28px;
	line-height: 1.5; /* Or try 0.9 or a pixel value like 16px */
  text-align: center;
	box-shadow: inset 1px 1px 2px #0f0, 0 0 2px #0f0;
  border-radius: 8px;
  overflow-y: no;
}
.nav-ptt-container {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 20px;
	z-index: 10; /* ensure it sits above the image */
}

#pttButton {
  position: relative;
	top: 0px;
  z-index: 2;
}

.nav-button {
  position: absolute;
  top: 70%;
  transform: translateY(-70%);
  font-size: 24px;
  width: 40px;
  height: 40px;
  background-color: black;
  color: lime;
  border: 2px solid lime;
  border-radius: 50%;
  cursor: pointer;
	z-index: 10; /* ensure it sits above the image */
}

#prevButton {
  left: calc(50% - 150px - 20px); /* 20px is half of button width */
}

#nextButton {
  left: calc(50% + 150px - 20px);
}

#altimeterWrapper {
  position: absolute;
  top: 840px;
  left: 50%;
	transform: translateX(-50%);
  display: flex;	
	flex-direction: column;
  align-items: center;	
  z-index: 10;	
	gap: 20px;  /* spacing between Altimeter and checkbox */
}
	
#altimeterContainer {
  width: 160px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#textBox {
  display: none;
}

#cockpitFadeOverlay {
  position: absolute;
	margin-top: -20px;
  top: 0;
  left: 0;
  width: 1700px;
  height: 700px;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.8s ease;
}

#checkResponses input[type="checkbox"] {
  transform: scale(1.3);
	cursor: popinter;
	accent-color: #0f0  /* neon green */
}

#rawSpeechBox {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #0f0; /* neon green */
  font-family: monospace;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #0f0;
  max-width: 130%;
  white-space: pre-wrap;
}

