body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
.game-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 2px solid #000;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 90vw;
height: 90vh;
}
.illustration-area {
width: 100%;
height: 300px;
background-color: #ddd;
margin-bottom: 40px;
border: 1px solid #ccc;
border-radius: 5px;
overflow-y: scroll;
}
.seduction-points {
width: 100%;
margin-bottom: 20px;
position: relative;
}
.seduction-bar {
width: 100%;
height: 20px;
background-color: #eee;
border: 1px solid #ccc;
border-radius: 10px;
}
.current-points {
position: relative;
top: 0;
left: 0;
width: 0;
height: 100%;
background-color: #4caf50;
border-radius: 10px;
transition: width 0.5s;
z-index: 1;
}
.target-bar {
position: absolute;
top: -10%;
left: 0;
height: 120%;
border-radius: 5px;
}
.free-play-area, .paid-play-area {
width: 100%;
margin-bottom: 20px;
position: relative;
display: flex; /* Ajout de la flexbox /
flex-wrap: wrap; / Permet de passer à la ligne */
}
.free-play-area button, .paid-play-area button {
width: 100%;
padding: 10px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 5px; /* Ajoute un espace entre les boutons */
}
.free-play-area button:hover, .paid-play-area button:hover {
background-color: #45a049;
}
.charm-points {
width: 100%;
text-align: center;
}
.charm-circle {
display: inline-block;
width: 50px;
height: 50px;
line-height: 50px;
border-radius: 50%;
background-color: #4caf50;
color: white;
text-align: center;
font-weight: bold;
}
.card {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 200px;
height: 300px;
background-color: #fff;
border: 2px solid #000;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 10px;
}
.card .card-name {
font-size: 18px;
font-weight: bold;
text-align: center;
}
.card .card-seduction {
font-size: 24px;
color: red;
}
.card .card-power {
font-size: 14px;
text-align: center;
}
.small-card {
width: 70px;
height: 100px;
background-color: #fff;
border: 2px solid #000;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 10px;
}
.small-card .card-name {
font-size: 8px;
font-weight: bold;
text-align: center;
}
.small-card .card-seduction {
font-size: 8px;
color: red;
}
.small-card .card-power {
font-size: 5px;
text-align: center;
}
#choice-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: block;
}
.challenge-card {
width: 200px;
height: 300px;
background-color: #fff;
border: 2px solid #000;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
align-items: center;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 10px;
display: inline-block;
margin: 10px;
}
.challenge-card .card-name {
font-size: 18px;
font-weight: bold;
text-align: center;
}
.challenge-card .card-seduction {
font-size: 24px;
color: red;
}
.challenge-card .card-power {
font-size: 14px;
text-align: center;
}
#challenge-area {
margin-top: 10%;
padding: 20px;
border-radius: 8px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap; /* Permet de passer à la ligne */
}
.challenge-card.selected {
border: 2px solid red;
}
.card.selected {
border: 2px solid red;
}
.small-card.small-selected {
border: 2px solid red;
}
.validate-button {
width: 100%;
padding: 10px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 5px;
}
.validate-button:hover {
background-color: #45a049;
}
.continue-button {
width: 100%;
padding: 10px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 5px;
}
.continue-button:hover {
background-color: #45a049;
}
#verification {
font-size: 10pt;
}