@media (min-width: 992px) {
    html, body {
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

html, body {
    -webkit-text-size-adjust: 100%;
    font-family: sans-serif;
    line-height: 1.15;
}

.chatbot-header {
    background-color: #0c71c3;
    min-height: 75px;
    /* padding: 0px !important; */
}

.chatbot-header__function {
    padding-right: 20px;
}

.chatbot-header__icon {
    max-height: 60px;
}

.chatbot-header__title {
    color: #ffff;
    font-weight: 600;
    padding-left: 20px;
}

.chatbot-header__text {
    color: #ffff;
    font-weight: 400;
    font-size: 1.2rem;
}

.chatbot-footer {
    background-color: #0c71c3;
    color: #ffff;
    font-weight: 400;
    font-size: 1.2rem;
    /* padding: 0px !important; */
}

#chatbotContainer {
    display: flex;
    flex-direction: column;
    background-color: #e5e5e5;
    height: calc(100vh - 5rem - 3.5rem);
    /* height: 100vh; */
}

#chatbotDialogue {
    flex-grow: 1;
    overflow-y: auto;
}

#chatbotInput{
    background-color: #e5e5e5;
    width: inherit;
    display: flex;
    min-height: 6rem;
}

/*
.chatbot-text {
    font-weight: 400;
    line-height: 1.2;
}

.animation-spinner {
    border: 4px solid #f3f3f3; Light grey
    border-top: 4px solid #3498db; Blue
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}

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


/* === textboxes === */
.dialogue {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
}

.dialogue__agent {
    margin-right: 40px; /* .dialogue-avatar: 80px */
}

.dialogue__user {
    justify-content: right;
    margin-left: 40px; /* .dialogue-avatar: 80px */
}

.dialogue-avatar {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
    align-self: end;
    margin-bottom: 0px;
    margin-left: 10px;
    margin-right: 10px;
}

.dialogue-avatar__image {
    border-radius: 50%;
    overflow: hidden;
    width: 60px;
    vertical-align: middle;
}

.dialogue-avatar__name {
    color: #0c71c3;
    font-weight: bold;
    padding-top: 5px;
}

.dialogue-avatar__user_image {
    background-color: #0c71c3;
}

.dialogue-text {
    padding: 16px;
    border-radius: 10px;
    position: relative;
    min-height: 60px;
    font-size: 20px;
}

.dialogue-text__agent {
    color: #fff !important;
    background-color: #0c71c3 !important;
}

.dialogue-text__user {
    color: #0c71c3 !important;
    background-color: #fff !important;
}

.dialogue__agent .dialogue-text:before {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-width: 18px;
    border-color: transparent #0c71c3 transparent transparent;
    border-style: dashed solid dashed dashed;
    position: absolute;
    bottom: min(35px, calc(25%));
    left: -35px;
}

.dialogue__user .dialogue-text:before {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-width: 18px;
    border-color: transparent transparent transparent #ffff ;
    border-style: dashed solid dashed dashed;
    position: absolute;
    bottom: min(35px, calc(25%));
    right: -35px;
}

.dialogue__agent .dialogue-text {
    margin-left: 15px;
    max-width: calc(100% - 80px);
    box-shadow: 0 0 1rem 1px rgba(0, 0, 0, .175);
}

.dialogue__user .dialogue-text {
    margin-right: 15px;
    max-width: calc(100% - 80px);
    box-shadow: 0 0 1rem 1px rgba(0, 0, 0, .175);
}


.animation-dot-bounce {
    display: flex;
    justify-content: center;
}
  
.animation-dot-bounce > div {
    width: 12px;
    height: 12px;
    margin: 8px 4px 2px 4px;
    border-radius: 50%;
    background-color: #ffff;
    opacity: 1;
    animation: animation-dot-bounce 0.7s infinite alternate;
}

@keyframes animation-dot-bounce {
    to {
      opacity: 0.1;
      transform: translateY(-12px);
    }
}
  
.animation-dot-bounce > div:nth-child(2) {
    animation-delay: 0.2s;
}
  
.animation-dot-bounce > div:nth-child(3) {
    animation-delay: 0.4s;
}


/* === input area === */
#askInput {
    font-size: 1.1rem;
}

#askBtn {
    width: 4rem;
    background-color:#0c71c3;
    color: #ffff;
    height: 100%;
}

#askBtn:hover {
    background-color:#095694;
    color: #ffff;
}
