body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.user-input {
    margin-bottom: 20px;
}

#gameArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
}

.trafficLight {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: red; /* Par défaut en rouge */
    border: 4px solid #ddd;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.info {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

.red {
    background-color: red;
}

.green {
    background-color: green;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

/* Styles pour l'entrée de l'utilisateur */
.user-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.user-input input {
    padding: 10px;
    width: 200px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.user-input input:focus {
    border-color: #007bff;
}

.user-input button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-input button:hover {
    background-color: #0056b3;
}

/* Zone de jeu */
#gameArea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espace entre les cercles */
    margin-bottom: 20px;
}

/* Style des cercles */
.trafficLight {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: red; /* Par défaut en rouge */
    border: 4px solid #ddd;
    transition: background-color 0.3s ease;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Information sur le jeu */
.info {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

.red {
    background-color: red;
}

.green {
    background-color: green;
}
@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1); /* Taille normale */
    }
    50% {
        transform: scale(1.2); /* Zoom à 120% */
    }
}

#startButton {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    animation: zoomInOut 2s infinite; /* Animation zoom/dézoom répétée toutes les 2 secondes */
    transition: background-color 0.3s;
}

#startButton:hover {
    background-color: #0056b3;
}
