body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

h1 {
    font-family: 'Creepster', cursive; /* 할로윈 분위기의 특수 폰트 */
    color: #FF7518; /* 할로윈 오렌지 색상 */
    text-shadow: 3px 3px 0 #000000, 6px 6px 0 #FF0000; /* 검정과 붉은색 그림자로 음산한 느낌 추가 */
    background-color: #222; /* 어두운 배경으로 대비를 높여줌 */
    padding: 10px;
    border: 2px solid #FF7518; /* 오렌지색 테두리 */
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: spooky-glow 1.5s infinite alternate; /* 깜빡이는 효과 */
}

/* 깜빡이는 효과 애니메이션 */
@keyframes spooky-glow {
    0% {
        text-shadow: 3px 3px 0 #000000, 6px 6px 0 #FF0000;
    }
    100% {
        text-shadow: 3px 3px 10px #FF7518, 6px 6px 10px #FF0000;
    }
}

#chat-container {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    background-color: #ffffff;
    max-width: 90%;
    margin: auto;
    overflow-y: auto;
    height: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.message {
    display: flex;
    align-items: center;
    margin: 15px 0; /* 메시지 간 간격을 넓힘 */
    padding: 10px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto; /* 오른쪽 정렬 */
}

.bot-message {
    background-color: #e2e2e2;
    color: #333;
    align-self: flex-start;
    margin-right: auto; /* 왼쪽 정렬 */
}

button {
    background-color: #ff8c00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff6f00;
}

#message-input {
    width: calc(100% - 120px);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

#intro img {
    width: 90%; /* 이미지 크기 조정 */
    height: auto; /* 비율 유지 */
}
