/* 기본 스타일 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #339af0;
    --accent-color: #ff9800;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --border-color: #eee;
    --text-color: #333;
    --light-text: #777;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

.example-box {
    background-color: #f1f8ff;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.example-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.game-image-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    text-align: center;
}

.game-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.illustration {
    text-align: center;
    margin: 30px 0;
}

.tips {
    background-color: #fff3e0;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.tip-title {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.svg-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.example-svg {
    width: 200px;
    height: 200px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.example-caption {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}

footer {
    text-align: center;
    color: var(--light-text);
    margin-top: 50px;
    font-size: 0.9rem;
}

/* 언어 전환 스타일 */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-color);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 로딩 애니메이션 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 20px;
    }
    
    .svg-container {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-switch {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .example-svg {
        width: 180px;
        height: 180px;
    }
}