h3 {
    font-weight: 500;
    margin: 25px 0 30px;
}

#testDescription #revealTest {
    display: block;
    float: left;
    padding-top: 0;
    border-top: none;
}

#testDescription span#revealTest  {
    margin-top: 0;
}

form.saveResult {
    background: white;
    margin: 5% auto;
    max-width: 800px;
    padding: 25px;
    text-align: center;
    width: 90%;
}

form.saveResult table {
    margin: auto;
    text-align: left;;
}

form.saveResult td:first-of-type {
    vertical-align: top;
}

form.saveResult tr:not(:last-of-type) td:last-of-type {
    padding-bottom: 25px;
}

form.saveResult .survey {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.05);
    border: 1px solid darkgray;
    padding: 25px;
    width: 500px;
    margin: 0 auto 25px auto;
}

div.progressBar {
    background-color: rgba(127, 178, 64, 0.5);
    width: 0;
    height: 10px;
    border-radius: 5px;
}

span.progressPercent {
    display: inline-block;
    margin-top: 10px;
}

div.selfTestQuestions ~ div.selfTestQuestions {
    display: none;
}

div.selfTestQuestions table {
    width: 100%;
    margin-top: 25px;
}

div.selfTestQuestions td {
    padding: 15px;
    vertical-align: middle;
}

div.selfTestQuestions tbody td:first-of-type {
    width: 50%;
}

div.selfTestQuestions td:not(:first-of-type) {
    text-align: center;
}

div.selfTestQuestions thead {
    background-color: #7fb23f;
    color: white;
}

button.next, button.finalize {
    float: right;
    margin: 25px 0 25px;
}

#socialshareprivacy {
    float: right;
    height: 35px;
    margin-top: -10px;
}

#socialshareprivacy .info {
    display: none;
}

div.selfTestQuestions td.answer {
    padding: 0;
    position: relative;
    transition: background-color 100ms linear;
}

div.selfTestQuestions td.answer label {
    width: 100%;
    height: 100%;
    display: block;
}

img.testImage {
    border-radius: 15px;
    float: left;
    margin: 0 15px 5px 0;
    max-height: 200px;
}

.selfTestQuestions {
    text-align: left;
}

.groupText p {
    margin: 0;
}

#testDescription em {
    font-size: 0.875em;
    color: #808080;
}

#testDescription > span {
    display: block;
    border-top: 1px solid #dcdcdc;
    margin-top: 50px;
    padding-top: 50px;
    font-size: inherit;
}

#hiddenArea div p {
    text-align: justify;
}

.shariff {
    float: right;
    margin-top: 0;
}

form#login td::before {
    background: none;
    content: none;
    float: none;
    padding: 0;
    text-align: left;
    width: 0;
}

form#login tr {
    margin-bottom: 0;
}

/* remove standard-styles */
.selfTestQuestions input[type='radio'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border:none;
    border-radius: 0;
    font-size: 1em;
    width: 100%
}

/* graceful degradation for ie8 */
.selfTestQuestions input[type='radio'] {
    width:auto;
    float:left;
    margin-right: .75em;
    background:transparent;
    border:none;
}

.selfTestQuestions input[type='radio']:checked,
.selfTestQuestions input[type='radio']:not(:checked) {
    background: transparent;
    position: relative;
    visibility: hidden;
    margin:0;
    padding:0;
}

.selfTestQuestions input[type='radio'] + label {
    cursor: pointer;
}

.saveResult input[type='radio'] + label {
    margin-left: 25px;
}

.selfTestQuestions input[type='radio']:checked + label::before,
.selfTestQuestions input[type='radio']:not(:checked) + label::before {
    content:' ';
    display: block;
    width: 17px;
    height:17px;
    border: 1px solid #bbb;
    background: white;
    margin: auto;
    box-shadow: inset 0 1px 1px 0 rgba(0,0,0,.1);
}

.saveResult input[type='radio']:checked + label::before,
.saveResult input[type='radio']:not(:checked) + label::before {
    display: inline-block;
    margin-right: 0.5em;
    position: relative;
    top: 4px;
}

.selfTestQuestions input[type=radio]:checked + label::before,
.selfTestQuestions input[type=radio]:not(:checked) + label::before {
    border-radius: 30px;
}

.selfTestQuestions input[type='radio']:hover  + label::before {
    background: #7fb23f;
    box-shadow: inset 0 0 0 2px white;
}

.selfTestQuestions input[type='radio']:checked  + label::before {
    background: #7fb23f;
    box-shadow: inset 0 0 0 2px white;
}

.outroText {
    float: left;
    margin-top: 25px;
    text-align: left;
    width: 75%;
    font-style: italic;
    color: #808080;
    font-size: 0.875em;
}

.modalLayer > div.confirm {
    padding: 60px;
}

@media (max-width: 767px) {
    h1 {
        text-align: center;
    }

    #testPic {
        background-image: url('<?php echo \Config::getProjectUrl() . $selfTest->getImagePath(); ?>');
        background-size: cover;
        overflow: hidden;
        height: 50%;
        width: 50%;
        padding: 0;
        margin: 25px auto 25px auto !important;
    }

    .shariff, #revealTest {
        float: none !important;
    }

    .shariff {
        margin-bottom: 20px;
    }

    #testDescription p:last-of-type {
        margin-bottom: 30px;
    }

    button.next, button.finalize {
        float: none;
    }

    .outroText {
        width: auto;
        float: none !important;
    }
}