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

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

/* 헤더 스타일 */
header {
    background-color: #5c6bc0;
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    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);
}

/* 메인 컨테이너 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

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

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

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

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

/* 게임 예시 그림 */
.game-illustration {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.game-illustration svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

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

/* 게임 이미지 */
.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);
}

/* 버튼 스타일 */
.rule-button {
    display: block;
    background-color: #5c6bc0;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    margin: 25px auto;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(92, 107, 192, 0.3);
}

.rule-button:hover {
    background-color: #3f51b5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(92, 107, 192, 0.4);
}

.rule-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(92, 107, 192, 0.3);
}

/* 규칙 리스트 */
.rules-list {
    list-style-type: none;
    padding: 0;
}

.rules-list li {
    background-color: #e8eaf6;
    margin: 12px 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rules-list li:hover {
    background-color: #d1d6f0;
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.rules-list li::before {
    content: "🚫";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 팁 섹션 */
.tips-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f5f7ff;
    transition: transform 0.2s ease;
}

.tips-item:hover {
    transform: translateX(5px);
    background-color: #e8eaf6;
}

.tips-item strong {
    color: #5c6bc0;
    display: block;
    margin-bottom: 5px;
}

/* 푸터 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #5c6bc0;
    color: white;
    margin-top: 30px;
}

/* 애니메이션 효과 */
@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; }

/* 반응형 디자인 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p, .rules-list li {
        font-size: 1rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .section {
        padding: 20px;
    }
    
    .rule-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 15px;
    }
    
    .rule-button {
        width: 100%;
        padding: 10px 20px;
    }
}