* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

html,body{
  max-width: 100%;
  overflow-x: hidden;
}
body {
  
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
  overflow-x: hidden;
}

section{
  padding: 0px 128px;
}

.heroSec{
  background-color: #3a3f9d;
}

img,video,iframe{
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: white;
}

li {
  list-style: none;
}
 

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  padding: 24px 0px;

  font-size: 1.2rem;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
 
 

nav  .nav-cta {
  background-color: white;
  color: #3a3f9d;
  padding: 6px 12px;
  font-weight: 600;
}

nav h1 {
  font-weight: 700;
}
.hero {
  padding: 8em 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  /* max-width: 512px; */
}

.hero h1 {
  font-size: 5em;
  font-weight: 800;
  max-width: 700px;
  text-align: center;
}

.hero h3 {
  font-size: 1.3em;
  font-weight: 400;
  max-width: 614px;
  text-align: center;
}

.hero .cta .create {
  font-size: 1.3em;
  border: solid black 1px;
  background-color: white;
  color: #3a3f9d;
  padding: 12px 24px;
  font-weight: 600;
}
.hero .cta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.hero .cta .features {
  font-size: 1.3em;
  border: solid white 1px;
  background-color: transparent;
  color: white;
  padding: 12px 24px;
  font-weight: 600;
}

.features{
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 64px  ;
  gap: 18px;
}
.heroSec{
  height: 100vh;
}

.howItsWork{
  background-color: #3a3f9d;
  color: white;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 64px  ;
  gap: 18px;

}

.howItsWork .box{
  background-color: whitesmoke;
}
.ctaSec{
 
   color: #000;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 64px  ;
  gap: 18px;

}
.ctaSec button{
  padding: 16px 32px;
  background-color: #2563eb;
  color: whitesmoke;
  font-size: 1.2em;
  border: none;
}
.features h1,.howItsWork h1,.ctaSec h1{
  font-size: 3em;
}
section .heading{
  display: flex;
  flex-direction: column;
  align-items: center;
}
section .heading h1{
  font-size: 3em;
}
section .heading h2{
  font-size: 1.2em;
  font-weight: 450;
}
footer{
  padding: 12px 128px;
  color:  black;
  border-top: 2px solid rgb(86, 76, 76);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
   
}
.fetursList{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px;

  justify-content: center;
  width: 100%;

}


section .box{
  max-width: 320px;
  /* height: 230px; */
  /* max-height: 360px; */
  background: wheat;
  color: black;
  padding: 12px;
  border: 2px solid rgb(86, 76, 76);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: start;
  box-sizing: border-box;

}



.box .ico{
  font-size: 3.8em;
}

 
 
.numIco  {
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  background-color: #2563eb;
  color: whitesmoke;
  padding: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  aspect-ratio: 1 / 1 ;
}
.box h2{
  font-size: 1.4em;
}

.box p {
  font-size: 1em;
  font-weight: 400;
  color: rgb(86, 76, 76)s;
}

.form {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

fieldset {
  background: white;
  padding: 24px;
  color: black;
  display: flex;
  /* justify-content: center; */
  align-items: center;

  gap: 1em;

  flex-direction: column;
  margin: 2em;

  /* width: fit-content; */
}

fieldset .changePhoto {
  color: #3a3f9d;
  cursor: pointer;
}

fieldset h1 {
  font-size: 2rem;
  font-weight: 500;
  padding: 1rem 0rem;
}
fieldset div .profileData {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

fieldset .usernameIn,
.emailIn,
.rooNameIn,
.streamUrlIn,
.subtitleUrlIn,
.passcodeIn {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

fieldset .isRoomPrivetIn {
  width: 100%;
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

fieldset .isRoomPrivetIn #toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

fieldset .isRoomPrivetIn .toggle-l {
  display: inline-block;
  width: 56px;
  height: 32px;
  background: white;
  border: solid black 1px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}
fieldset .isRoomPrivetIn .toggle-l .toggle-tumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #3a3f9d;

  transition: transform 0.3s ease;
}

#toggle:checked + .toggle-l {
  background: rgb(238, 233, 233);
}
#toggle:checked + .toggle-l .toggle-tumb {
  transform: translateX(24px);
}

fieldset div label {
  font-size: 1em;
  font-weight: 600;
}

fieldset div input {
  font-size: 1.2em;
  padding: 0.6rem 1.2rem;
  /* width: 100%; */
}

fieldset .nxt-Btn,
.createRoomBtn {
  font-size: 1.2em;
  padding: 0.6rem 1.2rem;
  width: 100%;
  background-color: #3a3f9d;
  color: white;
  border: solid black 1px;
  cursor: pointer;
}

.profileImage {
  background: gray;
  border-radius: 50%;
  width: 128px;
  height: 128px;
}
.profileImageroom {
  background: gray;
  border-radius: 50%;
  width: 64px;
  height: 64px;
}
.erroMsgPro,
.erroMsgRoom {
  display: none;
  align-items: start;
  background-color: #c70942;
  color: white;
  font-weight: bold;
  padding: 6px;
  max-width: inherit;
}

div .creatingRoom {
  background: white;
  padding: 24px;
  color: black;
  display: flex;

  align-items: center;

  gap: 1em;

  flex-direction: column;
  margin: 2em;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.roomCreated {
  background: white;
  padding: 24px;
  color: black;
  display: flex;

  align-items: center;

  gap: 1em;

  flex-direction: column;
  margin: 2em;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.imageSelector {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgb(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;

  width: 100%;
  height: 100vh;
  gap: 2em;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.imageSelector.active {
  opacity: 1;
  visibility: visible;
}

.imageSelector .box {
  background-color: white;
  color: black;
  padding: 24px;
  max-width: 520px;
  max-height: 70vh;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.imgList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}
.imgList img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 3px solid transparent;
  object-fit: cover;
  cursor: pointer;
  /* margin: 0px 4px; */
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.imgList img:hover {
  transform: scale(1.04);
  border-color: #2563eb;
}
.imgList .selected {
  border-color: #2563eb;
}

.selctBtn {
  width: 100%;
  flex-direction: row;
  align-items: end;
  justify-content: end;
  display: flex;
  gap: 4px;
}

.selctBtn .clsBtn {
  padding: 4px 16px;
  color: #2563eb;
  background: transparent;
  border: solid #2563eb 2px;

  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}
.selctBtn .selectBtn {
  padding: 4px 16px;
  color: white;
  background: #2563eb;
  border: solid #2563eb 2px;

  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

/* default select set  */
.image_0 {
  border-color: #2563eb;
}

div .creatingRoom .loder {
  position: relative;
  width: 72px;
  height: 72px;
}
div .creatingRoom .loder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
}

div .creatingRoom .loder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: #3a3f9d;
  border-right-color: #3a3f9d;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

div .creatingRoom .lable {
  font-weight: 500;
}

.openRoomBtn {
  font-size: 1.2em;
  padding: 0.6rem 1.2rem;
  width: 100%;
  background-color: #3a3f9d;
  color: white;
  border: solid black 1px;
  cursor: pointer;
}

/* room  */
.roomContent {
  width: 100%;
  max-width: 100%;
  height:auto;
  min-height: 80vh;
  margin-top: 24px auto;
  background-color: white;
  padding: 16px;

  display: flex;
  flex-direction: column;
  color: black;
  gap: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.roomMainGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 50% 50% */
  gap: 12px;
  width: 100%;
  align-items: stretch;  /* height sama karanna */
}
.chatCoantianer {
  width: 100%;
  max-width: 100%;
  background-color: antiquewhite;
  overflow-y: auto;
  border: 2px solid rgb(86, 76, 76);
  display: flex;
  flex-direction: column; 
  box-sizing: border-box;
  overflow: hidden;
  
}
.chatCoantianer .header {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  border-bottom: 2px solid rgb(86, 76, 76);
  box-sizing: border-box;
  overflow: hidden;
}
.chatCoantianer .header .onlineCount {
  padding: 4px 8px;
  font-size: 0.9rem;
  border: 2px solid rgb(86, 76, 76);
}
.chatCoantianer .header h1 {
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}

.msgInp {
  display: flex;
  flex-direction: row;
  padding: 12px;
  border-top: 2px solid rgb(86, 76, 76);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
 
.mesageShow {
  width: 100%;
  min-height: 0;
  height: 460px; 
  overflow-y: auto;
  padding: 8px;
  box-sizing: border-box;
}
.msgInp input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  padding: 12px;
  box-sizing: border-box;
  border: 2px solid rgb(86, 76, 76);
}
.msgInp button {
  flex-shrink: 0;
  color: white;
  font-size: 1.1rem;
  padding: 12px 16px;
  background-color: #2563eb;
  border: 2px solid rgb(86, 76, 76);
  cursor: pointer;
  white-space: nowrap;
}
.videoContainer {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
   
}

.videoContainer .video {
  flex: 1;
  min-width: 0;              
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: antiquewhite;
  border: 2px solid rgb(86, 76, 76);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videoPlayer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
  line-height: 0
  
   
}

.videoPlayerWraper{
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  
}
/* hide browser default subttiles  */
video::cue{
  opacity: 0;
}
.subOverlay{
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  text-align: center;
  pointer-events: none;
  z-index: 10;

}


.subText{
  display: inline-block;
  background-color: rgb(0, 0, 0, 0.78);
  color: whitesmoke;
  font-size: 1.1em;
  line-height: 1.4;
  padding: 6px 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);

}

.subText:empty{ 
  display: none;
}

.videoPlayer video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.controlsBar{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;

}

.process{
  width: 100%;
  display: flex;
  align-items: center;
}

.seekBar{
  width: 100%;
  height: 8px;
  accent-color: #2563eb;
  cursor: pointer;
  background-color: wheat;

}

.buttons{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8fafc;
  font-size: 14px;

}

.left, .right{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn{
  background: rgba(255, 255, 255, 0.12);
  color: wheat;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;

}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ctrl-btn.active {
  background: #2563eb;
}



.onlineUsersContainer {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: 200px;
  background-color: antiquewhite;
  border: 2px solid rgb(86, 76, 76);
  box-sizing: border-box;
  overflow-y: auto;
  
}
.onlineUsersContainer .header {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: auto;
  border-bottom: 2px solid rgb(86, 76, 76);
}

.onlineUsersContainer .header h1 {
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}

.onlineUsersContainer img{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
}
.onlineUsersList{
  display: flex;
  gap: 12px;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 12px;


}

.onlineUsersContainer  .user {
  display: flex;
  flex: 1 1 140px;
  flex-direction: row;
  gap: 12px;
  padding: 12px;
  background-color: white;
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;


}

 
.onlineUsersContainer .onlineUsersList .user .usernameL {
  font-size: 1.2em;
  font-weight: 600;

}
.onlineUsersContainer .onlineUsersList .user .secs span {
  font-size: 0.9em;
  font-weight: 600;
  padding: 0px 8px;
  border-radius: 12px;
  border: solid black 1px;
  margin: 2px  ;

}

.msgBox {
  display: flex;
  flex-direction: row;
  background-color: whitesmoke;
  padding: 8px;
  margin: 4px 0;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
}

.msgBox .sec {
  display: flex;
  flex-direction: column;

  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msgBox .userImg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
}

.msgBox .username {
  font-size: 1.2em;
  font-weight: 600;
 
}
.msgBox .message-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.passcode {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background-color: rgb(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;

  width: 100%;
  height: 100vh;
  gap: 2em;
   
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.userAcc {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background-color: rgb(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;

  width: 100%;
  height: 100vh;
  gap: 2em;
   
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.passcodeContainer {
 
  background-color: antiquewhite;
  border: 2px solid rgb(86, 76, 76);
  color: black;
  padding: 48px;
  max-width: 520px;
  max-height: 70vh;
 
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.passcodeInpContainer{
  display: flex;
  flex-direction: row;
  gap: 12px;

  padding: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.passcodeInpContainer input{
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  font-size: 1.5rem;
  text-align: center;
  
}

.gotRoomBtn{
  color: white;
  font-size: 1.1rem;
  padding: 6px;
  width: 100%;
  background-color: #2563eb;
  border: 2px solid rgb(86, 76, 76);
  margin: 12px;

}

/* loading overlay in  room page  */
.loading {
  width: 100%;
  height: 100vh;
  color: #3a3f9d;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: white;
  align-items: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading h1 {
  font-weight: 400;
}

.loading .loder {
  position: relative;
  width: 72px;
  height: 72px;
}
.loading .loder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
}

.loading .loder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: #3a3f9d;
  border-right-color: #3a3f9d;
  animation: spin 0.9s linear infinite;
}


/* media querys  - responsive */

/* lager descktop screen s 
*/
@media screen and (min-width:1200px){
  section{
    padding: 0px 128px;
  }

  .hero{
    padding: 8em 240px;
  }

  .roomContent{
    max-width: 1400px;
    margin: 24px auto;
  }
  
  .roomMainGrid { 
    display: flex !important;
    flex-direction: row !important;
    height: 600px;
    gap: 12px;
    width: 100%;
  }
  
  .videoContainer {
    flex: 1.5 !important; 
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .videoContainer .video {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .videoPlayer{
    width: 100% !important;
    height: 100% !important; 
    max-width: 100% !important;
    object-fit: contain;
    background-color: #000;
  }
  
  .videoPlayer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .chatCoantianer {
    flex: 1 !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  
  .mesageShow {
    flex: 1;
    height: auto !important; 
    min-height: 0;
    overflow-y: auto;
  }
  
  /* Online users - full width below grid */
  .onlineUsersContainer {
    width: 100% !important;
    margin-top: 12px;
  }
}
/* descktop screens  */

@media screen  and (max-width:1199px){
  section{
    padding: 0px 64px;
  }

  .hero{
    padding: 8em 120px;
  }

  .hero h1{
    font-size: 4em;
  }

  /* .videoPlayer{
    min-width: 720px;
  } */

  .roomContent{
    margin: 16px auto;

  }
   .roomMainGrid { grid-template-columns: 1fr 1fr; }
  .mesageShow{
    height: 400px;
  }
  
  
}

/* tablets  */
@media screen  and (max-width:991px){
  section{
    padding: 0px 32px;
  }
  .heroSec{
    height: auto;
  }
  nav{
    font-size: 1rem;
    padding: 16px 0px;
  }

  nav ul{
    gap: 0.5rem;

  }

  nav a{
    padding: 4px 8px;
    font-size: 0.9rem;

  }

  .hero{
    padding: 4em 60px;
  }

  .hero h1{
    font-size: 3em;
  }
  .hero h3{
    font-size: 1.1em;
  }

  .hero .cta .create,
  .hero .cta .features {
    font-size: 1.1em;
    padding: 10px 20px;
  }

  /* create room    & forms */
  fieldset{
    margin: 1.5em;
    padding: 20px;

   }
  fieldset h1{
    font-size: 1.6rem;
  }
  fieldset div input{
    font-size: 1rem;
    padding: 0.5rem 1rem;

  }
  fieldset .nxt-Btn,
  .createRoomBtn,
  .openRoomBtn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  
  /* room  */
  .roomContent{
    /* width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 80vh;
    box-sizing: border-box; */
    margin: 8px auto;
    padding: 8px;
    gap: 8px;
  }
  .roomMainGrid {
    grid-template-columns: 1fr;  /* single column */
  }
  .videoContainer .video {
    min-height: 300px;
  }
  /* .videoContainer {
    flex-direction: column;
  } */
  .videoPlayer{
    aspect-ratio: 16 / 9;
  }
  .mesageShow {
    height: 35vh;
    min-height: 250px;
  }
  .msgBox {
    padding: 6px;
    margin: 3px 0;
  }
  msgBox .userImg {
    width: 36px;
    height: 36px;
  }

  .msgBox .username {
    font-size: 0.9rem;
  }
  .msgBox .message-text {
    font-size: 0.85rem;
  }
  .msgInp input{
    padding: 10px;
    font-size: 0.9rem;
  }
  .msgInp button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .onlineUsersContainer .user{
    flex:1 1 100%;
  }

  .onlineUsersContainer img {
    width: 36px;
    height: 36px;
  }
  
  
}



/* tablets portrait  */
@media screen  and (max-width:767px){
  section{
    padding: 0px 64px;
  }
  .fetursList{
    padding: 0px !important;

  }
  nav{
     
  
    padding: 16px 16px;
  }
  nav .items{
    display: none;
  }

  nav ul{
    flex-wrap: wrap;
    justify-content: center;

  }

  nav a{
    padding: 4px 8px;
    font-size: 0.9rem;

  }

  .hero{
    padding: 3em 20px;
  }

  .hero h1{
    font-size: 2.5em;
  }
  .hero h3{
    font-size: 1em;
  }
  .hero .cta {
    flex-direction: column;
    width: 100%;
  }

  .hero .cta .create,
  .hero .cta .features {
    width: 100%;
    text-align: center;
  }

  /* create room  & form */
  fieldset {
    margin: 1em;
    padding: 16px;
  }
  fieldset h1 {
    font-size: 1.4rem;
  }

  .profileImage {
    width: 96px;
    height: 96px;
  }

  .imgList {
    gap: 4px;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
   
  
  /* room  */
  .roomContent{
    /* height: auto;
    min-height: 80vh; */
    padding: 8px;
    gap: 8px;
  }
  .roomMainGrid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .videoPlayer{
    min-width:100%;
  }
  .videoContainer .video {
    min-height: 300px;
  }
  .mesageShow {
    height: 35vh;
    min-height: 250px;
  }
  .msgInp{
    flex-direction: column;
  }
  .msgInp input{
    width: 100%;

  }
  .msgInp button{
    width: 100%;

  }
  .passcodeContainer{
    padding: 24px;
  }

  .passcodeInpContainer input {
    width: 2em;
    height: 2em;
    font-size: 1.2rem;
  }
  
  
}






/* mobile screens  */
@media screen  and (max-width:767px){
  section{
    padding: 32px 16px !important;
  }
  .fetursList{
    padding: 0px !important;

  }
  footer{
    padding: 9px 16px !important;
  }
  nav{
    font-size: 0.9rem;
     
  
 
  }
  .m-hide{
    display: none;
  }

  nav h1{
    font-size: 1.2rem;
  }

  nav a{
    padding: 3px 6px;
    font-size: 0.8rem;

  }
  

  .hero{
    padding: 2em 10px;
  }

  .hero h1{
    font-size: 2em;
  }
  .hero h3{
    font-size: 0.9em;
  }
 

  .hero .cta .create,
  .hero .cta .features {
    font-size: 1em;
    padding: 8px 16px;
  }

  /* create room  & form */
  fieldset {
    margin: 0.5em;
    padding: 12px;
    gap: 0.8em;
  }
  fieldset h1 {
    font-size: 1.2rem;
    padding: 0.5rem 0rem;
  }
  fieldset div lable{
    font-size: 0,9rem;

  }

  fieldset div input{
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .profileImage {
    width:80px;
    height: 80px;
  }

  .imgList {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 4px;
  }
  
  
  
  .creatingRoom,
  .roomCreated {
    margin: 1em;
    padding: 16px;
    gap: 2rem;
  }
  
  /* room  */
  .roomContent{
    padding: 8px;
    gap: 8px;
  }
  .chatCoantianer {
    display: flex !important;
    flex-direction: column !important;
    height: 50vh;  
    max-height: 500px;
    border: 2px solid rgb(86, 76, 76);
    background-color: antiquewhite;
    overflow: hidden;  
    position: relative; 
    z-index: 10;
  }
  .chatCoantianer .header {
    flex-shrink: 0;
    padding: 8px;
  }
  .chatCoantianer .header h1 {
    font-size: 1rem;
  }
  .mesageShow{
    flex: 1;
    /* height: auto !important; */
    min-height: 200px;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
    /* height: 250px; */
    -webkit-overflow-scrolling: touch; 
  }
  .msgInp{
   flex-shrink: 0;   
    padding: 8px;
    border-top: 2px solid rgb(86, 76, 76);
    background-color: antiquewhite;
    display: flex;
    gap: 8px;
    width: 100%;

    position: relative; 
    z-index: 20;

  }
  body .keyboard-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
  .msgInp input{
    flex: 1;
    font-size: 0.9rem;
    padding: 8px;
    min-width: 0;

  }
  .msgInp button{
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 8px;
    white-space: nowrap;

  }
  .videoContainer{
    padding: 0pxs;
  }
  .videoContainer .video {
    padding: 8px;
  }
  .subOverlay{
    bottom: 40px;

  }
  .controlsBar{
    padding: 8px 8px 6px;
 
    gap: 6px;
    

  }
  .seekBar{
    
    height: 4px;
 

  }
   
  .buttons{
 
    font-size: 10px;

  }
  .ctrl-btn{
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
     
    font-weight: 600;
    

  } 
  .left, .right{
    
    gap: 6px;
  }

  .subText{
    
    font-size: 0.8em;
    line-height: 1;
    padding: 3px 7px;
     
  }

   .onlineUsersContainer {
    height: 120px;
  }
  
  .onlineUsersContainer .header {
    padding: 8px;
  }
  
  .onlineUsersContainer .header h1 {
    font-size: 1rem;
  }
  
  .onlineUsersContainer img {
    width: 2.5rem;
  }

  .onlineUsersList{
    padding: 8px;

  }

  .onlineUsersContainer .user{
    padding: 8px;
    gap:8px;
  }

  .onlineUsersContainer .onlineUsersList .user .usernameL {
    font-size: 1em;
  }

  .msgBox .userImg{
    width: 36px;
    height: 36px;
  }
  .msgBox .username{
    font-size: 1em;
  }

  .passcodeContainer{
    gap: 8px;
  }
    .passcodeInpContainer input {
    width: 1.8em;
    height: 1.8em;
    font-size: 1rem;
  }
  
  .gotRoomBtn {
    font-size: 1rem;
    padding: 8px;
    margin: 8px;
  }

  .loading h1{
    font-size: 1.2rem;
  }

  .loading .loader{
    width: 48px;
    height: 48px;

  }
  .loading .loder::before,
  .loading .loder::after {
    border-width: 4px;
  }
  


  
  
}


/* layout room screen  */
@media screen and (min-width: 1024px) {
 
  .roomMainGrid {
    display: flex !important;
    flex-direction: row !important;
    height: 600px;
    gap: 12px;
    width: 100%;
  }

   
  .videoContainer {
    flex: 1.5 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .videoContainer .video {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .videoPlayer {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    background-color: #000;
  }

  .videoPlayer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

 
  .chatCoantianer {
    flex: 1 !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
  }

  .mesageShow {
    flex: 1;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
  }

  
  .onlineUsersContainer {
    width: 100% !important;
    margin-top: 12px;
  }
}

/* Mobile/Tablet - column layout */
@media screen and (max-width: 1023px) {
  .roomMainGrid {
    display: flex !important;
    flex-direction: column !important;
    height: auto;
  }
  
  .videoContainer, .chatCoantianer {
    flex: 1 !important;
    width: 100%;
  }

  .mesageShow {
    height: 400px;
  }
}




