@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --primary-color: #FF69B4;
    --secondary-color: #FFD700;
    --background-color: #F0F8FF;
    --text-color: #333;
    --card-background: #FFF;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px var(--secondary-color);
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.result {
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.result h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2em;
}

.result h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    font-size: 1.5em;
}

.result ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.result li {
    background-color: var(--background-color);
    margin: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result > * {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.result > *:nth-child(1) {
    animation-delay: 0.1s;
}

.result > *:nth-child(2) {
    animation-delay: 0.2s;
}

.result > *:nth-child(3) {
    animation-delay: 0.3s;
}

.result > *:nth-child(4) {
    animation-delay: 0.4s;
}

.result > *:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .result {
        padding: 20px;
    }

    .result h2 {
        font-size: 1.8em;
    }

    .result h3 {
        font-size: 1.4em;
    }
}

.language-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.language-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}