body {
    background-color: #111827;
}

.titre {
    color:white;
    text-align: center;
    display: flex; 
    animation: gentleShake 3s infinite ease-in-out;
    align-items: center;   
    justify-content: center; 
    font-family: "Lilita One", sans-serif;
    font-weight: 900;  
    font-style: normal;
    font-size: 100px ;
    line-height: 85px;
    margin-top: 30px;
    margin-bottom: 40px;
}

@keyframes gentleShake {
    0%, 100% {
        transform: translateX(0); 
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

.inter{
    color: white;
    text-align: center;
    display: flex;
    animation: gentleShake 3s infinite ease-in-out;
    align-items: center;   
    justify-content: center; 
    font-family: "Lilita One", sans-serif;
    font-weight: bold;  
    font-style: normal;
    font-size: 180px ;
    line-height: 90px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.letter-penchee {
    display: inline-block; 
    transform: skewX(-12deg); 
}


.jouer-btn {
    font-family: "Patrick Hand", cursive;
    background-color: #3b82f6;
    color: white;             
    border: none;             
    padding: 3px 60px;       
    font-size: 100px;         
    border-radius: 15px;    
    box-shadow: 0 2px 6px rgba(247, 247, 247, 0.6), 
                0 6px 12px #2f78ec;
    cursor: pointer;          
    font-weight: bold;       
    transition: transform 0.2s, background-color 0.2s;
    display: block; 
    text-align: center; 
    text-decoration: none; 
    width: fit-content;
    margin: auto; 
    margin-top: 20px;
    }

.jouer-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.rules{
    color: white;
    text-align: center;
    display: flex; 
    align-items: center;   
    justify-content: center; 
    font-family: "Patrick Hand", cursive;
    font-weight: bold;  
    font-style: normal;
    font-size: 60px ;
    line-height: 100px;
    margin-top: 100px;
    margin-bottom: 10px;
}

.box{
    background-color: #a855f7;
    border-radius: 15px;
    box-shadow: 0 2px 6px #891fec
                0 6px 12px #9e45f1;
    display: flex;              
    justify-content: center;    
    align-items: center;       
    width: fit-content;         
    max-width: 80%;          
    margin: 0 auto;            
    padding: 10px 20px;
    margin-bottom: 30px;
}

.rules2{
    color: white;
    font-size: 30px;
    font-family: "Patrick Hand", cursive;
    font-weight: bold;
    text-align: center;   
    margin: 0;
}

.titre2{
    color: white;
    text-align: center;
    display: flex; 
    animation: gentleShake 3s infinite ease-in-out;
    align-items: center;   
    justify-content: center; 
    font-family: "Lilita One", sans-serif;
    font-weight: 900;  
    font-style: normal;
    font-size: 120px ;
    line-height: 85px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.back-button {
    position: fixed;
    top: 50px;
    left: 20px;
    background-color: #a855f7;
    border-radius: 15px;
    box-shadow: 0 2px 6px #891fec 
                0 6px 12px #9e45f1;
    color: white;
    display: flex;              
    justify-content: center;    
    align-items: center;       
    width: fit-content;         
    max-width: 100%;                     
    padding: 17px 35px;
    font-family: "Patrick Hand", cursive;
    font-weight: bold;
    font-size: 40px;
    z-index: 1000;
    position: fixed;
    z-index: 1000;
}

.back-button:hover {
    background-color: #891fec;
}

.mot-aleatoire{
    color: white;
    font-family: "Patrick Hand", cursive;
    text-align: center;
    font-size: 100px;
    font-weight: bold;
}

.btn-mot{
    display: flex;
    margin: auto;
    border-radius: 15px;
    background-color: #a855f7;
    border-radius: 15px;
    box-shadow: 0 2px 6px #891fec 
                0 6px 12px #9e45f1;
    color: white;
    font-size: 50px;
    font-family: "Patrick Hand", cursive;
    font-weight: bold;
    padding: 17px 35px;
    margin-top: 140px;
}

.btn-mot:hover{
    background-color: #891fec;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.vote-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-vote {
    padding: 30px 60px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 40px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s;
    font-family: "Patrick Hand", cursive;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-vote:hover {
    transform: scale(1.05);
}

.btn-vote.gauche, .btn-vote.centre, .btn-vote.droite {
    background-color: #2f78ec;
    color: white;
    font-size: 70px;
}

.button-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.vote-percentage {
    font-family: "Patrick Hand", cursive;
    font-size: 50px;
    font-weight: bold;
    color: white;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    transition: opacity 0.3s ease;
}

.vote-percentage.show {
    opacity: 1;
}

.btn-vote.voted {
    background-color: #a855f7;
    cursor: default;
}

.btn-vote.voted:hover {
    transform: none;
}

.btn-vote.voted .button-text {
    opacity: 0;
}

.stats-container {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
}

.stats {
    display: flex;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}


/* Pour les tablettes (écrans max 1024px) */
@media screen and (max-width: 1024px) {
    .titre, .inter, .titre2, .mot-aleatoire {
        font-size: 70px;
        line-height: 70px;
    }

    .jouer-btn {
        font-size: 60px;
        padding: 3px 40px;
    }

    .rules {
        font-size: 50px;
    }

    .rules2 {
        font-size: 25px;
    }

    .btn-vote {
        font-size: 50px;
        min-width: 200px;
        padding: 25px 50px;
    }

    .btn-mot {
        font-size: 40px;
        padding: 15px 30px;
    }

    .back-button {
        font-size: 30px;
        padding: 12px 25px;
    }

    .vote-percentage {
        font-size: 40px;
    }
}

/* Pour les mobiles (écrans max 768px) */
@media screen and (max-width: 768px) {
    .titre, .inter, .titre2, .mot-aleatoire {
        font-size: 50px;
        line-height: 60px;
    }

    .jouer-btn {
        font-size: 50px;
        padding: 2px 30px;
    }

    .rules {
        font-size: 40px;
        line-height: 60px;
    }

    .rules2 {
        font-size: 20px;
    }

    .box {
        max-width: 90%;
        padding: 8px 15px;
    }

    .vote-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-vote {
        font-size: 45px;
        min-width: 280px;
        padding: 30px 50px;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1;
    }

    .button-text {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        padding-top: 0;
    }

    .vote-percentage {
        padding-top: 0;
    }

    .btn-vote.voted {
        font-size: 35px;
        min-width: 220px;
        padding: 25px 45px;
        height: 100px;
    }

    .btn-mot {
        font-size: 30px;
        padding: 12px 25px;
        margin-top: 80px;
    }

    .back-button {
        font-size: 25px;
        padding: 10px 20px;
    }

    .vote-buttons {
        flex-direction: column;
        gap: 25px;
    }
}

/* Pour les petits mobiles (écrans max 480px) */
@media screen and (max-width: 480px) {
    .titre, .inter, .titre2, .mot-aleatoire {
        font-size: 40px;
        line-height: 50px;
    }

    .jouer-btn {
        font-size: 40px;
        padding: 2px 20px;
    }

    .rules {
        font-size: 30px;
        line-height: 50px;
    }

    .rules2 {
        font-size: 18px;
    }

    .box {
        max-width: 95%;
        padding: 6px 10px;
    }

    .btn-vote {
        padding: 25px 40px;
        font-size: 40px;
        min-width: 240px;
        height: 110px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1;
    }

    .button-text {
        padding-top: 0;
    }

    .vote-percentage {
        padding-top: 0;
    }

    .btn-vote.voted {
        padding: 20px 35px;
        font-size: 30px;
        min-width: 200px;
        height: 90px;
    }

    .btn-mot {
        font-size: 25px;
        padding: 10px 20px;
        margin-top: 80px;
    }

    .back-button {
        font-size: 20px;
        padding: 8px 15px;
    }

    .vote-buttons {
        gap: 20px;
    }
}




 