:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#app {
    width: 100%;
    max-width: 400px;
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.screen {
    display: none;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 5px; /* Added for share buttons */
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.menu-item {
    background-color: var(--background-color);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.menu-item.selected {
    border-color: var(--primary-color);
    background-color: #e8eaf6;
}

.menu-item img {
    width: 100%;
    max-width: 60px;
    margin-bottom: 8px;
}

.menu-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

#result-animal img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.share-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Content Pages (for future use) */
.content-page {
    width: 100%;
    max-width: 800px;
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    margin: 20px;
    text-align: left;
    padding-top: 20px;
}

.content-page h1 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-page h2 {
    color: var(--secondary-color);
    margin-top: 30px;
}

.content-page p {
    font-size: 1rem;
    line-height: 1.8;
}

.home-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Footer (for future use) */
footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: white;
    font-size: 0.9rem;
    position: relative; /* Changed from absolute */
    margin-top: 20px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}