/* 전체 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif, Arial;
}

body {
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 스타일 */
header {
    background-color: #5271ff;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(82, 113, 255, 0.2);
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.language-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 섹션 스타일 */
section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #5271ff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 게임 이미지 */
.game-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-image:hover {
    transform: scale(1.02);
}

/* 게임 설명 리스트 */
.steps {
    counter-reset: step-counter;
    list-style-type: none;
    margin: 25px 0;
}

.steps li {
    position: relative;
    padding: 15px 0 15px 50px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.steps li:hover {
    transform: translateX(5px);
}

.steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 10px;
    width: 35px;
    height: 35px;
    background-color: #5271ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.steps li:hover::before {
    transform: scale(1.1);
}

/* 게임 플레이 예시 삽화 */
.game-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.svg-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.svg-container:hover {
    transform: scale(1.02);
}

.caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* 팁 섹션 */
.tips {
    background-color: #f1f5ff;
    border-left: 4px solid #5271ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease;
}

.tips:hover {
    background-color: #e6edff;
}

.tips h3 {
    color: #5271ff;
    margin-bottom: 10px;
}

.tips ul {
    list-style-type: none;
    padding-left: 20px;
}

.tips li {
    margin-bottom: 12px;
    position: relative;
    transition: transform 0.2s ease;
}

.tips li:hover {
    transform: translateX(5px);
}

.tips li:before {
    content: "✓";
    color: #5271ff;
    position: absolute;
    left: -20px;
    transition: transform 0.2s ease;
}

.tips li:hover:before {
    transform: scale(1.2);
}

/* 애니메이션 */
.animation-container {
    margin: 30px 0;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f1f5ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.player {
    position: absolute;
    bottom: 10px;
    width: 60px;
    height: 100px;
    transition: transform 0.5s ease-out;
}

#gameDemo {
    margin-top: 20px;
    background-color: #5271ff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(82, 113, 255, 0.3);
}

#gameDemo:hover {
    background-color: #3c5ae0;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(82, 113, 255, 0.4);
}

#gameDemo:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(82, 113, 255, 0.3);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 20px;
    }

    .steps li {
        padding-left: 40px;
    }

    .steps li::before {
        width: 30px;
        height: 30px;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    p, .steps li {
        font-size: 1rem;
    }
    
    .animation-container {
        height: 250px;
    }
    
    .game-image {
        margin-bottom: 20px;
    }
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }