:root{
    --chatfaded-font-clr:#4D4D4D;
    --faded-white-clr:#ADB5BD;
    --secondary-font-clr:#ca6868;
    --sixteen-font-color:#161718;
    --zzthemed-clr:#e47b08;
    --zzthemed-clr-2:#eb8e2b;
    --zzthemed-clr-3:#fbf7f2;
    --themed-clr-4:#fac486;
    --green-theme:#22a26e;
    --green-theme2:#c5ecdc;
    --green-theme3: #eff6f3;
    --golden-theme: #f7a830;
    --golden-theme1: #f3d6aa;
    --blue-theme: #0099ff;
    --blue-theme1: #c0dff4;
    --blue-theme1: #e7f1f7;
    --blue-theme2: #e7f1f7;
    --blue-theme-background: #e7f1f7;
    --purple-theme: #62369c;
    --purple-theme1: #d5b9f9;
    --paleblue-theme: #27F5DD;
    --paleblue-theme1: #abede6;
    --dark-backgrnd-clr:rgb(31, 33, 46);
    --dark-backgrnd-clr2:#5b666d;
    --background-clr:#ffffff;
    --highlighted-clr-1:#F9F9F9;
    --highlighted-clr-2:#F5F5F5;
    --highlighted-clr-3:#EFEFEF;
    --highlighted-clr-3:#F7FAFC;
    --highlighted-clr-4:#e3e7ea;
    --outfit-font-fam:'Outfit', sans-serif;
    --poppins-font-fam:'Poppins', sans-serif;
    --inter-font-fam:'Inter', sans-serif;
    --roboto-font-fam:'Roboto', sans-serif;
    --lora-font-fam:'Lora', sans-serif;
    --dancing-font-fam:'Great Vibes', cursive;
}

@keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
      }
      40% {
        transform: translateY(-30px);
      }
      60% {
        transform: translateY(-15px);
      }
    }

.bounce {
  animation: bounce 1s;
}

.content-box{
    position: relative;
  width: 100%;
  height: auto;
  overflow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.conversation-header{
  position: relative;
  width: 100%;
  height: 8%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  background-color: var(--background-clr);
  box-sizing: border-box;
}
.conversation-header-span1{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.conversation-header-span1 span{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.conversation-header-span1a{
  font-family: var(--poppins-font-fam);
  font-weight: bold;
  font-size: 16px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
}
.conversation-header-span1b{
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 8px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
}
.conversation-back-i{
  font-size: 20px;
  color: gray;
}
.conversation-header-profile{
  width: 30px;
  height: 30px;
  background-color: var(--highlighted-clr-2);
  border-radius: 50%;
  overflow: hidden;
}
.conversation-header-profile img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.conversation-header-a{
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
  color: var(--chatfaded-font-clr);
  padding: 5px;
}

.actionPanel{
  position: absolute;
  top: 0;
  right: 0;
  height: auto;
  width: 20%;
  background-color: var(--background-clr);
  color: var(--chatfaded-font-clr);
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: solid 1px var(--highlighted-clr-4);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.actionPanel.active {
    transform: translateX(0);
}
.actionPanel form{
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}
.actionPanel form input{
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 14px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.actionPanel form input:hover{
  color: var(--purple-theme);
  background-color: var(--highlighted-clr-2);
}




.conversation-container{
  width: 100%;
  height: 60vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #f3f2f1;
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
  background-repeat: repeat;
  
}

.conversation-container::-webkit-scrollbar {
    width: 5px;  
}

.conversation-container::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 10px;
}

.conversation-container::-webkit-scrollbar-thumb {
    background: var(--green-theme2);  
    border-radius: 10px;
}

.conversation-container::-webkit-scrollbar-thumb:hover {
    background: var(--deep-backgrnd-clr2);
}


.conversation-box{

  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  gap: 10px;
}

.conversation-card{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.conversation-card.removing {
    opacity: 0;
    transform: scale(0.9);
}
.conversation-card.send{
  justify-content: flex-end;
}
.conversation-card.receive{
  justify-content: flex-start;
}

.conversation-card,
.conversation-card * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.conversation-message-box{
    position: relative;
    width: auto;
    max-width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.conversation-message-box.receive{
  background-color: var(--blue-theme-background);
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.conversation-message-box.send{
  background-color: var(--green-theme2);
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
.conversation-message-box-span1{
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 14px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
}
.conversation-message-box-span2{
  width: auto;
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 10px;
  color: gray;
  text-decoration: none;
  box-sizing: border-box;
}
.conversation-date-cont{
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.conversation-date-cont span{
  padding: 5px;
  margin: 5px;
  background-color: var(--background-clr);
  border-radius: 5px;
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 10px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
}


.conversation-form {
  width: 100%;
  height: 10%;
  max-height: 10%;
  display: flex;
  align-items: center;
  background: var(--background-clr);
  padding: 5px 10px;
  position: relative;
  box-sizing: border-box;
}

.conversation-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-family: var(--poppins-font-fam);
  font-weight: 300;
  font-size: 14px;
  color: var(--chatfaded-font-clr);
  text-decoration: none;
}

.conversation-form button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
  color: var(--green-theme);
}

.emoji-btn {
  font-size: 18px;
  margin-right: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.emoji-picker {
  position: absolute;
  bottom: 45px;
  left: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  display: none;
  flex-wrap: wrap;
  max-width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.emoji-picker span {
  font-size: 20px;
  margin: 5px;
  cursor: pointer;
}

.emoji-picker span:hover {
  transform: scale(1.2);
}

@media(max-width:700px){
  .emoji-btn{
    display: none;
  }
  .actionPanel{
    width: 50%;
  }
}








