/* General Setup */
body {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/gunship.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Flexbox Container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps H1 on the right */
    padding: 5%;
    box-sizing: border-box;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem); /* Responsive font size */
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}
}

.links-area {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds uniform space between link, button, and album */
    align-items: flex-start;
}
.info-text {
    text-align: left;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.7); /* Subtle backdrop for readability */
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Patches */
.corner-img {
    position: fixed;
    bottom: 20px;
    width: clamp(80px, 15vw, 150px);
    height: auto;
    z-index: 1000;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.bottom-left { left: 20px; }
.bottom-right { right: 20px; }

/* History Button */
.history-btn {
    background-color: #1a3a1a;
    color: white;
    padding: 12px 24px;
    border: 2px solid #fff;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}
.history-btn:hover { background-color: #3e5c3e; transform: scale(1.05); }

/* The Pop-up (Modal) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #f4f1ea; /* Aged paper color */
    padding: 40px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Typewriter Aesthetic */
.typewriter-text {
    font-family: "Courier New", Courier, monospace;
    color: #222;
    line-height: 1.6;
}

.close-btn {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .main-container { align-items: center; text-align: center; }
    h1 { text-align: center; }
    .info-text { text-align: center; }
    .corner-img { bottom: 10px; }
}
/* Custom Audio Comm Center - Replaces the old audio styles */
.audio-player-container {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #1a3a1a; /* Military Green */
    border: 2px solid #3e5c3e;
    padding: 12px;
    z-index: 3000;
    width: 160px;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-label {
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comm-btn {
    background: #2d5a2d;
    color: #fff;
    border: 1px solid #fff;
    font-family: "Courier New", monospace;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 12px;
    font-size: 0.9rem;
}

.comm-btn:hover {
    background: #3e5c3e;
}

/* The Status Light */
.status-light {
    width: 12px;
    height: 12px;
    background: #400; /* Dark/Off Red */
    border-radius: 50%;
    border: 1px solid #000;
    transition: background 0.3s, box-shadow 0.3s;
}

.status-light.on {
    background: #0f0; /* Glowing Green */
    box-shadow: 0 0 8px #0f0;
