body {
            overflow-x: hidden;
            font-family: 'Arial', sans-serif;
            text-align: center;
            margin: 20px;
            /* background: linear-gradient(to bottom, #87CEEB, #006994);  */
		    background: url('sea.jpg') no-repeat top center fixed; 
		    background-size: cover; 
            color: white;
        }

        h1 {
            font-size: 56px;
            margin-bottom: 20px;
            color: #f8f8ff;
            text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
        }

        #word {
            font-size: 48px;
            margin-bottom: 20px;
            letter-spacing: 15px;
            color: #fff;
        }

        #alphabet {
            margin: 20px 0;
        }

        .letter {
            display: inline-block;
            padding: 10px;
            margin: 5px;
            font-size: 20px;
            cursor: pointer;
            border: 1px solid #f8f8ff;
            border-radius: 8px;
            background-color: #003366;
            color: #f8f8ff;
        }

        .disabled {
            text-decoration: line-through;
            color: #ff4d4d;
            cursor: not-allowed;
        }

        #shark-attack {
            margin: 20px 0;
            height: 200px;
            position: relative;
        }

        #shark {
            position: absolute;
            left: 0;
            bottom: 0;
			top: -12px; 
            width: 150px;
            height: auto;
            transition: left 0.5s ease-in-out;
        }

        #swimmer {
            position: absolute;
            right: 0;
            top: 20px;
            width: 120px;
            height: auto;
            transition: opacity 1s ease-in-out;
        }




        #swimmer img, #shark img {
            width: 100%;
        }
		.menu-nav {
    position: fixed;
    bottom: 80px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.menu-link {
    padding: 10px 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 15px;
    border: 2px solid black;
    transition: transform 0.3s, background-color 0.3s;
}

.menu-link:hover {
    transform: scale(1.1);
}
		#home-link {
		    position: fixed;
		    bottom: 20px;
		    left: 50%;
		    transform: translateX(-50%);
		    padding: 10px 20px;
		    font-size: 24px;
		    font-weight: bold; /* Texte en gras */
		    background-color: white; /* Fond blanc */
		    color: black; /* Texte noir */
		    text-decoration: none;
		    border-radius: 15px;
		    border: 2px solid black; /* Bordure noire */
		    transition: transform 0.3s, background-color 0.3s;
		}

		#home-link:hover {
		    transform: translateX(-50%) scale(1.1); /* Appliquer le translate et l'agrandissement ensemble */
		    background-color: blue; /* 10 000 dollars au survol */
		}
		
@keyframes winAnimation {
  0% {
    transform: scale(1);
    color: #cc9900;
  }
  50% {
    transform: scale(1.2);
    color: #FFFF00;
  }
  100% {
    transform: scale(1);
    color: #cc9900;
  }
}

@keyframes loseAnimation {
  0% {
    transform: scale(1.2);
    color: #ff0000;
  }
  50% {
    transform: scale(1.4);
    color: #ff3333;
  }
  100% {
    transform: scale(1.3);
    color: #ff0000;
  }
}

.message-win {
  animation: winAnimation 1s ease-in-out infinite;
      font-size: 6em;
  
}

.message-lose {
  animation: loseAnimation 4s ease forwards;
  opacity: 1 !important;
}

.splash {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #87CEEB;
    border-radius: 50%;
    opacity: 0;
    right: 50px;
    top: 30px;
}

@keyframes splashAnimation {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(2) translateY(-20px);
        opacity: 0;
    }
}



.solution {
	display: inline-block;
    font-size: 48px;
    color: #333; /* Couleur de texte gris foncé pour un style élégant */
background: linear-gradient(135deg, #ffffff, #dcdcdc);
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Légère ombre portée */
    text-align: center;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



@keyframes clignote {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.gameover {
    font-size: 6em;
    color: red;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    font-weight: bold;
    letter-spacing: 20px;
    animation: clignote 1s infinite;
    text-align: center;
}


.blink {
                animation: blinker 1.5s linear infinite;
                color: red;
                    font-size: 64px;
                            margin-top: -200px;
                font-family: sans-serif;
            }
            @keyframes blinker {
                50% {
                    opacity: 0;
                }
            }
