* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #a8a8a8;
}

.chat-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.fortune-teller {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

.fortune-teller-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 217, 61, 0.5));
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 1.5s ease-in-out infinite;
}

.star1 { top: 20%; left: 30%; animation-delay: 0s; }
.star2 { top: 40%; left: 70%; animation-delay: 0.3s; }
.star3 { top: 60%; left: 20%; animation-delay: 0.6s; }
.star4 { top: 30%; left: 80%; animation-delay: 0.9s; }
.star5 { top: 70%; left: 50%; animation-delay: 1.2s; }

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.user-message, .assistant-message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #1a1a2e;
    margin-left: auto;
}

.assistant-message {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
}

.input-section {
    display: flex;
    gap: 1rem;
}

#message-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#message-input::placeholder {
    color: #a8a8a8;
}

#send-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: #a8a8a8;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .chat-section {
        padding: 1rem;
    }

    .fortune-teller {
        width: 150px;
        height: 150px;
    }

    .chat-container {
        height: 300px;
    }

    .user-message, .assistant-message {
        max-width: 90%;
    }
}

.initial-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd93d;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.3);
}

#start-chat {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.chat-interface {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    position: relative;
    min-width: 50px;
    min-height: 20px;
}

.loading::after {
    content: '...';
    position: absolute;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
} 