You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
2.4 KiB
146 lines
2.4 KiB
6 months ago
|
/* General styling for the body */
|
||
|
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
background-color: #f4f7fc;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
.quiz-container {
|
||
|
width: 50%;
|
||
|
margin: 0 auto;
|
||
|
background-color: #ffffff;
|
||
|
padding: 20px;
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
||
|
margin-top: 50px;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 28px;
|
||
|
margin-bottom: 20px;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
#quiz-form {
|
||
|
margin-top: 20px;
|
||
|
}
|
||
|
|
||
|
form {
|
||
|
display: block;
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
font-size: 18px;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
label {
|
||
|
display: block;
|
||
|
font-size: 16px;
|
||
|
margin-bottom: 8px;
|
||
|
text-align: left; /* Ensure left alignment */
|
||
|
padding-left: 20px; /* Adding padding to align left better */
|
||
|
}
|
||
|
|
||
|
input[type="radio"] {
|
||
|
margin-right: 10px;
|
||
|
vertical-align: middle; /* Align radio buttons with text */
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
background-color: #4CAF50;
|
||
|
color: white;
|
||
|
padding: 10px 20px;
|
||
|
border: none;
|
||
|
border-radius: 5px;
|
||
|
cursor: pointer;
|
||
|
font-size: 18px;
|
||
|
margin-top: 20px;
|
||
|
transition: background-color 0.3s ease;
|
||
|
}
|
||
|
|
||
|
button:hover {
|
||
|
background-color: #45a049;
|
||
|
}
|
||
|
|
||
|
button:active {
|
||
|
background-color: #388e3c;
|
||
|
}
|
||
|
|
||
|
.retry-button {
|
||
|
background-color: #007bff;
|
||
|
color: white;
|
||
|
text-decoration: none;
|
||
|
padding: 10px 20px;
|
||
|
border-radius: 5px;
|
||
|
display: inline-block;
|
||
|
margin-top: 20px;
|
||
|
font-size: 18px;
|
||
|
transition: background-color 0.3s ease;
|
||
|
}
|
||
|
|
||
|
.retry-button:hover {
|
||
|
background-color: #0056b3;
|
||
|
}
|
||
|
|
||
|
.retry-button:active {
|
||
|
background-color: #003d7a;
|
||
|
}
|
||
|
|
||
|
/* Add spacing between questions */
|
||
|
.quiz-container form {
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
|
||
|
/* Improve spacing between options */
|
||
|
label {
|
||
|
margin-bottom: 12px;
|
||
|
}
|
||
|
|
||
|
/* Styling for the results page */
|
||
|
.results-container {
|
||
|
text-align: center;
|
||
|
padding: 20px;
|
||
|
}
|
||
|
|
||
|
.results-container h1 {
|
||
|
font-size: 32px;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
.results-container p {
|
||
|
font-size: 20px;
|
||
|
color: #555;
|
||
|
}
|
||
|
|
||
|
.results-container .retry-button {
|
||
|
background-color: #28a745;
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
.results-container .retry-button:hover {
|
||
|
background-color: #218838;
|
||
|
}
|
||
|
|
||
|
.results-container .retry-button:active {
|
||
|
background-color: #1e7e34;
|
||
|
}
|
||
|
.submit-link {
|
||
|
display: inline-block;
|
||
|
padding: 10px 20px;
|
||
|
background-color: #007bff;
|
||
|
color: white;
|
||
|
text-decoration: none;
|
||
|
border-radius: 5px;
|
||
|
text-align: center;
|
||
|
margin-top: 20px;
|
||
|
}
|
||
|
|
||
|
.submit-link:hover {
|
||
|
background-color: #0056b3;
|
||
|
}
|