@import url("https://fonts.googleapis.com/css?family=Raleway|Ubuntu&display=swap");

body {
    background: #E8EBF5;
    padding: 0;
    margin: 0;
    font-family: Raleway;
}

.chat-box {
    height: 90%;
    width: 400px;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 15px;
    background: #fff;
    border-radius: 15px;
    visibility: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 15;
}

.chat-box-header {
    height: 8%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    font-size: 14px;
    padding: 0.5em 0;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    background: #2C50EF;
    color: white;
}

.chat-box-header h3 {
    font-family: Ubuntu;
    font-weight: 400;
    margin-left: 25px;
}

.chat-box-header p {
    margin-left: auto;
    margin-right: 16px;
    cursor: pointer;
}

.chat-box-body {
    height: 75%;
    background: #f8f8f8;
    overflow-y: scroll;
    padding: 12px;
}

.chat-box-body-send, .chat-box-body-receive {
    width: 250px;
    padding: 10px 20px;
    border-radius: 5px;
    background: white;
    margin-bottom: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
}

.chat-box-body-send {
    float: right;
}

.chat-box-body-receive {
    float: left;
}

.chat-box-body-send p, .chat-box-body-receive p {
    margin: 0;
    color: #444;
    font-size: 14px;
}

.chat-box-body-send span, .chat-box-body-receive span {
    float: right;
    color: #777;
    font-size: 10px;
}

.chat-box-footer {
    display: flex;
    padding: 10px;
}

.chat-box-footer button {
    border: none;
    background: white;
    cursor: pointer;
}

.chat-box-footer input {
    padding: 10px;
    border: none;
    border-radius: 50px;
    background: whitesmoke;
    margin: 0 10px;
    width: 280px;
    font-family: Ubuntu;
    font-weight: 600;
    color: #444;
}

.chat-box-footer .send {
    cursor: pointer;
    transform: translate(0px, 20px);
}

.chat-button {
    padding: 25px 16px;
    background: #2C50EF;
    width: 120px;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 15px;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.chat-button span::before {
    content: '';
    height: 15px;
    width: 15px;
    background: #47cf73;
    position: absolute;
    transform: translate(0, -7px);
    border-radius: 15px;
}

.chat-button span::after {
    content: "Message Us";
    font-size: 14px;
    color: white;
    position: absolute;
    left: 50px;
    top: 18px;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;
}

.modal-close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}

.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
    z-index: 30;
}

@media (max-width: 450px) {
    .chat-box {
        width: 100%;
    }
}

