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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 100%;
    background: #F1F1F1;
}

.chatbox__question {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.chatbox__question button {
  border-radius: 20px;
  background-color: black;
  color: white;
  text-align: center;
  font-size: 17px;
  font-weight: 200;
  padding: 10px 20px;
  margin: 0 10px;
}

.reset {
  border-radius: 20px;
  background-color: black;
  color: white;
  text-align: center;
  font-size: 17px;
  font-weight: 200;
  padding: 10px 20px;
  margin: 0 10px;
}

.userText {
    color: black;
    font-family: 'Nunito', sans-serif;
    font-weight: 200;

    font-size: 17px;
    text-align: right;
    line-height: 30px;
}

.userText span {
    background-color: #000000;
    color: white;
    padding: 10px;
    border-radius: 2px;
}

.botText {
    color: black;
    font-family: 'Nunito', sans-serif;
    font-weight: 200;
    font-size: 17px;
    text-align: left;
    line-height: 30px;
}
.botText span {
    background-color: #E0E0E0;
    padding: 10px;
    border-radius: 2px;
}

*, html {
    --primaryGradient: linear-gradient(93.12deg, #000000 0.52%, #353935 100%);
    --secondaryGradient: linear-gradient(268.91deg, #000000 -2.14%, #353935 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --primary: #581B98;
}

/* CHATBOX
=============== */
.chatbox1 {
    position: absolute;
}

.chatbox2 {
    position: absolute;
    margin-left: 470px;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    display: flex;
    flex-direction: column;
    background: #eee;
    width: 300px;
    height: 350px;
}
.chatbox__support2 {
    display: flex;
    flex-direction: column;
    background: #eee;
    width: 300px;
    height: 350px;
}

/* CONTENT ISOPEN */
.chatbox--active {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;
}

/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    padding: 6px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    margin-top: auto;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;
}

.messages__item {
    background: orange;
    max-width: 60.6%;
    width: fit-content;
}

.messages__item--operator {
    margin-left: auto;
}

.messages__item--visitor {
    margin-right: auto;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

.chatbox__support {
    background: #f9f9f9;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 50px;
    height: 550px;
    width: 1000px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* HEADER */
.chatbox__header {
    background: var(--primaryGradient);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--primaryBoxShadow);
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 1.2rem;
    color: white;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
}

.messages__item {
    margin-top: 10px;
    background: #E0E0E0;
    padding: 8px 12px;
    max-width: 70%;
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: white;
}

.paragraph{
    margin: 20px
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    background: var(--secondaryGradient);
    box-shadow: var(--secondaryBoxShadow);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: 20px;
}

.chatbox__footer input {
    width: 80%;
    border: none;
    padding: 10px 10px;
    border-radius: 30px;
    text-align: left;
}

.chatbox__send--footer {
    color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: white;
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

mark {
    background-color: yellow;
    color: black;
}

.loader {

    text-align: center;
    border: 16px solid #FFFFFF;
    border-top: 16px solid #780b12;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}
.loader {
    text-align: center;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 5px solid #FFFFFF;
    border-bottom-color: #000000;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

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