:root {
    --chat-primary-color: #1e1e2e;
    --chat-secondary-color: #353812;
    --text-color-fourth: #ff5a5f;
}

.chat-window {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    background-color: var(--chat-primary-color);
    border: solid var(--chat-secondary-color);
}

.chat-messages {
    display: grid;
    align-content: start;
    row-gap: 16px;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 32px;
    overflow-y: auto;
}

.user-message {
    background-color: var(--text-color-third);
    color: var(--secondary-color);
    justify-self: end;
    margin-right: 16px;

    border-radius: 18px;
    padding: 8px;
    max-width: 70%;
}

.assistant-message {
    background-color: #7b6b6b;
    color: var(--text-color-fourth);
    justify-self: start;
    margin-left: 16px;

    border-radius: 18px;
    padding: 8px;
    max-width: 70%;
}

.message-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    background-color: var(--primary-color);
    padding: 12px;
}

.input-display {
    flex: 1;
    display: flex;
    border: 1px solid var(--chat-secondary-color);
    border-radius: 16px;
    background-color: var(--chat-primary-color);
    padding: 12px;
}

.user-input {
    flex: 1;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    background-color: transparent;
    color: var(--text-color-primary);
}

.user-input:focus {
    outline: none;
}

.send-button {
    font-size: 1rem;
    font-family: inherit;
    border: solid var(--chat-secondary-color);
    border-radius: 16px;
    background-color: var(--text-color-third);
    color: var(--secondary-color);
    padding: 12px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.chat-thinking {
    position: sticky;
    bottom: 0;
    justify-self: start;
    background-color: var(--chat-secondary-color);
    padding: 4px;
    animation: blink 1.5s ease-in-out infinite;
}

.chat-status {
    position: sticky;
    bottom: 0;
    justify-self: start;
    background-color: var(--chat-secondary-color);
    color: var(--text-color-fourth);
    padding: 4px;
}

@media (max-width: 1199px) {
    main {
        padding: 0px 6px 6px 6px;
    }
}

@media (min-width: 1200px) {
    main {
        min-width: 1200px;
    }
}