body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}


.container {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: 20px solid black;
    box-sizing: border-box;
}

/* Stream column - each takes 50% width */
.stream-column {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100vh;
    /*padding: 1px;*/
    /*box-sizing: border-box;*/
}
/* Vertical separator line */
.stream-column:first-child {
    border-right: 2px double white;
}   

/* Video container - takes approx 50% of column height */
.video-container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    height: 50%;
}

.video-container h2 {
    /*padding: 5px 5px;*/
    margin: 0;
    background-color: #f0f0f0;
    /*border-bottom: 1px solid #ddd;*/
    font-size: 1rem;
    height: 20px;
}

/* Chat container - takes remaining 50% of column height */
.chat-container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 47%;
}

.chat-container h3 {
    padding: 5px 10px;
    margin: 0;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    font-size: 0.4rem;
    height: 20px;
}

/* Video and chat wrappers */
.video-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 200px; /* Ensure minimum height for video */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.chat-wrapper {
    flex: 1;
    overflow-y: auto;
    min-height: 100px; /* Ensure minimum height for chat */
}

.chat-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hide the login/help button by default */
.yt-login-mobile {
    display: block;
}

@media (max-width: 900px) {
    body {
        padding: 0 14px;
        background-color: #DDE1E4;
    }
    .container {
        flex-direction: column;
        height: auto;
        border: none;
        margin: 0;
    }
    .stream-column {
        width: 100%;
        border: none;
        margin: 0 0 24px 0;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        min-height: 100vh;   /* Fills one viewport per stream */
        height: 100vh;
        /*box-sizing: border-box;*/
    }
    .video-container {
        height: 198px;      /* Or 200–220px, tweak to taste */
        margin-bottom: 1px;
        flex: none;
    }
    .chat-container {
        flex: 1;            /* Chat fills the rest of the viewport */
        min-height: 0;      /* Allow chat to shrink if needed */
        height: auto;
        /* No fixed height */
    }
    .yt-login-mobile {
        display: block;
    }
}
