@font-face {
    font-family: 'SCDream';
    src: url('fonts/SCDream3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'SCDream', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column; /* 수직 정렬 */
}

#chat-container {
    display: flex;
    width: 85%;
    height: 70%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#delete-button {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}

#delete-button:hover {
    background-color: #c82333;
}

#chat-box {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    overflow-y: auto;
    height: 70%;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px; /* 메시지 간의 간격 추가 */
}

.message {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}

.message.user {
    background-color: #d0e6ff;
    color: rgb(0, 0, 0);
    align-self: flex-end;
    text-align: right;
}

.message.assistant {
    background-color: #ffffff;
    color: black;
    align-self: flex-start;
    text-align: left;
}

#user-input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 22px); /* 버튼 옆에 위치하기 위해 조정 */
    font-size: 14px;
}

#send-btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

#send-btn:hover {
    background-color: #0056b3;
}

#menu-container {
    position: absolute;
    top: 10px;
    right: 3%;
}

#menu-button {
    width: 10vw;
    max-width: 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px; /* 너비를 조절하기 위해 양쪽에 패딩 추가 */
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#menu-button .icon {
    margin-left: 5px;
    margin-right: 5px;
}

#menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px; /* 메뉴의 최소 너비 설정 */
}

#menu ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

#menu ul li {
    margin-bottom: 10px;
}

#menu ul li:last-child {
    margin-bottom: 0;
}

#menu ul li button {
    width: 100%; /* 버튼의 너비를 100%로 설정 */
    padding: 10px;
    background-color: #4178df;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

#menu #delete-button {
    background-color: #dc3545;
}

#menu #delete-button:hover{
    background-color: #c82333;
}

#menu ul li button:hover {
    background-color: rgb(28, 97, 153);
}

#loader {
    font-size: 25px;
    text-align: center;
    margin-bottom: 10px;
}

#kakao-320x100-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 320px;
    min-height: 100px;
}

/* Display 설정 */
#delete-button {
    display: flex;
}
#chat-container {
    display: flex;
}
