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

:root {
  --background-color: #f0f2f5;
  --container-bg: #ffffff;
  --primary-text-color: #333;
  --secondary-text-color: #555;
  --accent-color: #4CAF50;
  --accent-color-dark: #45a049;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --glow-color: rgba(76, 175, 80, 0.5);
  --pattern-color: #e9f5e9;
}

[data-theme="dark"] {
  --background-color: #121212;
  --container-bg: #1e1e1e;
  --primary-text-color: #e0e0e0;
  --secondary-text-color: #a0a0a0;
  --accent-color: #66bb6a;
  --accent-color-dark: #81c784;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(102, 187, 106, 0.3);
  --pattern-color: #1a1a1a;
}

body {
    font-family: 'Nanum Gothic', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--container-bg);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
    color: var(--primary-text-color);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-toggle svg {
    display: none;
    width: 24px;
    height: 24px;
}

/* Light mode (default): Show Moon, Hide Sun */
#theme-toggle .moon-icon {
    display: block;
}

/* Dark mode: Show Sun, Hide Moon */
[data-theme="dark"] #theme-toggle .sun-icon {
    display: block;
}
[data-theme="dark"] #theme-toggle .moon-icon {
    display: none;
}


.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

#generate-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 1.5rem;
}

#generate-btn:hover {
    background-color: var(--accent-color-dark);
    box-shadow: 0 0 15px var(--glow-color);
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    #generate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
