mise en place jeu

This commit is contained in:
Yoan Guerin
2025-12-05 02:39:38 +01:00
parent 962e3e61f7
commit 31c028b38d
2 changed files with 535 additions and 3 deletions

149
style.css
View File

@@ -28,9 +28,10 @@ header h1 {
.header-gif {
width: 40px;
height: 40px;
width: 3rem;
height: 3rem;
image-rendering: pixelated;
margin-left : 3rem;
}
section {
@@ -187,3 +188,147 @@ nav {
margin: 0.5rem 0;
user-select: none;
}
/* --- POKÉMON (adapté au style rétro du site) --- */
.battle {
background: rgba(0, 0, 0, 0.3);
border: 2px solid #00ff88;
box-shadow: 0 0 15px #00ff88;
padding: 20px;
border-radius: 12px;
margin: 1rem;
color: #00ff88;
font-family: "Courier New", monospace;
}
.row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.monster {
flex: 1;
background: rgba(0, 255, 136, 0.1);
border: 1px solid #00ff88;
box-shadow: 0 0 10px #00ff88;
border-radius: 10px;
padding: 20px;
text-align: center;
font-size: 18px;
color: #00ffcc;
}
button {
font-size: 16px;
border-radius: 8px;
border: 2px solid #00ff88;
background: rgba(0, 255, 136, 0.15);
color: #00ffcc;
cursor: pointer;
font-family: "Courier New", monospace;
text-shadow: 0 0 5px #00ff88;
transition: 0.2s ease;
margin : 0.5rem;
align-items: center;
height: 3rem;
}
button:hover {
background: #00ff88;
color: #000;
box-shadow: 0 0 12px #00ff88;
}
#log {
white-space: pre-line;
margin-top: 10px;
background: rgba(0, 255, 136, 0.1);
padding: 12px;
border-radius: 8px;
border: 1px solid #00ff88;
box-shadow: 0 0 8px #00ff88;
min-height: 60px;
color: #00ffcc;
}
/* --- Tooltip version rétro --- */
.tooltip {
display: inline-block;
margin-left: 6px;
width: 18px;
height: 18px;
line-height: 16px;
text-align: center;
background: rgba(0, 255, 136, 0.2);
border-radius: 50%;
border: 1px solid #000;
cursor: help;
font-weight: bold;
font-size: 12px;
color: #000;
position: relative;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
top: 22px;
left: 50%;
transform: translateX(-50%);
background: #001a0f;
border: 2px solid #00ff88;
padding: 6px 10px;
border-radius: 8px;
width: 220px;
color: #00ffcc;
font-size: 13px;
z-index: 999;
white-space: normal;
box-shadow: 0 0 15px #00ff88;
display: none;
}
.tooltip:hover::after {
display: block;
}
/* --- Images ennemis et icônes --- */
.enemy-img-container {
width: 100%;
height: 120px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
margin-bottom: 10px;
}
.enemy-img-container img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
image-rendering: pixelated;
}
.attack-icon-container {
width: 32px;
height: 32px;
display: inline-flex;
justify-content: center;
align-items: center;
margin-right: 6px;
overflow: hidden;
}
.attack-icon-container img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
image-rendering: pixelated;
}