@font-face {
    font-family: 'geomanistregular';
    src: url('assets/fonts/geomanist-regular-webfont.woff2') format('woff2'),
         url('assets/fonts/geomanist-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #D1001F;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.chat-icon img {
    width: 30px;
    height: 30px;
}

.chat-icon:hover {
    background-color: #a8001a;
}

.chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px; /* Adjusted width */
    height: 500px; /* Adjusted height */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.chatbot {
    display: flex;
    flex-direction: column;
    height: 100%; /* Adjust to fill the new height */
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    max-height: calc(100% - 60px); /* Adjust based on the new height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message {
    margin-bottom: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    color: #ffffff;
    background-color: #dc3545;
    padding: 10px;
    border-radius: 10px;
    align-self: flex-start;
    width: auto;
}

.user-message {
    color: #333333;
    background-color: #e9e9eb;
    padding: 10px;
    border-radius: 10px;
    align-self: flex-end;
    width: auto;
}

.user-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
}

#userMessage {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

#sendButton {
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#sendButton:disabled {
    background-color: #cccccc;
}

.chat-window .loading-text {
    animation: fadeOut 1s forwards;
}

.chat-window .welcome-text {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.chatbot-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.chatbot-buttons button {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 80%;
    text-align: center;
}

.chatbot-buttons button:hover {
    background-color: #a8001a;
}

.chatbot-buttons button:active {
    background-color: #a8001a;
}

.bot-message ul {
    padding-left: 20px;
    margin: 10px 0;
}

.bot-message li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.bot-message a {
    color: #007bff;
    text-decoration: none;
}

.bot-message a:hover {
    text-decoration: underline;
}

.bot-message b {
    display: block;
    margin-top: 10px;
}

.bot-message i {
    display: block;
    margin-top: 10px;
    font-style: italic;
}