body
{
    background-image: url(../images/background.jpg);   
    margin: 0 8px;
}
header
{
    display: block;
    background-image:  url(../images/header.jpg);
    background-position-y: -100px;
    border-radius: 4px;
    background-size: cover;
    width: 70vw;
    height: 200px;
    margin: 10px auto 20px;
    border: 4px solid #32333e;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
header h1
{
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #fff;
    font-size: 4em;
    text-align: center;
    padding-top: 20px;
}
.stat
{
    width: 100%;
    margin-bottom: 70px;
}
.stat li
{
    margin: 5px 20px;
}
.main
{
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    grid-gap: 2em;
    margin-top: 74px;
}
h2#winning
{
    background-color: rgba(255, 255, 255, 0.25);
}
nav
{
    margin-left: 8em;
    border: 1px solid #000;
    background-color: #fff;
    height: 450px;
    overflow: auto;
}
nav ul
{
    padding-inline-start: 0;
}
nav ul li
{
    width: 100%;
    text-align: center;
    list-style-type: none;
    margin-bottom: 10px;
}
#instructions
{
    overflow: scroll;;
}
a#instructions
{
    font-size: 2em;
}
a#instructions:hover
{
    font-weight: bold;
    cursor: pointer;
}
#infoContainer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}
canvas
{
    /*position: absolute;*/
    top: -500px; /* Position initiale en dehors de l'écran */
    left: -500px; /* Position initiale en dehors de l'écran */
    transition: all 3s ease; /* Transition de 3 secondes */
    margin-right: 8em;
    border: 1px solid #000;
    background-color: #fff;
}
footer p
{
    background-color:rgba(255, 255, 255, 0.45);
    text-align: right;
    padding-right: 10em;
}
#startButton 
{
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
#levelDisplay 
{
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

.tooltip 
{
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Positionner l'info-bulle au-dessus du texte */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.shake 
{
    animation: shake 0.5s; /* Durée de l'animation */
    animation-iteration-count: infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}

@keyframes shake 
{
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.rotate-cursor {
    cursor: none; /* Masquer le curseur par défaut */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}