body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #00FF00; /* Bright green for high contrast */
    margin: 0;
    padding: 0;
}
#version-display {
    position: fixed;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 10px;
    border-radius: 3px;
    z-index: 1000; /* Ensures it's on top of other elements */
}

/* Modal Overlay */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content {
    background-color: #111;
    border: 1px solid #00FF00;
    padding: 20px;
    width: 400px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Game Container */
#game-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

#ship-status, #sector-info, #event-log, #galaxy-map {
    background-color: #111;
    border: 1px solid #00FF00; /* Bright green */
    padding: 15px;
    margin: 10px;
    flex: 1 1 calc(45% - 40px);
}

h2 {
    border-bottom: 1px solid #00FF00; /* Bright green */
    padding-bottom: 5px;
}

button {
    background-color: #00FF00; /* Bright green background */
    color: #000; /* Black text for contrast */
    border: none;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
}

    button:hover {
        background-color: #33FF33; /* Slightly lighter green on hover */
    }

#event-log {
    flex: 1 1 100%;
}

#log-messages {
    max-height: 150px;
    overflow-y: auto;
}

/* Responsive Canvas 
#selection-map {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}*/

#tooltip, #popup {
    font-size: 1.2em; /* Increase font size for better readability on small screens */
}
    
#shipsTableBody {
    overflow-y: auto;
    max-height: 200px; /* Adjust as needed */
}

#galaxy-map-selection,
#navigation-progress {
    background-color: #111;
    border: 1px solid #00FF00;
    padding: 15px;
    margin: 10px;
}

#progress-bar-container {
    background-color: #333;
    border: 1px solid #00FF00;
    border-radius: 5px;
    width: 100%;
    height: 20px;
    margin-top: 20px;
}

#progress-bar {
    background-color: #00FF00;
    height: 100%;
    width: 0%;
    border-radius: 5px;
}

p, span, li, a {
    color: #00FF00; /* Bright green */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
}

    .progress-bar div {
        height: 20px;
        background-color: #4caf50;
        width: 0;
    }

/* Style for the disabled confirm button */
#btn-confirm:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Style for the enabled confirm button */
#btn-confirm {
    background-color: #4caf50;
    color: white;
    cursor: pointer;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }