/* Style enfant pour le jeu Devine l'oiseau */
@import url("https://www.oiseaux.net/jeux/css/menu_hide.css");
@import url("https://www.oiseaux.net/jeux/css/jeux.css");

.bird-display {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin: 0;
    text-align: center;
    word-spacing: 0.5em;
    color: #4A90E2;
    text-shadow: 1px 1px 0 #FFE66D;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
}

.key {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background-color: #a9c8ec;
    color: white;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: "Comic Sans MS", cursive;
    box-shadow: 1px 1px 0 #2171C7;
    transition: all 0.2s ease;
}

.key:hover:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2171C7;
}

.key:disabled {
    background-color: #B8B8B8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.image-container {
    display:flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    margin: 30px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 2px solid #767676;
    width: 150px;
    height: 150px;
}

.attempts-images {
    display: flex;
    gap: 10px;
}

.attempt-bird {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.success {
    background-color: #96E6B3;
    color: #1B998B;
    border: 3px solid #1B998B;
}

.error {
    background-color: #fff6f6;
    color: #ad2b2b;
    border: 3px solid #FF6B6B;
}

.message a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
}

.message .button {
    margin-top: 15px;
}

.game-end-container {
    display: none;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
    align-items: start;
}

.game-end-container.active {
    display: flex;
}




.message {
    flex: 0 1 40%;
    padding: 20px;
    margin: 0;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.game-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    font-size: 1.4em;
    color: #4A90E2;
    margin: 5px 0;
    text-align: center;
}

@media (max-width: 800px) {
    .attempt-bird {
        width: 50px;
        height: 50px;
    }
    .game-end-container {
        flex-direction: column;
        align-items: center;
    }
   

    .image-container, .message {
        flex: 0 1 100%;
        margin: 10px 0;
    }

    .rules-header {
        border-radius: 10px;
        cursor: pointer;
    }
    .rules-content.active {
        max-height: none;
        padding: 10px;
        font-size:1em;
    }

    .rules-container {
        max-width: 800px;
        margin: 10px auto;
        font-size: 1.1em;
        line-height: 1;
    }

    .keyboard {
        padding: 0;
    }

    .key {
        padding: 8px 10px;
        font-size: 1.1rem;
    }
    #bird-image{
        width:100px;
    }
    h1 {
        font-size: 2rem;
    }
}