@font-face {
    font-family: 'PrintChar21';
    src: url('/fuel_sim_01/fonts/PrintChar21.ttf') format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'PrintChar21', monospace;
    overflow: hidden;
}

#app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#car-selector {
    margin-bottom: 10px;
    color: #00ff00;
    font-size: 14px;
}

#car-selector label {
    margin-right: 10px;
}

#carSelect {
    font-family: 'PrintChar21', monospace;
    font-size: 14px;
    background-color: #001100;
    color: #00ff00;
    border: 2px solid #006600;
    padding: 5px 10px;
    cursor: pointer;
}

#carSelect:hover {
    border-color: #00ff00;
}

#carSelect option {
    background-color: #001100;
    color: #00ff00;
}

.ui-button {
    font-family: 'PrintChar21', monospace;
    font-size: 14px;
    background-color: #001100;
    color: #00ff00;
    border: 2px solid #006600;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
}

.ui-button:hover {
    border-color: #00ff00;
}

.sound-toggle {
    margin-left: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sound-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #001100;
    border: 2px solid #006600;
    cursor: pointer;
    position: relative;
}

.sound-toggle input[type="checkbox"]:checked {
    background-color: #003300;
    border-color: #00ff00;
}

.sound-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #00ff00;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sound-toggle span {
    color: #006600;
}

.sound-toggle input[type="checkbox"]:checked + span {
    color: #00ff00;
}

#canvas {
    border: 2px solid rgb(0, 100, 0);
}

/* ---- Modal ---- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #444;
    padding: 20px;
    width: 600px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    color: #ccc; /* Added for general modal content text */
}

.modal-content h2 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #00ff00; /* Adjusted to match car app theme */
    letter-spacing: 1px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.modal-actions button {
    flex: 1;
}

/* ---- Hidden utility ---- */
.hidden {
    display: none !important;
}
