/* Main stylesheet for Tactical Vector: Build 04 - The Stratospheric Dissolution */

body {
    background-color: #000000;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: none;
}

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

#header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #00FF00;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.8);
}

h1 {
    font-size: 2.5em;
    text-shadow: 0 0 10px #00FF00;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.8;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
}

#lock-status {
    color: #00FF00;
}

#fleet-status {
    color: #FFBF00;
}

#time {
    color: #00FF00;
}

#main-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

#radar-screen {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 0 auto 30px;
    border: 1px solid #00FF00;
    background-color: #000000;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

#radar-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

#radar-tracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.radar-track {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #00FF00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00FF00;
    animation: track-pulse 1s infinite;
}

.radar-track.jamming {
    background-color: #FFBF00;
    box-shadow: 0 0 5px #FFBF00;
}

@keyframes track-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

#radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #00FF00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00FF00;
}

#sensor-controls {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00FF00;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    margin-bottom: 30px;
}

.control-group {
    margin: 15px 0;
}

label {
    display: inline-block;
    width: 150px;
    text-align: right;
    margin-right: 10px;
    color: #00FF00;
}

input[type="range"] {
    width: 200px;
    background-color: #000000;
    border: 1px solid #00FF00;
}

button {
    background-color: #000000;
    color: #00FF00;
    border: 2px solid #00FF00;
    padding: 10px 20px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin: 0 10px;
}

button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

#doctrinal-violation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFBF00;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.5);
}

#violation-text {
    font-size: 2.5em;
    color: #FFBF00;
    text-shadow: 0 0 10px #FFBF00;
    margin-bottom: 20px;
    animation: blink 0.5s infinite;
}

#violation-message {
    font-size: 1.5em;
    color: #00FF00;
    text-shadow: 0 0 5px #00FF00;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#crash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

#shatter-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFBF00;
    opacity: 0;
    animation: shatter 11.9s forwards;
}

@keyframes shatter {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(2); }
}

#silence-indicator {
    font-size: 3em;
    color: #00FF00;
    text-shadow: 0 0 20px #00FF00;
    animation: pulse 1s infinite;
    z-index: 1001;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.hidden {
    display: none !important;
}

/* Scanline effect */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(0, 255, 0, 0.05) 1px,
        rgba(0, 255, 0, 0.05) 2px
    );
    pointer-events: none;
    z-index: 999;
}

/* Halftone grain effect */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #00FF00 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 998;
}
