.question {
margin-bottom: 30px;
}
.answers label {
display: flex;
align-items: center;
font-size: 1em;
margin-bottom: 5px;
padding-left: 5px;
cursor: pointer;
min-height: 28px;
position: relative;
}
.answers label input[type="radio"] {
appearance: none;
-webkit-appearance: none;
width: 22px;
height: 22px;
border: 2px solid #222;
border-radius: 2px; background: #fff;
margin-right: 12px;
cursor: pointer;
transition: border-color 0.2s;
position: relative;
box-sizing: border-box;
vertical-align: middle;
top: 0;
}
.answers label input[type="radio"]:hover {
border-color: #000;
}
.answers label input[type="radio"]:checked {
border-color: #000;
background: #fff;
}
.answers label input[type="radio"]:checked::before {
content: '';
display: block;
width: 10px;
height: 10px;
background: #000;
border-radius: 1px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
#result {
margin-top: 0px;
font-weight: bold;
font-size: 1em;
}
.question p {
font-weight: 700;
margin-bottom: 10px;
}
button {
display: block;
width: 100%;
padding: 15px;
font-size: 1.2em;
font-weight: bold;
border: none;
border-radius: 4px;
margin-top: 20px;
cursor: pointer;
background: #20B2AA;
}
button:hover {
background: #8E8E8E;
}
#intro {
margin-bottom: 30px;
}
span.bg-green {
background: #3CAF2E;
}
span.bg-red {
background: #DD1F1F;
}
.explanation {
margin-top: 5px;
font-size: 0.9em;
}
#result {
margin-top: 20px;
}
#feedback {
margin-top: 10px;
font-style: italic;
}
.bg-green { background: #3CAF2E !important; }
.bg-red { background: #DD1F1F !important; }