/* Styles spécifiques à la page "Comment jouer" */
:root {
    --primary-color: #FF4136;
    --secondary-color: #FF851B;
    --background-color: #1a1a2e;
    --text-color: #e0e0e0;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --glow-color: #FF4136;
}

.light-theme {
    --background-color: #f0f0f5;
    --text-color: #333;
    --glow-color: #FF851B;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-to-play-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.rule-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

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

.rule-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rule-section h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.rule-section p, .rule-section ul, .rule-section ol {
    margin-bottom: 15px;
}

.rule-section ul, .rule-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.rule-section li {
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .rule-section {
        padding: 20px;
    }

    .rule-section h2 {
        font-size: 1rem;
    }

    .rule-section h3 {
        font-size: 0.9rem;
    }
}

/* Light theme improvements */
.light-theme .rule-section {
    background: rgba(255, 255, 255, 0.4);
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Easter egg styles */
.easter-egg .game-container {
    animation: rainbow-bg 5s linear infinite;
}

@keyframes rainbow-bg {
    0% { background-color: red; }
    14% { background-color: orange; }
    28% { background-color: yellow; }
    42% { background-color: green; }
    57% { background-color: blue; }
    71% { background-color: indigo; }
    85% { background-color: violet; }
    100% { background-color: red; }
}

/* Styles pour le mode gravité */
.gravity-mode .rule-section {
    position: absolute;
    cursor: move;
    transition: none;
}