body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}

#chatContainer {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 15px;
    background: #ffffff;
    overflow: hidden;
    flex-direction: column;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

#messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: messageFadeIn 0.4s forwards;
}

.user {
    background-color: #c7dbf1;
    align-self: flex-end;
    border-radius: 20px 20px 0 20px;
}

.assistant {
    background-color: #efefef;
    align-self: flex-start;
    border-radius: 20px 20px 20px 0;
}

#inputContainer {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
}

#inputField {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

#inputField:hover {
    background-color: #f7f7f7;
}

#sendButton {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#sendButton:hover {
    background-color: rgb(0, 86, 179);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.introContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

h1 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#img_doge {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#img_doge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

label {
    font-size: 18px;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}

input[type="date"],
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

input[type="date"]:hover,
select:hover {
    background-color: #f7f7f7;
    border-color: #007bff;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    animation: fadeIn 1.5s ease-in-out; /* Smooth fade-in effect */
    background-color: #f2f2f2; /* Slight gray background for loading state */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 20px;
    }
    #img_doge {
        width: 180px;
        transition: all 0.3s ease-in-out;
    }
    button {
        font-size: 14px;
        padding: 10px 20px;
    }
}
.kakao-ad{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 200px;
}