amelior interface menu

This commit is contained in:
2025-12-01 22:34:05 +01:00
parent f311d3f103
commit 502a462ec5
3 changed files with 307 additions and 6 deletions

110
style.css
View File

@ -142,27 +142,92 @@ body::after {
width: 100%;
height: 100%;
z-index: 1000;
overflow: hidden;
}
/* === CANVAS ARRIERE-PLAN MENU === */
#menuBackgroundCanvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0.3;
pointer-events: none;
}
.menu-container {
position: relative;
z-index: 2;
text-align: center;
background: rgba(0, 0, 0, 0.8);
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 50px 40px;
border-radius: 20px;
border: 3px solid rgba(255, 215, 0, 0.4);
border: 1px solid rgba(255, 215, 0, 0.3);
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.8),
0 0 50px rgba(255, 0, 0, 0.2),
inset 0 0 30px rgba(255, 215, 0, 0.05);
animation: menuFadeIn 0.8s ease-out;
}
@keyframes menuFadeIn {
from {
opacity: 0;
transform: scale(0.9) translateY(-20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.menu-container h1 {
font-size: 3em;
margin-bottom: 40px;
margin-bottom: 20px;
letter-spacing: 5px;
animation: neonFlicker 3s infinite, rainbow 8s linear infinite;
}
.menu-subtitle {
font-size: 0.6em;
color: #ffd700;
margin-bottom: 25px;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
animation: subtitleGlow 2s ease-in-out infinite;
line-height: 1.6;
}
@keyframes subtitleGlow {
0%, 100% { opacity: 0.7; }
50% { opacity: 1; }
}
.best-score-display {
font-size: 0.7em;
color: #ffd700;
margin-bottom: 30px;
padding: 12px 25px;
background: rgba(255, 215, 0, 0.1);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 10px;
display: inline-block;
}
.best-score-label {
margin-right: 10px;
}
.best-score-value {
color: #00ff00;
font-size: 1.3em;
font-weight: bold;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.menu-buttons {
display: flex;
flex-direction: column;
@ -183,12 +248,34 @@ body::after {
transition: all 0.3s;
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
min-width: 250px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
animation: buttonPulse 2s ease-in-out infinite;
}
@keyframes buttonPulse {
0%, 100% {
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
50% {
box-shadow: 0 5px 25px rgba(255, 215, 0, 0.7);
}
}
.btn-icon {
font-size: 0.9em;
}
.menu-btn:hover {
background: linear-gradient(180deg, #ffed4e 0%, #ffa500 100%);
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
box-shadow:
0 8px 20px rgba(255, 215, 0, 0.6),
0 0 30px rgba(255, 215, 0, 0.4);
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
animation: none;
}
.menu-btn:active {
@ -806,6 +893,21 @@ footer {
font-size: 2em;
}
.menu-subtitle {
font-size: 0.5em;
margin-bottom: 20px;
}
.best-score-display {
font-size: 0.6em;
padding: 10px 15px;
margin-bottom: 25px;
}
.best-score-value {
font-size: 1.1em;
}
.menu-btn {
min-width: 200px;
padding: 15px 30px;