/* Styling the Body element 
i.e. Color, Font, Alignment */
body {
    background-color: #ffffff;
    font-family: Verdana;
    text-align: left;
    margin: 40px 40px 40px 40px
}

/* Styling the Form (Color, Padding, Shadow) */
form {
    background-color: #fff;
    max-width: 700px;
    margin: 50px auto;
    padding: 30px 20px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
}

/* Styling form-control Class */
.form-control {
    text-align: left;
    margin-bottom: 25px;
}

/* Styling form-control Label */
.form-control label {
    display: block;
    margin-bottom: 10px;
}

/* Styling form-control input, 
select, textarea */
.form-control input,
.form-control select,
.form-control textarea {
    border: 1px solid #777;
    border-radius: 2px;
    font-family: inherit;
    padding: 10px;
    display: block;
    width: 95%;
}

/* Styling form-control Radio 
button and Checkbox */
.form-control input[type="radio"],
.form-control input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

/* Styling Button */
button {
    background-color: #cc6767;
    border: 2px solid #289a35;
    border-radius: 2px;
    font-family: inherit;
    color: black;
    font-size: 21px;
    display: block;
    /* width: 100%; */
    margin-top: 10px;
    margin-bottom: 20px;

}
button_small {
    background-color: #cc6767;
    border: 2px solid #289a35;
    border-radius: 2px;
    font-family: inherit;
    font-size: 15px;
    display: block;
    /* width: 100%; */
    margin-top: 10px;
    margin-bottom: 20px;
}


/* Template toggling */
#showtemplate_1, #showtemplate_2 {
    display: none;
}

textarea{
    /* width:700px; */
    /* width:100%; */
    width: 100%;
    max-width: 100%
    /* height:300px; */
  }

[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;
}

/* this is the custom box for the checkbox*/

[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;
}

/* custom checkmark made using only css*/

/* 
[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;

}  
*/

/* this will unhide the custom checkmark */

/* [type="checkbox"]:checked +label::after {
    min-width: 5px;
    min-height: 10px;
} */

/* this is the svg for the checkmark */

[type="checkbox"]+label svg {
    position: absolute;
    width: 28px;
    left: -31px;
    top: -5px;
}

/* this is the polyline for the checkmark svg */

[type="checkbox"]+label svg polyline {
    stroke: white;
    stroke-width: 8;
    fill: none;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    transition: stroke-dashoffset 0.4s;
}

/* change the color of custom checkbox when the original checkbox is in checked state */

[type="checkbox"]:checked+label::before {
    background-color: #191516;
}

/* setting stroke-dashoffset to 0 will reveal the hidden checkmark */

[type="checkbox"]:checked+label svg polyline {
    stroke-dashoffset: 0;
}
/* custom circle for radio button*/
[type="radio"]+label::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: #eee;
    left: -27px;
    top: -1px;
    width: 20px;
    height: 20px;
    transition: all 0.4s;
}

/* fill circle with inset shadow when it is selected*/
[type="radio"]:checked+label::before {
    box-shadow: inset 0 0 0 6px #191516;
}

h1 {
    text-align: center;
}