body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f5f5f5;
}

.chat-container {
    width: 100%;
    max-width: inherit;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-wrapper {
    flex: 1;
    padding: 10px 10px 35px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.5); /* translucent white */
    backdrop-filter: blur(10px); /* frosted glass blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.chat-wrapper::-webkit-scrollbar {
    display: none;
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-bubble {
    align-self: flex-end;
    background-color: rgba(0, 123, 255, 1);
    color: white;
    border-bottom-right-radius: 0;

    animation: growIn 0.3s ease-out;
    transform-origin: bottom right;
}

@keyframes growIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bot-bubble {
    align-self: flex-start;
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 0;
    animation: growIn 0.3s ease-out;
    transform-origin: bottom left;
}

.bot-bubble::after {
    content: '';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

.finished::after {
    content: none;
    animation: none;
}

.bot-container {
    width: 28vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (max-width: 600px) {
    .bot-container {
        width: 90%;
    }
}

form {
    display: flex;
    gap: 1rem;
}

.form-container {
    position: relative;
    top: -1.5rem;
    width: 90%;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 16px;
    outline: none;
    border-radius: 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}

button[type="submit"] {
    padding: 0 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}

button[disabled] {
    background-color: #aaa;
    cursor: not-allowed;
}

canvas {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.menu-container p{
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    color: black;
}

.circle {
    z-index: 1;
    background-color: white;
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}

#logo {
    position: relative;
    z-index: 2;
}
