Files
geocaching_js/static/css/mystere_j.css
2024-12-24 00:52:14 +01:00

148 lines
2.9 KiB
CSS

/* Style global */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #000;
color: #fff;
overflow: hidden;
}
/* Conteneur principal */
.fullscreen-container {
position: relative;
width: 100%;
height: 100vh;
background-image: url('../img/fond_mystere_j.webp'); /* Corrigez le chemin ici */
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
}
/* Texte en haut */
.header-text {
position: absolute;
top: 240px;
width: 350px;
left: 50%;
transform: translateX(-50%);
text-align: center;
font-size: 1.2rem;
font-weight: bold;
color: white;
text-shadow: 2px 2px 4px #000;
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
border-radius: 10px;
display: none; /* Masqué par défaut */
}
/* Conteneur des défis */
.defis-container {
position: absolute;
top: 10px;
width: 100%;
height: 80%; /* Ajustez la hauteur du conteneur */
}
/* Style des images des défis */
.defi-image {
position: absolute;
top: 10px;
width: 120px;
height: auto;
border: 2px solid white;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* Exemple de positionnement des défis */
.defi-1 { top: 00px; left: 50px; }
.defi-2 { top: 00px; left: 180px; }
.defi-3 { top: 00px; left: 300px; }
.defi-4 { top: 120px; left: 50px; }
.defi-5 { top: 120px; left: 180px; }
.defi-6 { top: 120px; left: 300px; }
/* Champ de réponse */
#reponse {
position: absolute;
bottom: 200px;
left: 50%;
transform: translateX(-50%);
width: 80%;
padding: 10px;
font-size: 1.2rem;
border-radius: 5px;
border: none;
outline: none;
display: none; /* Masqué par défaut */
}
/* Bouton de validation */
#valide {
position: absolute;
bottom: 150px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
font-size: 1.2rem;
color: white;
background-color: #007BFF;
border: none;
border-radius: 5px;
cursor: pointer;
display: none; /* Masqué par défaut */
}
/* Style de la popup */
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
background-color: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 10px;
text-align: center;
color: white;
z-index: 1000;
}
.popup img {
width: 350px;
height: auto;
}
.popup .close {
margin-top: 10px;
padding: 10px 20px;
background-color: #FF5722;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
/* Adaptations pour écrans mobiles */
@media (max-width: 768px) {
.defi-image {
width: 60px;
}
#reponse {
font-size: 1rem;
}
#valide {
font-size: 1rem;
}
}