466 lines
No EOL
8 KiB
CSS
466 lines
No EOL
8 KiB
CSS
.card-game {
|
|
border: 1px solid #cccccc;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
background: #f9f9f9;
|
|
margin: 15px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.card-game:hover {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.card-game .header {
|
|
border-bottom: 1px solid #cccccc;
|
|
padding: 10px;
|
|
background: #e0e0e0;
|
|
color: #333333;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.card-game .header a {
|
|
color: #0066cc;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card-game .header a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.card-game .body {
|
|
padding: 10px;
|
|
color: #333333;
|
|
}
|
|
|
|
.card-game .footer {
|
|
border-top: 1px solid #cccccc;
|
|
background-color: #e0e0e0;
|
|
padding: 10px;
|
|
font-size: 0.8rem;
|
|
color: #333333;
|
|
}
|
|
|
|
ul.inline {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
ul.inline li {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0 10px 0 0;
|
|
}
|
|
|
|
.countdown {
|
|
font-size: 20px;
|
|
color: red;
|
|
text-align: center;
|
|
}
|
|
|
|
/* PETIT BAC */
|
|
.game-bac-letter {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 60px;
|
|
border: 2px solid #cccccc;
|
|
background: #f0f0f0;
|
|
color: #333333;
|
|
font-family: 'Verdana', sans-serif;
|
|
border-radius: 5px;
|
|
margin: auto;
|
|
padding: 10px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
table.bac, table.bac th, table.bac tr, table.bac td {
|
|
border: 1px solid #cccccc;
|
|
}
|
|
|
|
table.bac {
|
|
width: 90%;
|
|
margin: auto;
|
|
border-collapse: collapse;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
table.bac th {
|
|
background: #e0e0e0;
|
|
color: #333333;
|
|
}
|
|
|
|
table.bac th, table.bac td {
|
|
text-align: center;
|
|
padding: 5px;
|
|
}
|
|
|
|
/* QUIZ */
|
|
|
|
table.quiz, table.quiz th, table.quiz tr, table.quiz td {
|
|
border: 1px solid #cccccc;
|
|
}
|
|
|
|
table.quiz {
|
|
width: 90%;
|
|
margin: auto;
|
|
border-collapse: collapse;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
table.quiz th {
|
|
background: #e0e0e0;
|
|
color: #333333;
|
|
}
|
|
|
|
table.quiz th, table.quiz td {
|
|
text-align: center;
|
|
padding: 5px;
|
|
}
|
|
|
|
/* QUIZ */
|
|
.quizes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.quiz-item {
|
|
flex: 1 1 300px;
|
|
border: 1px solid #cccccc;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
background: #f9f9f9;
|
|
padding: 15px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.quiz-item:hover {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.quiz-item h3 {
|
|
border-bottom: 1px solid #cccccc;
|
|
padding-bottom: 10px;
|
|
margin-top: 0;
|
|
color: #333333;
|
|
}
|
|
|
|
.quiz-item h3 a {
|
|
color: #0066cc;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.quiz-item h3 a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.quiz-item p {
|
|
color: #333333;
|
|
margin: 8px 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.quiz-item p:last-child {
|
|
font-weight: bold;
|
|
color: #666666;
|
|
}
|
|
|
|
/* Quiz Styles */
|
|
.quiz-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
font-family: 'Verdana', sans-serif;
|
|
}
|
|
|
|
.quiz-title {
|
|
color: #333333;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
font-size: 2rem;
|
|
text-transform: uppercase;
|
|
border-bottom: 2px solid #cccccc;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.quiz-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.quiz-question {
|
|
background: #f9f9f9;
|
|
border: 1px solid #cccccc;
|
|
margin-bottom: 20px;
|
|
border-radius: 5px;
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.question-header {
|
|
background: linear-gradient(to bottom, #e0e0e0, #cccccc);
|
|
padding: 10px 15px;
|
|
color: #333333;
|
|
font-weight: bold;
|
|
border-bottom: 1px solid #cccccc;
|
|
}
|
|
|
|
.question-content {
|
|
padding: 20px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.question-content h3 {
|
|
color: #0066cc;
|
|
margin-bottom: 15px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.choices-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.choice-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 3px;
|
|
background: #f5f5f5;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.choice-item:hover {
|
|
background: #e6e6e6;
|
|
border-color: #cccccc;
|
|
}
|
|
|
|
.choice-item input[type="radio"] {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.choice-item label {
|
|
color: #333333;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
}
|
|
|
|
.submit-container {
|
|
text-align: center;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.submit-button {
|
|
background: linear-gradient(to bottom, #4d90fe, #357ae8);
|
|
color: white;
|
|
border: 1px solid #2f5bb7;
|
|
padding: 12px 30px;
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
font-family: 'Arial', sans-serif;
|
|
font-weight: bold;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.submit-button:hover {
|
|
background: linear-gradient(to bottom, #357ae8, #2f5bb7);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Quiz Results Styles */
|
|
.quiz-result-container {
|
|
max-width: 800px;
|
|
margin: 40px auto;
|
|
padding: 20px;
|
|
background: #ffffff;
|
|
border: 1px solid #cccccc;
|
|
border-radius: 5px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.quiz-result-card {
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.score-number {
|
|
font-size: 36px;
|
|
font-weight: bold;
|
|
color: #0066cc;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.score-number.high { color: #008000; }
|
|
.score-number.medium { color: #FFA500; }
|
|
.score-number.low { color: #FF0000; }
|
|
|
|
.score-message {
|
|
color: #333333;
|
|
font-size: 18px;
|
|
margin: 15px 0;
|
|
font-family: 'Verdana', sans-serif;
|
|
}
|
|
|
|
.quiz-score {
|
|
float: right;
|
|
background: #e0e0e0;
|
|
color: #333333;
|
|
font-size: 0.9rem;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
border: 1px solid #cccccc;
|
|
}
|
|
|
|
.progress-circle {
|
|
position: relative;
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
.circular-chart {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: rotate(-90deg); /* Fait démarrer la progression à midi */
|
|
}
|
|
|
|
.progress-path {
|
|
stroke-linecap: round;
|
|
transition: stroke-dasharray 0.5s ease;
|
|
}
|
|
|
|
/* Couleurs pour les différents niveaux */
|
|
.progress-path.high {
|
|
stroke: #4caf50;
|
|
}
|
|
|
|
.progress-path.medium {
|
|
stroke: #ff9800;
|
|
}
|
|
|
|
.progress-path.low {
|
|
stroke: #f44336;
|
|
}
|
|
|
|
.percentage-text {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.progress-circle-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.progress-circle {
|
|
width: 200px;
|
|
height: 200px;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-path {
|
|
transition: stroke-dasharray 0.3s ease;
|
|
}
|
|
|
|
.high {
|
|
stroke: #4caf50; /* Green */
|
|
}
|
|
|
|
.medium {
|
|
stroke: #ffeb3b; /* Yellow */
|
|
}
|
|
|
|
.low {
|
|
stroke: #f44336; /* Red */
|
|
}
|
|
|
|
/* Responsive table styles */
|
|
.responsive-table {
|
|
width: 100%;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.responsive-table input[type="text"] {
|
|
width: 100%;
|
|
padding: 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Mobile first styles */
|
|
@media screen and (max-width: 600px) {
|
|
.responsive-table thead {
|
|
display: none;
|
|
}
|
|
|
|
.responsive-table tr {
|
|
margin-bottom: 20px;
|
|
display: block;
|
|
border: 1px solid #cccccc;
|
|
}
|
|
|
|
.responsive-table td {
|
|
display: block;
|
|
text-align: left;
|
|
border: none;
|
|
border-bottom: 1px solid #cccccc;
|
|
}
|
|
|
|
.responsive-table td:before {
|
|
content: attr(data-label);
|
|
font-weight: bold;
|
|
display: inline-block;
|
|
width: 100%;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.game-bac-letter {
|
|
position: static;
|
|
text-align: center;
|
|
margin: 1em auto;
|
|
width: fit-content;
|
|
}
|
|
}
|
|
|
|
/* Desktop styles */
|
|
@media screen and (min-width: 601px) {
|
|
.responsive-table {
|
|
display: table;
|
|
}
|
|
|
|
.responsive-table thead {
|
|
display: table-header-group;
|
|
}
|
|
|
|
.responsive-table tbody {
|
|
display: table-row-group;
|
|
}
|
|
|
|
.responsive-table tr {
|
|
display: table-row;
|
|
}
|
|
|
|
.responsive-table td,
|
|
.responsive-table th {
|
|
display: table-cell;
|
|
}
|
|
|
|
.responsive-table td:before {
|
|
content: none;
|
|
}
|
|
|
|
.responsive-table input[type="text"] {
|
|
width: 90%;
|
|
}
|
|
} |