Body (
Body (
main {
background-color: white;
padding: 10px 40px 40px 40px;
display: block;
text-align: left;
max-width: 500px;
margin: auto;
border-radius: 10px;
}
header {
text-align: center;
}
h1 {
font-size: 40px;
/* color: #002f6c; */
color: #191516;
font-weight: bold;
}
form {
display: flex;
flex-direction: column;
font-size: 22px;
}
#dropdown, option {
outline: none;
}
select {
padding: 7px;
}
textarea {
display: block;
}
.form-group {
padding: 8px 0;
margin-bottom: 2px;
}
.form-group>label {
margin-bottom: 8px;
color: #191516;
display: block;
}
[type="checkbox"]+label>span, [type="radio"]+label {
font-size: 16px;
}
[type="checkbox"], [type="radio"] {
margin: 0 8px 0 0;
box-sizing: border-box;
min-width: 18px;
min-height: 18px;
}
[type="checkbox"] , [type="radio"] {
opacity: 0;
pointer-events: none;
}
.radio-group, .checkbox-group {
display: flex;
flex-direction: row;
margin-bottom: 10px;
position: relative;
}
[type="radio"]+label {
margin: 0 5px 0 0;
font-size: 16px;
position: relative;
cursor: pointer;
}
[type="checkbox"]+label {
margin: 0 5px 0 0;
font-size: 16px;
position: relative;
cursor: pointer;
}
[type="checkbox"]+label::before {
content: '';
min-width: 18px;
min-height: 18px;
position: absolute;
left: -26px;
border-radius: 3px;
/* top: 5px; */
background-color: #eee;
transition: all 0.4s;
}
/*
[type="checkbox"]+label::after {
content: '';
min-width: 0px;
min-height: 0px;
position: absolute;
left: -20px;
top: 2px;
border-right: 1px solid white;
border-bottom: 1px solid white;
background-color:red;
transform: rotateZ(40deg);
transition: all 0.4s;
}
*/
/* [type="checkbox"]:checked +label::after {
min-width: 5px;
min-height: 10px;
} */
[type="checkbox"]+label svg {
position: absolute;
width: 28px;
left: -31px;
top: -5px;
}
/* change the color of custom checkbox when the original checkbox is in checked
state */
[type="checkbox"]:checked+label::before {
background-color: #191516;
}
textarea {
width: 100%;
box-sizing: border-box;
height: 200px;
resize: none;
padding: 4px;
font-size: 16px;
}
button {
width: 100%;
display: block;
height: 40px;
background-color: #191516;
border: none;
font-weight: bold;
font-size: 20px;
color: white;
box-sizing: border-box;
}
#description {
text-align: center;
font-style: italic;
margin-top: -10px;
}