#chat-container {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

#input-area {
    display: flex;
    padding: 10px;
}

#input-box {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#send-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#send-btn:hover {
    background-color: #0056b3;
}

/* Styl wiadomości */
.message {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e9e9e9;
    border-radius: 4px;
}

.message.user-message {
    background-color: #007bff;
    color: white;
    text-align: right;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #e9e9e9;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 23px;
}

.message.user-message {
    background-color: #007bff;
    color: white;
    text-align: left;
    margin-left: auto;
}

/* Animacja dla dymków wiadomości */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

.typing-indicator {
    display: inline-block;
    justify-content: center;
    align-items: center;
}

.typing-indicator span {
    display: inline-block;
    background-color: black; /* Możesz zmienić kolor */
    margin: 0 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    40% { opacity: 0.2; }
    100% { opacity: 0.2; }
}

.isdisabled {
    opacity: 0.15;
    pointer-events: none;
}

.genderSelect {
    background: #3884cc;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 10px;
    margin-right: 10px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease-in-out all;
}

.saveAge {
    padding: 5px 19px;
    background: #289628;
    display: inline-block;
    border-radius: 9px;
    margin-right: 10px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease-in-out all;
}

.saveAge:hover {
    background: #1c771c;
}

input#age {
    padding: 7px 19px;
    border-radius: 9px;
    border: 1px solid gray;
    margin-right: 5px;
    font-size: 15px;
    vertical-align: top;
}
