/* Reset default margin and padding */
body, h1, h2, p, button {
    margin: 0;
    padding: 0;
}

/* Container styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Button styles */
.button,
.change-channel-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover,
.change-channel-btn:hover,
.channel-up-btn:hover,
.channel-down-btn:hover {
    background-color: #0056b3;
}

/* Subclasses of change-channel-btn */
.channel-up--btn,
.channel-down-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    font-size: 14px;
}

/* TV container grid */
#tv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid layout */
    gap: 20px; /* Spacing between TV containers */
}

/* TV styles */
.tv {
    position: relative; /* Ensure relative positioning for absolute child elements */
    width: 100%; /* Ensure TV containers fill the grid cells */
    padding: 10px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #f0f0f0;
    text-align: center;
    overflow: hidden; /* Prevent overflow */
    display: flex;
    flex-direction: column; /* Align children vertically */
    justify-content: center; /* Center children vertically */
}

.tv h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.tv video {
    max-width: 100%; /* Ensure video does not exceed container width */
    max-height: calc(100% - 40px); /* Ensure video does not exceed container height */
    border-radius: 5px;
    margin-bottom: 10px; /* Add space below the video */
}

/* Add your existing styles here */

/* Configuration Panel Styles */
#config-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    display: none; /* Initially hidden */
}

#config-panel.hidden {
    display: none;
}

#config-panel.visible {
    display: block;
}


/* Style for configuration inputs and buttons */
.config-input {
    margin-bottom: 10px;
}

.config-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.config-input,
.config-button {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
}

.config-button {
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s;
}

.config-button:hover {
    background-color: #0056b3;
}

