/* CSS common to all public HTML pages in Exam site */
/* Copyright (c) 2018 HanoverSoft */

p {
    margin-left: 1em;
    margin-right: 1em;
}

.label {
    clear: left;
    width: 35%;
    float: left;
    text-align: right;
    margin-right: 1em;
}

.textinput {
    width: 10em;
    float: left;
}

.page_title {
    color: white;
    background-color: lightgreen;
}

.box {
    background-color: lightgreen;
    border: 1px black solid;
    padding-top: 2em;
    padding-bottom: 1.5em;
    margin-top: 1em;
    margin-left: 10%;
    width: 40%;
    border-radius: 1em;
    clear: left;
}

.gobutton {
    width: 6em;
    margin-left: 1em;
    float: left;
    color: white;
    background-color: green;
    border-radius: .5em;
}

.qbox {
    background-color: lightgreen;
    border: 1px black solid;
    padding-top: .5em;
    padding-bottom: 1.5em;
    margin-top: 1em;
    margin-left: 10%;
    width: 80%;
    margin-bottom: 1em;
    border-radius: 1em;
    clear: left;
}

.rbox {
    background-color: lightgreen;
    border: 1px black solid;
    padding-top: .5em;
    padding-bottom: .5em;
    margin-top: 1em;
    margin-left: 10%;
    width: 80%;
    margin-bottom: 1em;
    border-radius: 1em;
    clear: left;
}

.pickoption {
    width: 2em;
    margin-left: 1em;
    margin-right: 1em;
    float: left;
    color: white;
    background-color: green;
    border-radius: .5em;
}

.pickedoption {
    width: 2em;
    margin-left: 1em;
    margin-right: 1em;
    float: left;
    color: black;
    background-color: white;
    border-radius: .5em;
}

.prevbutton {
    width: 8em;
    margin-left: 1em;
    float: left;
    color: white;
    background-color: green;
    border-radius: .5em;
}

.nextbutton {
    width: 6em;
    margin-left: 1em;
    float: left;
    color: white;
    background-color: green;
    border-radius: .5em;
}

.resetbutton {
    width: 8em;
    margin-left: 1em;
    margin-right: 1em;
    color: white;
    background-color: green;
    border-radius: .5em;
    display: inline;
    float: inherit;
    clear: none;
}

.error {
    color: red;
}

.yay {
    color: green;
    text-align: center;
    font-size: 150%;
    border: 1px black solid;
    padding-top: 1em;
    padding-bottom: 1em;
}

.tryagain {
    color: red;
    border: 1px black solid;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
}

.exampass {
    color: green;
    text-align: center;
}

.examretake {
    color: red;
    text-align: center;
}

.exam-email {
}
.exam-name {
    padding-left: 1em;
}
.exam-completed {
    text-align: center;
}
.exam-grade {
    text-align: center;
}
.exam-status {
    text-align: center;
}

.logoff {
    border-radius: .5em;
    background-color: lightgreen;
    float: right;
    padding-top: .5em;
    padding-bottom: .5em;
    padding-left: .5em;
    padding-right: .5em;
    margin-right: 2em;
}

/* "Start your retake exam" - a link, styled to match the site's buttons so it
   reads as the thing to click next */
.retakebutton {
    display: inline-block;
    color: white;
    background-color: green;
    border-radius: .5em;
    padding-top: .3em;
    padding-bottom: .3em;
    padding-left: .8em;
    padding-right: .8em;
    text-decoration: none;
}

.retakebutton:hover {
    background-color: darkgreen;
}

/* Attestation box at the end of an exam.
   The question, the YES field and the Confirm button are centred as one group.
   The question deliberately does NOT use .label: that class is a 35%-wide
   floated column, which squeezed the sentence until "yourself:" wrapped onto a
   line of its own and left a wide empty gap to its right. */
.attestbox {
    background-color: lightgreen;
    border: 1px black solid;
    border-radius: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 10%;
    width: 80%;
    padding-top: 1em;
    padding-bottom: 1em;
    text-align: center;
    clear: left;
}

.attestlabel {
    display: block;
    text-align: center;
    margin-bottom: .75em;
}

/* Undo the floating that .textinput and .nextbutton use elsewhere, so both
   sit on one centred line inside the box */
.attestbox .attestinput {
    float: none;
    display: inline-block;
    width: 8em;
    margin-right: .5em;
    vertical-align: middle;
}

.attestbox .nextbutton {
    float: none;
    display: inline-block;
    margin-left: 0;
    vertical-align: middle;
}

/* Admin identity bar - who you are signed in as, plus the way out */
.adminbar {
    clear: both;
    font-size: small;
    color: #555;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding-top: .4em;
    padding-bottom: .4em;
    margin-top: 0;
    margin-bottom: 1.5em;
}
