
@font-face {
    font-family: 'Vazir';
    src: url('font/vazir-font-v16.1.0/Vazir.woff2') format('woff2'),
         url('font/vazir-font-v16.1.0/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    direction: rtl;
    text-align: right;
}
.loading-spinner {
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: spin 1s infinite linear alternate;
}
@keyframes spin {
    0%   { box-shadow: 20px 0 #000, -20px 0 #0002; background: #000; }
    33%  { box-shadow: 20px 0 #000, -20px 0 #0002; background: #0002; }
    66%  { box-shadow: 20px 0 #0002, -20px 0 #000; background: #0002; }
    100% { box-shadow: 20px 0 #0002, -20px 0 #000; background: #000; }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazir";
}
.chat-container {
width: 100%;
height: 600px;
background-color: #FFFFFF;
border-radius: 15px;
display: flex
;
flex-direction: column;
justify-content: space-between;
padding: 20px;
margin-top: 100px;
}
.chat-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  padding-bottom: 100px;
}
.message {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: fit-content;
    max-width: 80%;
    font-size: 14px;
    white-space: pre-line;

}
.user-message {
    background-color: #3B73FB;
    border-bottom-right-radius: 0px;
    color: #fff;
}
.ai-message {
    background-color: #eff2f4;
    border-bottom-left-radius: 0px;
}
.footer {
  
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: #fff;
}
input[type="text"],  input[type="text"]:focus-visible{
    width: 100%;
    padding: 10px;
    margin-left: 10px;
    border-radius: 10px;
    border: 0px solid #ccc !important;
    background-color: #eff2f4 !important;
    outline: none;
}
#send-btn,  #send-btn:focus{
    background-color: #222222 !important;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
}
#install-btn,  #install-btn:focus{
    background-color: #222222 !important;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
}
.logo{
    width: 45px;
    height: 45px;
}
.chat-info {
    background-color: #eff2f4;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    margin: 20px;
    justify-content: space-between;
}
.right {
  display: flex;
  align-items: center;
}
.title{
    font-size: 19px;
    font-weight: 800;
}
.texts{
    padding-right: 10px
}
.explanation{
    font-size: 12px;
}
.ai-messages{
    display: flex;
    justify-content: left;
}
.a1 {
    background-color: #fff;
    top: 0;
    position: fixed;
    right: 0;
    left: 0;
}
.g_id_signin{
    text-align: left;
}
.input-text{
    display: flex;
    width: 100%;
}
.copyright{
    font-size: 12px;
    text-align: center;
    padding-top: 10px;
}
.user-icon {
    width: 40px;
    height: 40px;
    background-color: #3B73FB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    padding: 10px;
}

@keyframes fadeScaleIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 20px;
  display: none;
  z-index: 9999;
  font-size: 14px;
  text-align: center;
  animation: fadeScaleIn 0.3s ease forwards;
}

.subscribe-btn {
  background: linear-gradient(135deg, #3B73FB, #5D9EFF);
  border: none;
  padding: 12px 20px;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.subscribe-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 115, 251, 0.3);
}

.overlay-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 998;
}
#emailPopup{
  display: none;
}
.ai-message {
  background-color: #eee;
  align-self: flex-start;
  margin-right: auto;
}
@media (min-width: 729px) {
  .ads-w {
    display: flex;
    justify-content: center;
  }
  .ads-m {
    display: none;
  }
}
@media (max-width: 729px) {
  .ads-m {
    display: flex;
    justify-content: center;
  }
  .ads-w {
    display: none;
  }
}