html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

h1 {
  margin-block-start: 0;
  margin-block-end: 0;
  color: black;
  font-family: 'Veteran Typewriter';
  font-size: 700%;
  text-align: center;
  margin-bottom: 10px;
}

#crossfade-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    z-index: 99999;
}

@font-face {
	font-family: 'Special Elite';
	src: url('../fonts/SpecialElite-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Veteran Typewriter';
	src: url('../fonts/VeteranTypewriter.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Patrick Hand SC';
	src: url('../fonts/PatrickHandSC-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.atf-button {
  background: none;
  border: none;
  font-family: Stencil;
  color: black;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.pilot-panel-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #222;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 18px 20px;
    font-family: 'Special Elite';
	font-size: 125%;
    cursor: pointer;
    opacity: 0.85;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pilot-panel-toggle:hover {
    opacity: 1;
    transform: scale(1.05);
}

.pilot-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
}

.pilot-card-content {
    background-image: url('../images/paper_file_texture_light.png');
    background-size: cover;
    background-position: center;
    padding: 30px;
    width: 380px;
    border-radius: 10px;
	border: 2px solid black;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    opacity: 0.95;
    font-family: 'Special Elite';
    color: black;
}

.pilot-card-title {
    font-family: 'Veteran Typewriter';
    font-size: 150%;
    text-align: center;
    margin-bottom: 20px;
}

.pilot-field {
    margin-bottom: 15px;
}

.pilot-label {
    display: block;
    font-size: 90%;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pilot-value {
    display: block;
    font-size: 130%;
    font-family: 'Special Elite';
    border-bottom: 1px dashed #444;
    padding-bottom: 3px;
    margin-top: 3px;
}

.pilot-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pilot-action-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #888;
    font-family: 'Special Elite';
    color: black; /* correct property */
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-text-fill-color: black; /* iOS Safari override */
    text-decoration: none; /* prevents link styling */
}

.pilot-defect-btn {
    width: 100%;
    padding: 10px;
    background: darkgray;
    border-radius: 6px;
    border: 1px solid #888;
    font-family: 'Special Elite';
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
	-webkit-text-fill-color: black; /* iOS Safari override */
    text-decoration: none; /* prevents link styling */
}

.pilot-action-btn:hover,
.pilot-defect-btn:hover {
    opacity: 1;
    transform: scale(1.03);
}

.pilot-logout {
    margin-top: 25px;
    width: 100%;
    padding: 10px;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Special Elite';
    font-size: 110%;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pilot-logout:hover {
    opacity: 1;
    transform: scale(1.03);
}

.no-pilot-card {
    background-image: url('../images/paper_file_texture_light.png');
    background-size: cover;
    background-position: center;
    padding: 30px;
    width: 380px;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    opacity: 0.95;
    font-family: 'Special Elite';
    color: black;
    text-align: center;
}

.no-pilot-card h2 {
    font-family: 'Veteran Typewriter';
    font-size: 150%;
    margin-bottom: 20px;
}

.no-pilot-card p {
    font-size: 110%;
    margin-bottom: 12px;
    line-height: 1.4;
}

#actionModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Combat Report Modal */
#combat-report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 10000;
}

#combat-report-window {
  background-image: url('../images/paper_file_texture_light.png');
  background-size: cover;
  width: 650px;
  padding: 35px 40px;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
  font-family: 'Veteran Typewriter';
  color: black;
  border: 2px solid #333;
  transform: rotate(-0.4deg);
}

#combat-report-window h2 {
  text-align: center;
  font-size: 180%;
  letter-spacing: 2px;
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
}

#combat-report-window .raf-subtitle {
  text-align: center;
  font-family: 'Special Elite';
  font-size: 95%;
  opacity: 0.8;
  margin-bottom: 20px;
}

#combat-report-text {
  width: 100%;
  height: 220px;
  padding: 5px;
  font-family: 'Special Elite';
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
}

#combat-report-text {
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  background-image: linear-gradient(
    rgba(0,0,0,0.15) 1px,
    transparent 1px
  );
  background-size: 100% 24px;
  line-height: 1.6;
}

.combat-report-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.combat-report-actions .combat-report-button {
  border: 2px solid black;
  background: rgba(255,255,255,0.9);
  font-family: 'Special Elite';
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.combat-report-actions .combat-report-button:hover {
	
  transform: scale(1.03);
}

#combat-report-window::after {
  content: "CONFIDENTIAL";
  position: absolute;
  top: 35px;
  right: 30px;
  font-family: 'Special Elite';
  font-size: 22px;
  color: rgba(150,0,0,0.45);
  transform: rotate(-12deg);
  letter-spacing: 3px;
}

#combat-report-viewer {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.combat-report-modal {
    background: transparent;
    padding: 20px;	
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;	
}

.combat-report-entry {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #444;
}

.combat-report-entry hr {
    border: none;
    border-top: 1px solid #000;
    margin: 8px 0;
}

.combat-confirmation {
    position: fixed;
    top: 20%; /* nicely below the top edge */
    left: 50%;
    transform: translateX(-50%);
    background: #fdfcf7;
    border: 2px solid #333;
    padding: 14px 22px;
    font-family: "Courier New", monospace;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    text-align: center;
}

.combat-confirmation.fade-out {
    opacity: 0;
}