body {
    text-align: center; /* Center all content inside the body */    
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h2 {
    color: #81c784; /* Light green */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #2a2a2a;
    font-size: 1rem;
    text-align: left;
    max-height: 200px; /* Set the initial maximum height of the table */
    overflow-y: auto; /* Add a vertical scrollbar */
}

th, td {
    border: 1px solid #3e3e3e;
    padding: 10px;
    text-align: left;
    color: #d4d4d4;
    white-space: nowrap; /* Prevent line breaks in table cells */
    overflow: hidden; /* Hide any content that exceeds the cell width */
    text-overflow: ellipsis; /* Show ellipsis for hidden content */
    max-width: 200px; /* Set a maximum width for table cells */
}

th {
    background-color: #3e5943; /* Dark green */ 
    position: sticky; /* Make the header row sticky */
    top: 0; /* Stick the header row to the top */
    z-index: 1; /* Ensure the header row is on top */    
}

tr:nth-child(even) {
    background-color: #2e2e2e;
}

tr:hover {
    background-color: #3e5943;
    color: white;
}

.chart-container {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.video-container {
    display: flex;
    justify-content: space-around; /* Distributes space evenly between the videos */
    margin-bottom: 20px; /* Adds some space below the video feeds */
}

.liveStream {
    width: 90%; /* Adjusts the width of each video feed */
    height: auto;
    border: 2px solid black; /* Adds a border around each video */
}

form {
    display: flex;
    justify-content: center; /* Center horizontally */
    justify-content: center; /* Center horizontally */
    margin: 20px 0;
}

button {
    background-color: #3e5943;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px; 
}

button:hover {
    background-color: #2a3d2a;
}

#lastRun {
    color: #d4d4d4;
    font-size: 18px;
}

input[type="text"], input[type="number"] {
    background-color: #2a2a2a;
    color: #d4d4d4;
    border: 1px solid #3e3e3e;
    padding: 10px;
    border-radius: 5px;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #81c784;
    outline: none;
}

/* Ensure it fits nicely on small screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-height: 150px;
    }

    th, td {
        font-size: 0.9rem; /* Adjust text size for smaller screens */
    }

    #liveStream {
        max-width: 80%; /* Reduce width for smaller devices */
        height: auto;
    }
}
