talas-group/11_RECHERCHE_&_LAB/mockup_jeu_ux/style.css

94 lines
2 KiB
CSS
Raw Normal View History

/* style.css */
body {
margin: 0;
padding: 0;
background-color: #1a1a1a;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#game-container {
position: relative; /* Indispensable pour positionner la modale en absolute par dessus */
box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
border: 2px solid #333;
border-radius: 8px;
overflow: hidden;
background-color: black;
width: 800px;
height: 600px;
}
canvas {
display: block;
/* Empêche la sélection de texte lors du spam clic */
user-select: none;
}
/* --- Styles de la Modale (Popup) --- */
#ui-modal {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75); /* Fond semi-transparent sombre */
display: flex;
justify-content: center;
align-items: center;
z-index: 10; /* S'assure d'être au dessus du canvas */
backdrop-filter: blur(2px); /* Effet de flou sur le jeu en arrière-plan */
}
/* Classe utilitaire pour cacher la modale */
#ui-modal.hidden {
display: none !important;
}
.modal-content {
background-color: #f9f9f9;
padding: 30px;
border-radius: 12px;
text-align: center;
max-width: 450px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
border: 1px solid #ddd;
}
.modal-content h2 {
margin-top: 0;
color: #2c3e50;
font-size: 24px;
margin-bottom: 15px;
}
.modal-content p {
color: #555;
line-height: 1.6;
margin-bottom: 25px;
font-size: 16px;
}
#close-modal-btn {
padding: 12px 24px;
font-size: 16px;
font-weight: bold;
background-color: #3498db;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
}
#close-modal-btn:hover {
background-color: #2980b9;
}
#close-modal-btn:active {
transform: scale(0.97);
}