Files
Personal-Website-Project/static/css/quizes.css

140 lines
2.6 KiB
CSS

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to right, #5a0fb8, #1f65d6);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow-x: hidden;
margin: 0;
}
.container {
background: rgba(255, 255, 255, 0.2);
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
max-width: 600px;
width: 90%;
transform: scale(1);
transition: transform 0.3s ease-in-out;
}
h1 {
text-align: center;
font-size: 2em;
margin-bottom: 20px;
}
.question {
margin-bottom: 20px;
font-size: 1.2em;
font-weight: 600;
text-align: center;
}
.answer-options {
margin-top: 15px;
}
.answer-options label {
display: block;
position: relative;
background: linear-gradient(to right, #5a0fb8, #1f65d6);
padding: 10px 15px;
margin-bottom: 10px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.answer-options label:hover {
background: linear-gradient(to right, #1f65d6, #5a0fb8);
color: white;
transform: translateX(5px);
}
.answer-options input {
display: none;
}
.answer-options input:checked + label {
background: linear-gradient(to right, #5a0fb8, #2ecc71);
color: white;
border: 2px solid #27ae60;
}
.submit-button, .quit-button {
display: block;
width: 100%;
padding: 12px;
color: white;
border: none;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: 15px;
text-align: center;
}
.submit-button {
background: linear-gradient(to right, #80e27e, #66c466);
}
.quit-button {
background: linear-gradient(to right, #ff8a80, #ff5252);
}
.submit-button:hover, .quit-button:hover {
transform: scale(1.05);
}
.submit-button:active, .quit-button:active {
transform: scale(0.98);
}
/* Responsive Design */
@media (max-width: 768px) {
h1 {
font-size: 1.8em;
}
.question {
font-size: 1.1em;
}
.answer-options label {
font-size: 0.9em;
padding: 8px 12px;
}
.submit-button, .quit-button {
font-size: 0.9em;
padding: 10px;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.5em;
}
.question {
font-size: 1em;
}
.answer-options label {
font-size: 0.8em;
padding: 6px 10px;
}
.submit-button, .quit-button {
font-size: 0.8em;
padding: 8px;
}
}