/* General Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #121212; /* Dark theme */
    color: aliceblue;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Main Layout */
main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1; /* Ensure it stretches with the screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
}

/* Header */
#header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to the left */
    width: 100%;
    padding: 20px;
}

#logo {
    height: 40px;
    margin-bottom: 0px;
   
}

#site-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    margin-left: 10px;
    
    
}

/* Join Stream Section */
#join-wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

/* Input Fields */
#username, #channel-name {
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    margin: 10px 0;
    background: #2a2a2a;
    color: white;
}

/* Join Button */
#join-btn {
    background-color: #ff5722;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#join-btn:hover {
    background: #e64a19;
}

/* User Streams */
#user-streams {
    margin-top: -20px; /* Reduced margin-top to push the video upwards */
    margin-bottom: 50px; /* Add margin from footer to prevent overlap */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Reduced width */
    gap: 15px;
    width: 85%; /* Reducing width by 15% */
    
}

/* Video Container */
.video-containers {
    position: relative;
    background-color: #1f1f1f8e;
    border-radius: 10px;
    margin-top: 0px;
    overflow: hidden;
    height: 430px; /* Increased height */
    width: 88%; /* Reducing width by 15% */
}



/* Footer Controls */
#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    left: 50%;
   
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.9);
    padding: 15px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}



/* Video Player */
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name Tag at Bottom Left */
.user-uid {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    background-color: rgba(31, 31, 31, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 16px;
    z-index: 1;
}

/* Footer Controls 
#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.9);
    padding: 15px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}*/

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1);
}

.control-icon {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

p {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-containers {
        height: 300px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    #join-wrapper {
        width: 80%;
        padding: 15px;
    }
    
    .video-containers {
        height: 280px;
    }

    #footer {
        max-width: 90%;
        bottom: 5px;
    }
}

@media (max-width: 480px) {
    .video-containers {
        height: 250px;
    }

    .user-uid {
        font-size: 14px;
        padding: 3px 8px;
    }

    #footer {
        height: 70px;
        padding: 10px;
    }
}
