body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 600px) {
    .tv-controls {
        flex-wrap: wrap;
    }

    .control-button {
        flex: 1 1 10%;
        margin: 5px;
    }
}

.tv-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: black;
}

.tv-screen {
    position: absolute;
    width: 100%;
    height: calc(100vh - 100px); /* Adjust 100px to the actual height of your controls */
    object-fit: cover;
    flex: 1;
    z-index: 1;
}

.channel-display {
    font-family: "Press Start 2P", system-ui;
    position: absolute;
    line-height: 1.1em;
    top: 10px;
    right: 10px;
    font-size: 90px;
    color: green;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 10px 5px 10px;
    z-index: 10;
}

.tv-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    height: 100px;
    background-image: url("../img/tvbg.png");
}

.control-button {
    margin: 0 5px;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .control-button img {
        width: 30px;
        height: 30px;
    }
}

.control-button:hover {
    opacity: 0.9;
}

.subtitles {
    font-family: "Press Start 2P", system-ui;
    position: absolute;
    bottom: 80px; /* Adjust based on control height */
    width: 100%;
    text-align: center;
    color: white;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.subtitles p {
    margin: 0;
}
@media (max-width: 600px) {
    .subtitles {
        bottom: 300px; /* Adjust this value to ensure it is above the controls */
        font-size: 20px;
    }
}
