body {
  margin: 0;
  font-family: sans-serif;
}

.head {
  height: 50px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: black;
  color: white;
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-style: normal;
}

#app {
 position: relative;
 min-height: calc(100vh - 115px);
 overflow: hidden; 
 
}

/**********Login-page**********/

.login-card {
  width: 85%;
  max-width: 350px;
  padding: 30px;
  border-radius: 20px;
  background: #111;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.app-title {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #aaa;
  margin-bottom: 25px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

/* Google */
.login-btn.google {
  background: #fff;
  color: #000;
}

/* Guest */
.login-btn.guest {
  background: #6c47ff;
  color: #fff;
}

.login-btn:active {
  transform: scale(0.97);
}

.login-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

#setupProfile {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: radial-gradient(circle at center, #0f172a, #020617);
}

/* Container */
.setup-container {
  width: 80%;
  max-width: 350px;
  padding: 30px 20px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);

  text-align: center;
  color: white;
}

/* Title */
.title {
  font-size: 22px;
  margin-bottom: 20px;
}

/* Avatar */
.avatar-upload {
  margin-bottom: 20px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;

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

  background: rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 30px;
}

.upload-text {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.7;
}

/* Input */
.input {
  width: 90%;
  padding: 12px;
  margin-bottom: 15px;

  border-radius: 10px;
  border: none;

  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
}

/* Button */
.primary-btn {
  width: 100%;
  padding: 12px;

  border-radius: 20px;
  border: none;

  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.cancel-btn {
  margin-top: 10px;
  background: transparent;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  color: #999;
}

/* Footer */
.footer-text {
  margin-top: 15px;
  font-size: 12px;
  opacity: 0.6;
}





/************PAGES************/

.page {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/*page colours*/
#flashcards{
  background-color: transparent;
}

#voice{
  background: transparent;
  
}

#home{
  background-color: royalblue;
}



/***********NAVIGATION*********/
.nav-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 65px;
  background-color: black;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-container button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;

}

.nav-container button.hover{
  background: white;
}

.nav-container button img{
  height: clamp(18px, 3vw, 36px);
  width: clamp (18px, 3vw, 36px);
}

#create-room{
  padding: 10px;
  border-radius: 15px;
  border: none;
  background: linear-gradient(90deg, #7a46ff, #9747ff);
  color: white;
  
  /*position*/
  
  position: fixed;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.hidden{
  display: none;
}



/************VIDEOS*************/

.Container-design {
  width: 100%;
  height: calc(100vh - 100px);
  background: black;
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
}

.short {
  height: calc(100vh - 100px);
  position: relative;
  background: black;
  overflow: hidden;

  scroll-snap-align: start;
  scroll-snap-stop: always;


}

.short video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.template-preview {
  height: 12vw;
  width: 12vw;
  border-radius: 50%;
  border: none;
  background: transparent;
  position: fixed;
  z-index: 20;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}/*button */

.template-preview img {
  height: clamp(22px, 5vw, 45px);
  width: clamp (22px, 5vw, 45px);
}

.profile-design{
  height: clamp(35px, 10vw, 130px);
  width: clamp(35px, 10vw, 130px);
  background: red;
  border-radius: 50%;
  position: fixed;
  bottom: 10%;
  left: 3%;
  z-index: 1;
}




/********UPLOAD-CONTAINER*******/

#upload-section {
  position: fixed;
  inset: 0;
  background: #000;
  color: white;
  z-index: 9999;

  display: none;              /* hidden by default */
  flex-direction: column;
}

#upload-section.active {
  display: flex;              /* show when active */
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #333;
}

#closeUploadBtn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
}

.Share-btn {
  padding: 5px;
  border: none;
  background: linear-gradient(90deg, #7a46ff, #9747ff);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.Media-body{
  width: 100%;
  min-height: 50dvh;
  background: transparent;
}

.previewVideo-class {
  aspect-ratio: 1 / 1;
  background: black;
  z-index: 2;
}

.previewVideo-class video{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.upload-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.select-upload{
  padding: 12px;
  border: none;
  background: linear-gradient(90deg, #7a46ff, #9747ff);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

 #captionInput{
  border-radius: 10px;
  border: 5px solid transparent;
  color: black;
  font-weight: 800px;
  
  
  
  
}

 #captionInput:focus{
  outline: none;
  border: 2px solid #8a5cff; /* your theme color */
  box-shadow: 0 0 5px rgba(138, 92, 255, 0.5);
 }




/*********ACTIONS-BUTTONS*******/

.video-actions {
  position: absolute;
  right: 0%;
  top: 25%;
  height: clamp(160px, 16vw, 280px);

  display: flex;
  flex-direction: column;
  gap: 18px;

  z-index: 10;

  background: transparent; 
  padding: 10px;
}

.action-btn {
  background: none;
  border: none;
  padding: 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.action-btn i {
  font-size: 32px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.like-count {
  font-size: 12px;
  margin-top: 2px;
}

/* Main like icon animation */
.like-btn.liked i {
  color: #ff3b5c;
  animation: heart-pop 0.35s ease-out;
}

@keyframes heart-pop {
  0% {
    transform: scale(0.6);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* Burst hearts */
.heart-burst {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  color: #ff3b5c;
  animation: burst-fly 700ms ease-out forwards;
}

@keyframes burst-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.3);
    opacity: 0;
  }
}

.like-btn.unliked i {
  animation: heart-shrink 0.25s ease-out;
}

@keyframes heart-shrink {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.like-btn:not(.liked) i {
  opacity: 0.9;
}

.like-btn.liked i {
  opacity: 1;
}

/*Big-heart-animation*/

.big-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 80px;
  opacity: 0;
  pointer-events: none;
  animation: bigHeartAnim 0.8s ease forwards;
}

@keyframes bigHeartAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.Exitbtn{
  height: clamp(20px, 5vw, 50px);
  width: clamp(20px, 5vw, 50px);
  background: red;
}

/* Bottom overlay */
.video-bottom-info {
  position: absolute;
  bottom: 80px;
  left: 12px;
  right: 12px;
  color: white;
  z-index: 10;
  font-size: 14px;
}

/* Avatar + username */
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #444; /* replace with img later */
}

.username {
  font-weight: 600;
}

/* Caption */
.video-caption {
  max-width: 80%;
  line-height: 1.3;
  opacity: 0.9;
}

/*comments*/

.comment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.comment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.comment-sheet {
  position: absolute;
  left: 0;
  bottom: 6%;
  right: 0;
  width: 100%;
  max-height: 80%;
  background: white;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.comment-modal.active .comment-sheet {
  transform: translateY(0);
}

.comment-header {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 1500;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.comment-input-area {
  display: flex;
  padding: 12px;
  gap: 10px;
  border-top: 1px solid #eee;
  background: white;
  flex-shrink: 0;
  
}

#closeComment{
  background: transparent;
  border: none;
  
}

#sendComment{
  background: linear-gradient(90deg, #7a46ff, #9747ff);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 8px 20px;
}

/*comments-Username & like */

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-username {
  font-weight: 600;
  font-size: 13px;
}

.comment-text {
  font-size: 14px;
}

.comment-actions {
  margin-top: 4px;
}

.comment-like-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
}

.comment-like-btn.liked{
  color: red;
}

/*reply comments*/

.reply-btn{
  background: transparent;
  border: none;
}

.reply-container{
margin-left: 45px;
margin-top: 6px;

}

.reply-item{
display: flex;
gap: 8px;
margin-top: 6px;
animation: fadeIn 0.2s ease;

}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.reply-avatar{
width: 26px;
height: 26px;
border-radius: 50%;
}

.reply-username{
font-weight: 600;
font-size: 13px;
}

.view-replies-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  margin: 5px 0;
  cursor: pointer;
}

.mention {
  color: #4da6ff;
  font-weight: 600;
}

/*Comments-delete-button*/

.delete-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 15px;
  cursor: pointer;
  margin-left: 10px;
}

.delete-btn:hover {
  color: red;
}

/*Mute-and-Unmute*/

.sound-icon {
  position: fixed;
  bottom: 25%;
  left: 92%;
  transform: translateX(-50%);
  top: 20px;
  right: 15px;
  font-size: 22px;
  color: white;
  z-index: 10;
}


/**********USER-PROFILE*********/

.profile-header {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.Profile-Wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

#profileVideo-cnt{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  
}

.profile-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* ⭐ makes square */
  overflow: hidden;
}

.profile-tile video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 40%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);

  color: white;
  font-size: 24px;
  z-index: 5;
}

.text-Wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 10pt;
  gap: 5px;
}

.User-Info {
  display: flex;
  justify-content: space-around;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
}

.info-box {
  text-align: center;
}

.info-box span {
  font-weight: bold;
  font-size: 18px;
  display: block;
}

.info-box small {
  color: #777;
}

.Follow-Wrapper{
  display: flex;
  justify-content: center;
}

.follow-design{
  background: #8b5cf6;
  color: white;
  padding: 12px 36px;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}



/**********EDIT-PROFILE*********/

.exit-profile {
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
  margin-right: 10px;
}

.exit-profile {
  color: black;
}

.edit-header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
}

.edit-header button{
  background: transparent;
  border: none;
}

.ri-arrow-left-long-fill{
  font-size: 30px;
}

.ri-settings-5-line{
  font-size: 20px;
}

.edit-profile {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
}/*Btn*/

.edit-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
}

.edit-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  gap: 15px;
}/*Edit-Ctn*/

.edit-body button{
  padding: 10px 20px;
  border-radius: 15px;
  border: none;
  width: 100%;
  background: linear-gradient(90deg, #7a46ff, #9747ff);
  color: white;
  
}

.edit-body input{
  padding: 10px 20px;
  border-radius: 15px;
  border: 2px solid black;
}



/*************VOICE*************/

/*Voice-Input*/

#input-container{
  backdrop-filter: blur 6px;
}

.design{
  width: 80%;
  max-width: 420px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

 h{
  font-size: 15pt;
  align-items: flex-start;
  font-weight: bold;
}

#Confirm-btn{
  width: 90%;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  
  cursor: pointer;

  background: mediumpurple;
  

}

.btn-text{
  font-size: 14px;
  color: white;
}

#data{
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 8px 10px;
  width: 80%;
  min-height: 30px;
  max-height: 110px;
  background: lightgray;

/*
  background: rgba(255,255,255,0.06);
  color: black;
  font-size: 14px;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);*/
}

.close{
  font-size: 20px;
  background: transparent;
  border: none;
  position: fixed;
  left: 90%;
  top: 2.5%;
}

/*voice-card*/

#voice-card{
  height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
 
}

.voice-card{
  width: 80%;
  margin: 0 auto;
  max-width: 650px;
  padding: 18px;
  border-radius: 18px;
  display: flex;
  gap: 15px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.vc-left{
  display: flex;
  align-items: center;
}

.vc-avatar{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: grey;
}

.vc-right{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-top{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.live-dot{
  height: 1vh;
  width: 2.5vw;
  background: red;
  border-radius: 50%;
  animation: live 1.2s infinite;
}

@keyframes live{
  0%{ box-shadow: 0 0 0 0 rgba(255,0,0,0.6);}
  70%{ box-shadow: 0 0 0 8px rgba(255,0,0,0);}
  100%{ box-shadow: 0 0 0 0 rgba(255,0,0,0);}
}

.live-text{
  color: red;
  font-weight: 600;
}

.ri-group-fill{
  margin-left: 80px;
  color: #555;
}

.room-name{
  font-size: 16px;
  font-weight: 600;
}

.join-btn{
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(45deg, #8A00FF 30%, #0000FF );
  color: white;
  transition: 0.2s;
}

.join-btn:hover{
  transform: scale(1.05);
}

/*RoomUI*/

.UI-container{
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  overflow: hidden;
  
  
}

.stage{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    width: 90%;
    background: whitesmoke;
    border-radius: 15px;
    z-index: 2;
    margin: 0 auto;
}

.host-container{
  display: flex;
  gap: 35px;
}

.avatar{
  height: 45px;
  width: 45px;
  background: darkgrey;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  
}

.co-hosts{
  display: flex;
  flex-direction: row;
  gap: 35px;
}

.UI-ctrl-cont{
    width: 80%;
    min-height: 35px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#requestBtn{
  background: whitesmoke;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: none;
  z-index: 100;
  
}

.request-panel{
  width: 80%;
  min-height: 250px;
  border-radius: 15px;
  background: whitesmoke;
  margin: 0 auto;
  position: fixed;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -50%);
  z-index: 1001; /* above overlay */
  
} 

#blurOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(8px); /*  blur effect */
  background: rgba(0, 0, 0, 0.3);

  z-index: 1000;
}

.audienceContainer{
  width: 80%;
  max-height: 45px;
  margin: 0 auto;
  background: whitesmoke;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  padding: 10px;
  
}

.audience-A{
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

#raiseHandBtn{
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  z-index: 100;
  position: fixed;
  bottom: 10%;
  left: 85%;
  
}

.mic-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;

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

  border: none;
  cursor: pointer;

  font-size: 24px;
  color: white;

  background: #1e1e1e;

  transition: all 200ms ease;
}

.ri-mic-off-line{
  font-size: 10px;
}

.mic-btn:active {
  transform: scale(0.92);
  font-size: 10px;
}

.mic-btn.muted {
  background: #ff3b3b;
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.6);
}

.exit{
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: none;
  font-size: 12px;
}

.messages-css {
  position: fixed;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);

  width: 85%;
  max-height: 250px;

  padding: 10px;
  border-radius: 15px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  overflow-y: auto;

  pointer-events: auto; 
}

.ri-business-card-line{
  font-size: 20px;
}

/*speaking-UI*/

.avatar.speaking {
  box-shadow: 0 0 0 4px rgba(0, 255, 100, 0.6);
  animation: speakPulse 300ms infinite;
}

@keyframes speakPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,100,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0,255,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,100,0); }
}

/*Join- Message*/

.room-msg {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 13px;

  animation: msgEnter 300ms ease;
}

.room-msg.leave {
  background: rgba(60,60,60,0.7);
}

.room-msg img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes msgEnter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes msgExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* messages */

.chat-item {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;

  background: rgba(0,0,0,0.6);
  color: white;

  word-break: break-word;
  overflow-wrap: break-word;
  
  /*  NEW ANIMATION 
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  */
}


/* my messages */

.chat-item.me {
  align-self: flex-end;
  background: #00ffcc30;
}

.chat-design {
  width: 85%;
  padding: 10px;
  border-radius: 15px;
  font-size: 15pt;
  color: #000;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2%;
  background-color: whitesmoke;
}

.chat-username {
  font-weight: 600;
  color: #4da6ff;
}

.chat-username.me {
  color: #00ffcc;
}

.chat-text {
  color: #000;
}

.chat-input-box {
  display: flex;
  gap: 5px;
  padding: 5px;
}

#chatInput {
  flex: 1;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
}

#chatInput:focus{
  outline: none;
  border: 2px solid #8a5cff; /* your theme color */
  box-shadow: 0 0 5px rgba(138, 92, 255, 0.5);
}

#sendChatBtn{
  padding: 10px 10px;
  color: white;
  background: mediumpurple;
  border-radius: 12px;
  border: none;
  
}

/*Leave-UI*/

/* overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.6);

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

  z-index: 9999;
  backdrop-filter: blur (6px);
}

/* hidden */
.hidden {
  display: none;
}

/* box */
.modal-box {
  width: 85%;
  max-width: 320px;

  background: #1e1e1e;
  color: white;

  padding: 20px;
  border-radius: 16px;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  animation: modalPop 0.25s ease;
}

/* title */
.modal-box h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* text */
.modal-box p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 18px;
}

/* buttons */
.modal-actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

/* cancel */
.cancel {
  background: #2a2a2a;
  color: white;
}

/* leave */
.leave {
  background: #ff4d4d;
  color: white;
}

/* hover */
.leave:hover {
  background: #ff2e2e;
}

/* animation */
@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/*

  .............END...............


*/