@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    font-family: Nunito;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #373737;
    min-height: 100vh;
    margin: 0;
    background: url('https://thefacultyapp.com/assets/images/svg/bg-general-blue.jpg') center center no-repeat;
    background-size: cover;
    overflow-y: auto;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 90%;
    max-width: 90%;
    z-index: 1;
    position: relative;
}

#header-logo {
    display: flex;
    width: 90%;
    margin: 16px auto;
}

#menu-logo {
    height: 28px;
    max-height: 28px;
    width: auto;
    margin-right: 10px;
    border-right: 1.5px solid #37373773;
    padding-right: 12px;
}

#chat-title {
    font-size: 20px;
    font-weight: 700;
    color: #373737;
    text-align: center;
}

#info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.info-box {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 16px;
    background-color: #F9F9F9;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
    box-sizing: border-box;
}

#chat-container {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    height: 50vh;
    width: 90%;
    max-width: 90%;
    border-radius: 16px;
    background: #fff;
    background-size: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 2;
    position: relative;
    margin-top: 10px;
    margin-bottom: 24px;
}

#chat-box {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

#user-input-container {
    display: flex;
    border-top: 1px solid #ccc;
    width: 80%;
    margin: auto;
    margin-bottom: 24px;
    border: 1px solid #DDDDDD;
    border-radius: 24px;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 0;
    outline: none;
    font-size: 16px;
    background: transparent;
}

#send-button,
#close-button {
    padding: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 14px;
    font-weight: bold;
    background: transparent;
}

#chat-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
}

#chat-reset button {
    text-decoration: underline;
    color: #296D9F;
}


.user-message,
.assistant-message {
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 10px;
    max-width: 70%;
    white-space: pre-wrap;
}

.user-message {
    align-self: flex-end;
    background-color: #05538C33;
}

.assistant-message {
    position: relative;
    align-self: flex-start;
    background-color: #A3DEFF66;
    margin-left: 35px;
}

.assistant-message::before {
    content: '';
    width: 32px;
    height: 32px;
    position: absolute;
    left: -36px;
    bottom: 0;
    background: url(./static/images/tf-icon.svg) bottom no-repeat;
}

.assistant-message.loading {
    background-color: transparent;
    font-style: italic;
}

@media (max-width: 600px) {
    #chat-container {
        min-height: 60vh;
        height: 50vh;
        width: 90vw;
    }

    #menu-logo {
        width: 120px;
    }

    #chat-title {
        font-size: 18px;
    }

    #user-input {
        font-size: 14px;
    }

    #send-button,
    #close-button {
        font-size: 12px;
    }

    .user-message,
    .assistant-message {
        max-width: 85%;
    }

    #chat-box {
        padding: 16px;
    }
}

@keyframes ellipsis {
    0% {
        content: '.';
    }

    25% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '....';
    }
}

.loading::after {
    content: '';
    animation: ellipsis steps(1, end) 1s infinite;
}

#info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}