/* styles.css */

body {
    background-color: #36393f;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;

    background-image: url('spongebob.png');
    background-repeat: repeat;
    background-size: auto; /* Adjust size as needed */
}

#chat-container {
    width: 80%;
    max-width: 1000px;
    margin: 50px auto;
    background-color: #2f3136;
    border-radius: 8px;
    padding: 20px;
    color: #dcddde;
    position: relative;
}

#messages {
    max-height: 9000px;
    overflow-y: auto;
    padding-right: 10px;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7289da;
    margin-right: 10px;
    flex-shrink: 0;
}

.content {
    background-color: transparent;
}

.username {
    font-weight: 600;
    color: #fff;
}

.text {
    margin-top: 5px;
    line-height: 1.4;
}

#next-button {
    background-color: #7289da;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    right: 20px;
    bottom: 20px;
}

#next-button:hover {
    background-color: #5b6eae;
}

.typing {
    border-right: 3px solid #dcddde;
    animation: typing 0.5s steps(30) alternate, blink-caret 0.5s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

.image-message {
    margin-top: 5px;
}

.image-message img {
    max-width: 100%;
    border-radius: 5px;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #dcddde; }
}