/* ------------------  Global Styling ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
:root {
    --shaddow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);
    --main-color: #23d5ab;
  }

body{
    background-color: black;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* ------------------  Register Page ------------------ */

#form-container{
    width: 400px;
    box-shadow:var(--shaddow);
    background-color: #212121;
    padding: 30px;
    border-radius: 10px;
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
}

#logo{
    display: block;
    width: 100px;
    margin: 0 auto;
}

#welcome-message{
    text-align: center;

    margin-bottom: 20px;
}

#welcome-message h1{
    font-size: 36px;
    color:var(--main-color);
}


#welcome-message p{
    font-size: 16px;
    color:white;
    font-weight: 300;
}
.form-label{
    color: var(--main-color);
    font-family: "Audiowide", sans-serif;
}
.form-field{
    margin-bottom: 20px;
}

.form-field label{
    font-size: 16px;
    line-height: 1.7em;
    font-family: "Audiowide", sans-serif;

}

.form-field input{
    width: 100%;
    border:2px solid rgba(198,202,219,1);
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: "Audiowide", sans-serif;

}

.form-field input[type='submit']{
    background-color: var(--main-color);
    border:2px solid var(--main-color);
    color: black;
    font-family: "Audiowide", sans-serif;
    font-weight: bold;
}
.form-field input[type='submit']:hover{
    background-color: #212121;
    border:2px solid var(--main-color);
    color: var(--main-color);
}






#main-video{
    display: flex;
    flex-direction: row;
}
#video-div{
    flex: 80%;
}
#participants{
    background-color: #212121;
    flex:20%;
    display:none;
    border-radius: 5%;
}





#room-id,#div-2{
    flex: 33%;
    color: var(--main-color);
    font-family: "Roboto Mono", monospace;
    font-size: 105%;
}
#room-id{
    text-align: left;
    margin-left:2.5%;
}
#div-2{
    margin-right: 2.5%;
    text-align: right;
}

/* ----------------- Room Styling ------------------*/
#room-name-wrapper{
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: row;
}
#video-streams{
    display: flex;
    flex-wrap: wrap;
    height: 85vh;
    width: 98%;
    margin:0 auto;
}

.video-container{
    flex-basis: 500px;
    flex-grow: 1;
    max-height: 100%;
    min-height: 350px;
    border: 1px solid rgb(75, 93, 172);
    border-radius: 5px;
    margin: 2px;
    background-color: rgba(198,202,219,1);
    position: relative;
}

.video-player{
    height: 100%;
    width: 100%;
}

.video-player > * {
    border-radius: 5px;
}

.username-wrapper{
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background-color: rgba(0,0,0,0.3);
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

@media screen and (max-width:1650px) {
    .video-container{
        flex-basis: 300px;
        min-height: 200px;
    }
}


/* ----------------- Room Styling | Controls ------------------*/

#controls-wrapper{
    top:5px;
    flex:33%;
    display: flex;
    width: 100%;
    justify-content: center;
    column-gap: 1.5em;
}

.control-icon{
    height: 20px;
    width: 20px;
    box-shadow: var(--shaddow);
    background-color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;

}

#leave-btn{
    background-color: rgb(255, 80, 80, 1);
}
input::placeholder{
    color: red;
}
#developed-by{
    display: block;
    text-align: center;
    color: #23d5ab;
    font-family: "Audiowide", sans-serif;

}
.participants-name{
    display: block;
    color: #23d5ab;

}
.participants-heading{
    text-align: center;
    color: white;
    font-family: "Audiowide", sans-serif;
}
.participants-name{
    color: var(--main-color);
    font-family: "Roboto Mono", monospace;
    margin-left: 5%;
    padding:10px;
}



@media only screen and (max-width: 576px) {
    #form-container{
        width: 95%;

    }
    #welcome-message h1{
        font-size: 24px;
    }
    #room-name-wrapper{
        flex-direction: column;
    }
}