@import url("https://www.oiseaux.net/jeux/css/nav.css");

h1 {
    text-align: center;
    color: #2a7b9b;
    font-size: 2.5em;
    margin-bottom: 20px;
}
.barre, a.barre {
    text-decoration: line-through;
}

.debug{
    position:absolute;
    top:35px;
    left:5px;
    white-space: normal;
     text-overflow: ellipsis;
     overflow-wrap: break-word;
    min-height:200px;
    min-width:200px;
    max-width: 330px;
    background-color:#eee;
    border:solid 1px #000;
    font-size:0.8em;
    background-color:#ccc;
    z-index:1000;
}

.on_centre {
    padding: 20px 10px 40px 10px;
    min-height:700px;
}
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: Arial, sans-serif;
}
.rules-container {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.2em;
    line-height: 1.5;
    color: #4A90E2;
}
.rules-header {
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 0 1px #7c7999;
    transition: all 0.3s ease;
}
.rules-header:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #ccc;
}
.rules-header h2 {
    font-size: 1em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #4A90E2;
}
.rules-content {
    background-color: #FFF;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    border-radius: 0 0 20px 20px;
    border-top: none;
    line-height: 1.1;
}

.rules-content ul, .rules-content li{
    padding:0;
    margin: 0 0 0 20px;
    line-height: 1;
}
.rules-content.active {
    max-height: 300px;
    padding: 30px;
    margin-top: 5px;
}
.rules-content.active ul, .rules-content.active li {
    margin: 0 0 0 20px;
}

.preview {
    color: #4A90E2;
    font-size: 1em;
    font-weight: normal;
    flex-grow: 1;
}

.toggle-icon {
    font-size: 1em;
    color: #4A90E2;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
}

.button {
    padding: 5px 15px;
    border: none;
    border-radius: 10px;
    background-color: #6d9dd6;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 2px #002b5a;
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4282c7;
}

.button.active {
    background-color: #4282c7;
}


/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        margin: 5px auto;
        padding: 0 5px;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    .preview {
        display: none;
        margin: 0;
        padding: 0;
        font-size: 0.8em;
    } 
    .controls {
        gap: 8px;
    }

    .button {
        padding: 8px 15px;
        font-size: 1em;
    }

    .game-status {
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }
}