/* Custom styles for video elements */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 140px);
}
.video-thumbnails-container {
    margin: 0 auto;
    padding: .2rem 0.5rem;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    overflow-x: auto;
    white-space: nowrap;
    z-index: 20;
    align-items: center;
    box-sizing: border-box;
}

.video-wrapper {
    position: relative;
    background-color: #2d3748; /* dark grey bg */
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9; /* Ensure videos maintain a consistent aspect ratio */

}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the frame without stretching */
    border-radius: 0.5rem;
}

.video-thumbnail{
    height: 84px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
}

/* User label overlay */
.user-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    z-index: 10;
}

/* Grid */

.row {
    display: flex;
    flex-wrap: wrap;
}
.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding-right: 5px;
    padding-left: 5px;
}
.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.col-md-11,.col-md-10, .col-md-9, .col-md-8, .col-md-4, .col-md-3,.col-md-2,.col-md-1, .col-md-12{
    position: relative;
    width: 100%;
    padding-right: 5px;
    padding-left: 5px;
}
@media (min-width: 768px) {
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

.video-focus-container:hover #video-focus-overlay{
    display: block;
}

.message-wrapper {
    padding: 10px;
    margin-bottom: 5px; 
    border-radius: 5px;
    font-size: small;
    word-wrap: break-word;
    overflow: hidden;
}
.message{
    display: inline-block;
    max-width: 80%;
    padding: 0px 12px;
    word-wrap: break-word;
}
.system-message {
    background-color: #f0f0f0;
    font-size: x-small;
    color: gray;
}
.my-message{
    background-color: #DCF8C6;
    float:right;
    text-align: right;
    clear: both;
}

