@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');


body {
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #2b2e4a, #343a55, #4a557a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f0f0f0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



#loader {
    font-size: 25px;
    text-align: center;
}

#chat-wrapper {
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffb7c5;
    text-shadow: 2px 2px 4px #000;
}

#chat-container {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    height: 500px;
}

#messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: #f0f0f0;
    font-size: 1em;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 75%;
    word-wrap: break-word;
    text-align: left; /* 텍스트 좌측 정렬 */
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.message.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#input-container {
    display: flex;
    align-items: center;
}

#user-input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 1em;
    color: #333;
    background-color: #f0f0f0;
}

#send-btn {
    padding: 10px 15px;
    border: none;
    background-color: #4a90e2;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

#send-btn:hover {
    background-color: #357abd;
}

#send-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
}


.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-container img{
    width: 50%;
    height:50%;
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}