header {
    position: relative !important;
}

.streammix {
    display: flex;
    flex-direction: column;
}

.controls {
    margin: 10px 0 10px 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.controls button {
    max-width: 22%;
    margin: 0 10px 5px 0;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.controls button:hover {
    background-color: #45a049;
}

.elements-container {
    display: flex;
    flex-direction: row;
}

.stream-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin: 5px;
    width: 58%;
    height: 100%;
}

.stream-container iframe {
    width: auto;
    aspect-ratio: 16 / 9; 
    height: auto; 
    border-radius: 10px;
}

.chat-container {
    display: flex;
    flex-direction: row;
    align-items: right;
    margin: 2px;
    width: 40%;
    height: 80vh;
}

.chat-container iframe {
    flex: 1;
    overflow-y: auto;
    width: 45%;
    height: auto;
    border-radius: 10px;
    margin: 1px;
}

@media screen and (max-width: 768px) {
    .streammix {
        flex-direction: column;
    }

    .elements-container {
        flex-direction: column;
    }
    
    .stream-container {
        width: 99%;
    }

    .chat-container {
        width: 99%;
    }
    
    .chat-container iframe {
        width: 45%;
        height: 70vh;
    }
}

/* Fullscreen styles */
.fullscreen header,
.fullscreen footer {
    display: none;
}

.fullscreen .stream-container {
    margin-right: 0;
    height: 100%;
}

.fullscreen .chat-container {
    height: 99vh;
}