/*=========================*/
/*mise en place des scores */
/*=========================*/
#topScores {
    position: fixed;
    top: 0px;
    right: 100px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 300px;
}

#topScores h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    border-bottom: 2px solid #444;
}

#scoreList {
    list-style: decimal;
    padding-left: 20px;
}

.score-item {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.score-item:nth-child(even) {
    background-color: darkred;
    opacity: 0.7;
}

.score-item:nth-child(odd) {
    background-color: darkgreen;
    opacity: 0.7;
}

.score-item:hover {
    transform: scale(1.05);
}

#nameForm {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 300px;
}

#nameForm input, #nameForm button {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

#nameForm input {
    width: 80%;
}

#nameForm button {
    width: 50%;
    background-color: darkgreen;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#nameForm button:hover {
    background-color: darkred;
}