

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    background: #fff5f7;
    font-family: 'Comic Neue', cursive;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 3px 3px 0px #c8e6c9;
    border: 2px solid #ffc8dd;
}
h1 {
    color: #ff4d82;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}
button {
    background: white;
    border: 2px solid #ffc8dd;
    color: #ff4d82;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
    background: #fffafb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
button:active {
    transform: translateY(0);
}
.output-area {
    min-height: 100px;
    background: #fffafb;
    border-radius: 10px;
    border: 2px dashed #ffc8dd;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.message {
    font-size: 20px;
    color: #ff4d82;
    font-weight: bold;
    line-height: 1.5;
}
.waiting {
    color: #999;
    font-style: italic;
}
.thinking {
    display: inline-block;
    font-size: 24px;
    color: #ff4d82;
}
.thinking::after {
    content: '';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.response {
    animation: slideUp 0.5s ease;
}
@media (max-width: 650px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .message {
        font-size: 18px;
    }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffc8dd;
    color: #ff4d82;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #fffafb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

::selection {
    background: #ff4d82;
    color: white;
}

::-moz-selection {
    background: #ff4d82;
    color: white;
}