body {
    background-color: #2b2b2b; /* Tummanharmaa tausta */
    color: #e0e0e0;            /* Vaaleanharmaa teksti */
    font-family: "Courier New", Courier, monospace; /* Kirjoituskone-fontti */
    padding: 30px;
}

.view {
    background: #3d3d3d;
    border: 4px solid #1a1a1a;
    border-radius: 10px;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.5), 5px 5px 15px rgba(0,0,0,0.8);
    padding: 25px;
    margin-top: 20px;
}

h1, h2 {
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

button {
    background: linear-gradient(#555, #333);
    color: white;
    border: 2px solid #1a1a1a;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 0 #111;
}

button:active {
    box-shadow: 0 1px 0 #111;
    transform: translateY(2px);
}

.gauge-container {
    text-align: center;
    background: #333;
    padding: 15px;
    border: 2px solid #222;
    border-radius: 5px;
    margin: 10px;
}

.tank-label {
    font-weight: bold;
    color: #888;
    margin-top: 5px;
}

.fuel-value {
    font-family: monospace;
    font-size: 1.2em;
    color: #eee;
}

/* Tehoste aktiiviselle tankille */
.active-tank {
    border-color: #f0ad4e; /* Oranssi reunus */
    box-shadow: 0 0 15px rgba(240, 173, 78, 0.5);
}
.active-tank .tank-label {
    color: #f0ad4e;
}

.engine-gauge {
    border: 3px solid #444;
    background: radial-gradient(circle, #333 0%, #222 100%);
}

.temp-value {
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    color: #ffcc00; /* Kellertävä "hehku" */
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.overheat {
    color: #ff4444 !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.airspeed-gauge {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid #222;
}

.gear-selector {
    background: #222;
    padding: 15px;
    border: 3px solid #111;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gear-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
}

.gear-lamp {
    width: 40px;
    height: 40px;
    margin: 5px;
    background: #1a0000; /* Sammunut valo */
    border: 2px solid #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #300;
    font-weight: bold;
    transition: all 0.3s;
}

.gear-active {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 0 15px #ff0000;
    border-color: #ffaaaa;
}

.gear-controls {
    margin-left: 20px;
    padding: 15px;
    background: #2a2a2a;
    border: 2px solid #111;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-label {
    font-size: 0.7em;
    color: #888;
    margin-bottom: 10px;
}

.gear-button-rack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gear-btn {
    width: 50px;
    height: 40px;
    background: linear-gradient(#444, #222);
    border: 2px solid #000;
    color: #aaa;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 0 #111;
    transition: all 0.1s;
}

.gear-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #111;
    background: #333;
}

.btn-active {
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 2px 0 #800;
    background: linear-gradient(#600, #300);
}

.admin-input-group {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-input-group input {
    background: #000;
    color: #0f0;
    border: 1px solid #555;
    padding: 3px;
}

.tank-btn {
    width: 80px;
    height: 50px;
    background: linear-gradient(#444, #222);
    border: 2px solid #000;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.tank-btn:hover {
    background: #333;
}

/* Kun tankki on valittuna käyttöön */
.tank-active {
    color: #fff;
    border-color: #f0ad4e;
    background: linear-gradient(#8a5a1e, #4d3311);
    box-shadow: 0 0 15px rgba(240, 173, 78, 0.6);
}

.tank-btn:active {
    transform: scale(0.95);
}
