body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #fff;
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: 30px 0;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('bg.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.8;
}

.background-image:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.chat-container {
    background-color: rgba(0, 0, 0, 0.73);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    margin: 5% auto;
    position: relative;
    min-width: 360px;
}

.chat-content {
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 360px;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    min-height: 20px;
    align-content: center;
    flex-wrap: wrap;
}

.message {
    margin: 30px 0 10px;
    padding: 10px;
    border-radius: 20px;
    max-width: 80%;
    width: 100%;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    position: relative;
}

.message.me {
    align-self: flex-end;
    background-color: #8d6aff;
    color: #fff;
}

.message.bot {
    width: calc(100% - 20px);
    max-width: 100%;
    align-self: flex-start;
    background-color: #fff;
    color: #333;
}

textarea {
    padding: 10px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    width: calc(100% - 70px);
    margin-right: 10px;
    resize: none;
    overflow: hidden;
}

button {
    padding: 10px;
    background-color: #8d6aff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    align-self: flex-end;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: #4b2f91;
}

button:disabled,
button[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

.message.me:before {
    content: "";
    position: absolute;
    border-width: 10px 10px 10px 0;
    border-color: transparent #8d6aff transparent transparent;
    top: 10px;
    left: -10px;
}

.message.bot:before {
    content: "";
    position: absolute;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
    top: 10px;
    right: -10px;
}

h1 {
    font-size: 28px;
    text-shadow: 2px 2px #000;
    text-align: center;
    margin-bottom: 0;
}

p {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

#introduction {
    font-size: 18px;
    text-align: center;
    margin: 3px 0;
}

#loading {
    padding-bottom: 10px;
    display: none;
}

#chat {
    display: flex;
    flex-direction: column;
}

.info-buttons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.info-buttons button {
    min-width: 100px;
    background-color: #8d6aff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    flex: 1 1 auto;
}

.info-buttons button:hover {
    color: #000;
}

@media (max-width: 768px) {
    .info-buttons {
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .info-buttons button {
        flex: 1 0 48%;
        margin-bottom: 2px;
    }
}

#kakao-ad {
    min-width: 320px;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin: 25px 0 5px;
}

#language-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#language-toggle button {
    width: auto;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
    flex: 1 1 auto;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #8d6aff;
    color: #fff;
    border-radius: 10px;
}

#mainButtons,
#aiServiceButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.link-button,
.service-button {
    min-width: 120px;
    background-color: #8d6aff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    flex: 1 1 auto;
}

.link-button:hover,
.service-button:hover {
    background-color: #4b2f91;
    color: #000;
}

@media (max-width: 768px) {
    .link-button,
    .service-button {
        flex: 1 0 48%;
        margin-bottom: 10px;
    }
}

#mini-board {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 10px #4b2f91;
    width: calc(100% - 4px);
    margin-left: auto;
    margin-right: auto;
}

#mini-board h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #e0e0e0;
    position: relative;
}

#mini-board #toggle-btn {
    background-color: #8d6aff;
    color: #fff;
    padding: 4px 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    outline: none;
    font-size: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#mini-board #toggle-btn:hover {
    background-color: #4b2f91;
}

.accordion-content {
    display: none;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
}

.accordion-content li {
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.accordion-content a {
    color: #4b2f91;
    text-decoration: none;
    transition: color 0.3s;
}

.accordion-content a:hover {
    color: #8d6aff;
}

.accordion-content li:nth-child(odd) {
    background-color: #f7f7f7;
}

.accordion-content li:nth-child(even) {
    background-color: #cccccc;
}

/* 시튜버 버튼들에 대한 스타일 */
#youtuberButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#youtuberButtons button {
    min-width: 120px;
    background-color: #8d6aff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    flex: 1 1 auto;
}

#youtuberButtons button:hover {
    background-color: #4b2f91;
    color: #000;
}

@media (max-width: 768px) {
    #youtuberButtons button {
        flex: 1 0 48%;
        margin-bottom: 10px;
    }
}