/* Make body and html take full viewport and remove default margin */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    background-color: #222; /* Example background for the page */
}

/* Style the canvas container (optional but good practice) */
#tvContainer { /* Add an ID="tvContainer" to a div wrapping your canvas */
    width: 95%; /* Use percentage width */
    max-width: 800px; /* Set a max size for larger screens */
    margin: 20px auto; /* Center the container */
    position: relative; /* Needed if using absolute positioning inside */
}

/* Make the canvas responsive */
#tvCanvas {
    display: block; /* Remove potential extra space below */
    width: 100%;    /* Make canvas element fill its container */
    height: auto;   /* Maintain aspect ratio based on width */
    background-color: #111; /* Optional: see canvas bounds */
}

/* Optional: Basic styling for the remote */
#remote {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
}

.remote-button {
    padding: 8px 12px;
    margin: 3px;
    cursor: pointer;
    background-color: #555;
    color: white;
    border: 1px solid #888;
    border-radius: 4px;
}