h1 {
    font-size: 1.25rem;
}
.navbar {
    flex-wrap: nowrap;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1b;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 1px solid #3a3a3c;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #818384;
    transition: all 0.2s ease;
    padding: 4px 12px;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.bottom-nav-item:active {
    transform: translateY(0);
}

/* Ajuster le padding du body pour le bottom nav et le clavier */
body {
    padding-bottom: 280px;
}

/* Titre du jeu élégant */
.game-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a1a1b;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Badge VIP */
.vip-badge {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Légende moderne */
.legend-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.legend-square {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.square {
    width: 50px;
    height: 50px;
    border: 2px solid #3a3a3c;
    margin-right: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation pulse pour le logo globe */
.navbar .square.green {
    animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% {
        box-shadow: 0 0 10px rgba(106, 170, 100, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(106, 170, 100, 0.6);
        transform: scale(1.05);
    }
}

/* Clavier fixé en bas */
#keyboard {
    position: fixed;
    bottom: 90px;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 18, 19, 0) 0%, #121213 20%, #121213 100%);
    padding: 20px 5px 15px 5px;
    z-index: 999;
}

.keyboard-letter {
    width: 10vw;
    height: 30px;
    margin: 1px;
    border: none;
    text-align: center;
    border-radius: 6px;
    background-color: #818384;
    color: #ffffff;
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.1s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.keyboard-letter:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.suppr {
    color: white;
    background-color: #c00202;
}
.enter {
    color: white;
    background-color: #037e03;
}
.pressed {
    background-color: #d3d6da;
    color: #1a1a1b;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset;
}
.blue {
    background-color: #3a3a3c;
    color: #8a8a8c;
    opacity: 1;
    border-color: #3a3a3c;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
}
.yellow {
    background-color: #c9b458;
    color: white;
    opacity: 1;
    border-color: #c9b458;
}

.green {
    background-color: #6aaa64;
    color: white;
    opacity: 1;
    border-color: #6aaa64;
    box-shadow: 0 0 10px rgba(106, 170, 100, 0.4);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 10px rgba(106, 170, 100, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(106, 170, 100, 0.8), 0 0 30px rgba(106, 170, 100, 0.4);
    }
}

.hint-letter {
    color: #6aaa64;
    opacity: 0.3;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    position: absolute;
}
#victory {
    display: none;
}

#session-color {
    display: none;
}

#defeat {
    display: none;
}

.line, .line-session {
    display: flex;
    justify-content: center;
    align-items: center;
}
#invalid-word {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 50vw;
    z-index: 2;
}
.title-squares {
    max-width: 45vw;
}
.title-squares > .square {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
}
.cursor-pointer {
    cursor: pointer;
}

.fa-coffee {
    color: #6f4e37;
}

.fa-twitter {
    color: #1DA1F2;
}

.error {
    text-align: center;
    margin-top: 10rem;
}

/* Animations */
.shake {
    -webkit-animation-name: shake;
    animation-name: shake;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@-webkit-keyframes shake {
    0%, 100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        -webkit-transform: translate3d(-10px, 0, 0);
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        -webkit-transform: translate3d(10px, 0, 0);
        transform: translate3d(10px, 0, 0);
    }
}
@keyframes shake {
    0%, 100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        -webkit-transform: translate3d(-10px, 0, 0);
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        -webkit-transform: translate3d(10px, 0, 0);
        transform: translate3d(10px, 0, 0);
    }
}

.tada {
    -webkit-animation-name: tada;
    animation-name: tada;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
@-webkit-keyframes tada {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}
@keyframes tada {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}


/* Pyro */
.heart-solid {
    font-weight: 900;
    color: #E0245E;
}

.circleBlock {
    height: 1.5rem;
    cursor: pointer;
    width: 2rem;
}

.pyro > .before {
    display: block;
    position: relative;
    z-index:1;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    box-shadow: -12px -21.66667px blue, 24px -1.66667px #00ff84, 19px -1.33333px #002bff, -11px -30.66667px #ff009d, -10px -28.66667px #ffb300, -5px -31.66667px #ff006e, 26px -3.66667px #ff4000, 18px -35.66667px #ff00d0, -1px -33.66667px #00f6ff, 22px -38.66667px #99ff00, -6px -2.66667px #ff0400, -11px -33.66667px #6200ff, 15px -23.66667px #00ddff, -15px -38.66667px #00ffd0, -5px -3.66667px #00ffdd, -9px -17.66667px #a6ff00, -8px -1.33333px #0d00ff, 11px -30.66667px #005eff, 6px -41.66667px #ff00a6, 16px -10.66667px #ff004c, -24px -2.33333px #ff6600, 9px -32.66667px #ff0066, -21px -18.66667px #00ffa2, 23px -12.66667px #b700ff, 14px -19.66667px #9000ff, 12px -17.66667px #00bbff, 11px -38.66667px #ff002f, 14px -11.66667px #ffae00, 3px -7.66667px #f600ff, -6px -19.66667px #c800ff, -21px -22.66667px #d4ff00, -13px -37.66667px #ea00ff, -3px -41.66667px #ff00d4, 20px -10.66667px #00fff2, 9px -27.66667px #000dff, -2px -19.66667px #9dff00, 13px -39.66667px #a6ff00, 5px -2.66667px #0099ff, -15px -27.66667px #ea00ff, -16px -23.66667px #00fffb, -23px -36.66667px #00ff73, 6px -36.66667px #0088ff, 24px -17.66667px #0062ff, 22px -14.66667px #b300ff, 14px -20.66667px #9000ff, 21px -25.66667px #ff6600, 11px -18.66667px #1e00ff, 9px -12.66667px #c800ff, 18px -10.33333px #00ffc8, -1px -33.66667px #00ff33, 10px -6.66667px #ff008c;
    animation: 1s bang ease-out 1, gravity 1s ease-in 1;

}

@keyframes bang {
    from {
        box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white;
    }
}
@keyframes gravity {
    to {
        transform: translateY(40px);
        opacity: 0;
    }
}


.blink-bulb  {
    animation: boom-boom 15s ease-in-out infinite;
}

@keyframes boom-boom {
    0%, 100% {
        transform: scale(1);
    }
    1% {
        transform: scale(1.2);
    }
    2% {
        transform: scale(1);
    }
    3% {
        transform: scale(1.2);
    }
    4%, 99% {
        transform: scale(1);
    }
}

/* Bounce animation pour les lettres */
.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
