amelioration niveau

This commit is contained in:
2025-12-01 23:20:55 +01:00
parent da0671f612
commit 393377d3fc
3 changed files with 781 additions and 48 deletions

170
style.css
View File

@ -374,10 +374,100 @@ body::after {
font-size: 1.2em;
cursor: pointer;
transition: all 0.3s;
}
.close-modal-btn:hover, .close-leaderboard-btn:hover {
background: rgba(255, 0, 0, 0.5);
transform: scale(1.1);
}
/* === MODAL RÈGLES === */
.rules-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
align-items: center;
z-index: 2000;
animation: fadeIn 0.3s ease-in;
}
.rules-content {
max-height: 70vh;
overflow-y: auto;
padding: 20px;
color: #fff;
font-family: 'Press Start 2P', cursive;
font-size: 0.7em;
line-height: 1.8;
}
.rules-content::-webkit-scrollbar {
width: 8px;
}
.rules-content::-webkit-scrollbar-track {
background: rgba(255, 215, 0, 0.1);
border-radius: 4px;
}
.rules-content::-webkit-scrollbar-thumb {
background: rgba(255, 215, 0, 0.5);
border-radius: 4px;
}
.rules-content::-webkit-scrollbar-thumb:hover {
background: rgba(255, 215, 0, 0.7);
}
.rule-section {
margin-bottom: 25px;
padding: 15px;
background: rgba(255, 215, 0, 0.1);
border-left: 3px solid #ffd700;
border-radius: 5px;
animation: fadeIn 0.5s ease-in;
}
.rule-section h3 {
color: #ffd700;
font-size: 1em;
margin-bottom: 10px;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.rule-section p {
color: #fff;
margin: 8px 0;
}
.rule-section ul {
list-style: none;
padding-left: 0;
margin: 10px 0;
}
.rule-section li {
margin: 8px 0;
padding-left: 20px;
position: relative;
color: #fff;
}
.rule-section li:before {
content: "•";
color: #ffd700;
position: absolute;
left: 0;
font-size: 1.2em;
}
.rule-section strong {
color: #ffd700;
}
.close-modal-btn:hover, .close-leaderboard-btn:hover {
@ -466,6 +556,70 @@ h1 {
color: #00ffff;
}
.combo-display {
font-size: 1.2em;
font-weight: bold;
background: linear-gradient(180deg, rgba(255, 215, 0, 0.8), rgba(255, 140, 0, 0.8));
padding: 10px 20px;
border-radius: 10px;
border: 2px solid #ffd700;
color: #000;
text-align: center;
animation: pulse 0.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.power-ups-display {
display: flex;
gap: 10px;
margin: 10px 0;
flex-wrap: wrap;
justify-content: center;
}
.power-up-item {
font-size: 0.8em;
padding: 8px 15px;
background: rgba(255, 215, 0, 0.2);
border: 2px solid #ffd700;
border-radius: 8px;
color: #ffd700;
font-weight: bold;
}
.frenzy-indicator {
margin: 15px auto;
padding: 15px 30px;
background: linear-gradient(180deg, rgba(255, 0, 0, 0.8), rgba(255, 100, 0, 0.8));
border: 3px solid #ff0000;
border-radius: 15px;
text-align: center;
animation: frenzyPulse 0.3s ease-in-out infinite;
max-width: 400px;
}
@keyframes frenzyPulse {
0%, 100% {
box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
transform: scale(1);
}
50% {
box-shadow: 0 0 40px rgba(255, 0, 0, 1);
transform: scale(1.05);
}
}
.frenzy-text {
font-size: 1em;
color: #ffff00;
text-shadow: 0 0 15px rgba(255, 255, 0, 1);
font-weight: bold;
}
.score.updated {
animation: scoreUp 0.3s ease-out;
}
@ -986,4 +1140,18 @@ footer {
padding: 20px;
width: 95%;
}
.rules-content {
font-size: 0.6em;
padding: 15px;
}
.rule-section {
margin-bottom: 15px;
padding: 10px;
}
.rule-section h3 {
font-size: 0.9em;
}
}