* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat container styles */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px 15vw 12px 15vw;
    background: white;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 980px) {
    .chat-container {
        padding: 12px;
    }
}

.chat-container .hello-container {
    position: absolute;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.2rem;
}

.hello-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hello-message {
    margin-bottom: 78px;
}

.hello-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
}

.hello-action {
    align-content: center;
    align-items: center;
    width: 20vh;
    margin: 24px;
}

@media screen and (max-width: 736px) {
    .hello-message {
        margin-bottom: 48px;
    }

    .hello-actions {
        flex-direction: column;
        align-items: center;
    }
}

.message-content:last-of-type {
    min-height: 70dvh;
}

.message-content-user,
.message-content-assistant {
    padding: 10px 15px;
    border-radius: 15px;
    margin: 10px 0;
}

.message-content-user {
    max-width: 70%;
    background: #21b2a6;
    align-self: flex-end;
}

.message-content-assistant {
    width: 100%;
    /* background: #474e56; */
    align-self: flex-start;
}

.message-content-assistant p:last-of-type {
    /* Remove margin-bottom from the last p of message-bot */
    margin-bottom: 0;
}

.input-container {
    display: flex;
    padding: 32px 8px 8px 8px;
    background: #fff;
    justify-content: center;
}

.input-container > *:not(:last-child) {
    margin-right: 8px;
}

.input-container select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.input-container textarea {
    max-width: 500px;
    height: 50px;
    resize: none;
    font-size: 1rem;
    border-radius: 3px;
    border: 0;
    box-shadow: inset 0 0 0 2px #fff;
}

.input-container button {
    padding: 0px;
    width: 60px;
    height: 50px;
    cursor: pointer;
}

.input-container button img {
    width: 24px;
    vertical-align: middle;
}

.input-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media screen and (max-width: 736px) {
    .input-container {
        padding: 32px 8px 8px 8px;
    }

    .input-container > *:not(:last-child) {
        margin-right: 8px;
    }

    .input-container textarea {
        font-size: 1rem;
    }

    .input-container button {
        width: 76px;
    }
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
}

.iframe-modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}
