/* Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f2f2f2;
}

/* .intro-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 600px;
    margin: 2rem auto;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}
.intro-container > div{
    width: 100%;
}
.intro-container img{
    width: 50%;
    min-width: 300px;

}
 */


 /* Chat Styles */
.chat-container {
     max-width: 600px;
     margin: 2rem auto;
     background-color: #fff;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
     border-radius: 5px;
    }

/* 로딩아이콘 */
#loadingScreen {
    display: none;
    width: 90%;
    margin: 0 auto;
}

h1, h2 {
    background-color: #4caf50;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.chat-window {
    padding: 1rem;
    height: 530px;
    overflow-y: scroll;
    scroll-behavior: smooth; /* adds smooth scrolling animation */
}

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    max-width: 100%;
    border-radius: 10px;
    padding: 0.5rem;
}

.chat-message:nth-child(2n){
    text-align: right;
    color: blue;

}

.received {
    align-self: flex-end;
    background-color: #ddd;
}

.message-content {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.message-time {
    font-size: 0.8rem;
    color: #aaa;
}

.chat-form {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #eee;
}

input[type="text"] {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
}

button[type="submit"] {
    border: none;
    background-color: #4caf50;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"][disabled] {
    background-color: #193b1b;
    cursor: wait;
}


@media screen and (max-width: 480px) {
.chat-message {
max-width: 60%;
}
}

@media screen and (max-width: 360px) {
.chat-message {
max-width: 50%;
}
}