@font-face {
    font-family:'iransans' ;
    src: url('iransans.ttf');
}


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'iransans', sans-serif;
}

body {
    font-family: 'iransans', sans-serif;
    background-color: #f0f2f5;
    height: 90vh;
    background-image: url('./Frame 194.jpg');
    background-size: cover;
    padding: 0px 10px;
    padding-bottom: 70px;
        background-color: #2a3b83;
    
}

.chat-container {
    width: 90%;
    min-width: 300px;
    max-width: 480px;
    height: 80vh;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 92%;
    
}

.chat-header {
    background-color: #4f4ffa;
    color: white;
    padding: 15px;
    text-align: center;
}

.chat-messages {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;   
    /*border-bottom: 1px solid #ddd;*/
    direction: rtl;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 75%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
}

.user-message {
    background-color: #cef6d1;
    color: #003d36;
    margin-left: auto;
    border-top-right-radius: 0;
}

.bot-message {
    background-color: #e0e0e0;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

/* From Uiverse.io by coslac */ 
/* From Uiverse.io by Smit-Prajapati */
.chat-input-container {
    width: 70%;
    display: fixed;
    background: white;
    border-radius: 1rem;
    background: #253C88;
    border: 1px solid white;
    padding: 0;
    gap: 0.3rem;
    top: 120px;
    right: 2px;
  }
  
  .chat-input-container input::placeholder {
    font-size: 16px;
    color:#bbb;
    
  } 

  .chat-input-container input {
    border-radius: 18px;
    background: #253C88;
    width: 100%;
    flex-basis: 100%;
    padding: 10px;
    border: none; 
    color: white;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
  }
  
  .chat-input-container input:focus { 
    outline: none; 
        box-shadow: 0px 0px 11px 0px #a3b0e9;
  }
  
  @media (max-width: 500px) {
    .chat-input-container {
      flex-direction: column;
    }
  
    .chat-input-container input {  
    }
  }

.chat-input-container input:focus {
    border-color: #000000;
}

.chat-input-container button {
    background-color: #4f4ffa;
    color: white;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.chat-input-container button:hover {
    background-color: #253C88;
}

.header {
    margin-top: 10px;
    width: 100%;
    height: auto;
    border: 1px solid #ffffff;
    padding: 8px 26px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
}

.input-request {
    display: flex;
    position: fixed;
    bottom: 20px;
    width: 95%;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
/* From Uiverse.io by adamgiebl */ 
button {
    font-family: inherit;
    direction: ltr;
    font-size: 16px;
    background: white;
    color: #253C88;
    padding: 0.7em 1em;
    padding-left: 0.9em;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
  }
  
  button span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
  }
  
  button svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
  }
  
  button:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate;
  }
  
  button:hover svg {
    transform: translateX(1.3em) rotate(-130deg) scale(1.1);
  }
  
  button:hover span {
    transform: translateX(5em);
  }
  
  button:active {
    transform: scale(0.95);
  }

  .chat-container-center {
    height: 100%;
  }
  
  @keyframes fly-1 {
    from {
      transform: translateY(0.1em);
    }
  
    to {
      transform: translateY(-0.1em);
    }
  }


  @media only screen and (min-width: 600px) {
    body {
        /*background-image: url(./Frame\ 195.jpg);*/
        /*background-size: cover;*/
    }
    .chat-container-center {
        display: flex;
        justify-content: center;
        height: 95% ;
    }
    .chat-box {
        height: 87%;
        width: 65%;
    }
    .input-request-full {
        display: flex;
        width: 65%;
        justify-content: center;
        align-items: center;
    }
    .chat-input-container {
        width: 60%;
  }
}


  .typing-status {
    display: flex;
    align-items: center;
    margin: 10px;
    font-size: 14px;
    color: gray;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(186, 186, 186, 0.2);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

