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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #191414;
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Chat Window */
.chat_window {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #121212;
    overflow: hidden;
}

.top_menu {
    background-color: #121212;
    padding: 15px 0;
    text-align: center;
}

.top_menu .title {
    color: #1db954;
    font-size: 24px;
    font-weight: bold;
}

/* Messages */
.messages {
    list-style: none;
    padding: 20px 10px 0;
    margin: 0;
    height: 300px;
    overflow-y: auto;
}

.message {
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    opacity: 0;
}

.message.appeared {
    opacity: 1;
}

.message .avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
}

.text_wrapper {
    display: inline-block;
    padding: 15px;
    border-radius: 6px;
    min-width: 150px;
    position: relative;
    background-color: #282828;
}

.timestamp {
    font-size: 12px;
    font-weight: 300;
    text-align: right;
    margin-top: 5px;
    color: #b3b3b3;
}

/* User Message */
.message.right .avatar {
    float: right;
    background-image: url('./img/guy.jpg');
}

.message.right .text_wrapper {
    background-color: #1c1c1c;
    margin-right: 20px;
    float: right;
}

/* Bot Message */
.message.left .avatar {
    float: left;
    background-image: url('./img/IwaCode.png');
}

.message.left .text_wrapper {
    background-color: #1c1c1c;
    margin-left: 20px;
}

/* Input Area */
.bottom_wrapper {
    background-color: #121212;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

#msg_input {
    flex-grow: 1;
    outline: none;
    padding: 12px;
    border: none;
    border-radius: 25px;
    margin-right: 15px;
    background-color: #535353;
    color: #ffffff;
}

#send_button {
    background-color: #1db954;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#send_button:hover {
    background-color: #1ed760;
}

/* FAQ Section */
.panel-group {
    margin: 20px;
}

.panel-heading [data-toggle='collapse']:after {
    font-family: 'FontAwesome';
    content: '\f054';
    float: right;
    font-size: 18px;
    line-height: 22px;
    transition: all 0.2s ease;
    transform: rotate(-90deg);
}

.panel-heading [data-toggle='collapse'].collapsed:after {
    transform: rotate(90deg);
}

/* Media Queries for Responsiveness */

/* Tablets and larger */
@media screen and (min-width: 768px) {
    .chat_window {
        width: 80%;
    }
}

/* Desktops and larger */
@media screen and (min-width: 1024px) {
    .chat_window {
        width: 70%;
    }
}
