.centerize { text-align: center; margin: 0 auto; }
.hidden { display: none; }
.red { color: red; }
.btn-primary { max-width: 7em; }

.floatButton {
  position: absolute;
  top: 1em;
  right: 1em;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.column {
  left: 0;
  top: 0;
}

kbd {
  border: 1px solid #aaa;
  border-radius: 0.2em;
  box-shadow: 0.1em 0.2em 0.2em #ddd;
  background-color: #f9f9f9;
  padding: 0 0.5em;
  font-family: inherit;
  font-size: 0.9em;
}

/*
button {
  box-shadow: inset 0px 1px 0px 0px #5AF;
  background-color: #06A;
  border-radius: 3px;
  border: 1px solid #147;
  cursor: pointer;
  color: #FFF;
  padding: 3px 10px;
}
button:hover {
  background-color: #059;
}
*/

/*****************************************************************/

#wrapper {
  position: fixed;
  width: 350px;
  background-color: #F3F3FF;
  border-bottom-right-radius: 1em;
}

#wrapper h1 {
  font-size: 120%;
  margin: 0.5em auto;
}

#wrapper h2 {
  font-size: 100%;
  margin: 0.8em auto 0.5em;
}

#instruction, #warning, #answerForm, #footer, #navbar {
  margin: 0.8em;
}

#warning {
  margin-top: 3em;
  margin-bottom: -1em;
  padding: 0.8em;
  text-align: center;
  color: #D22;
  background-color: #EDD;
  font-weight: bold;
}

#showingInstruction {
  font-size: 85%;
  padding: 0.2em 1em;
  width: 600px;
  position: absolute;
  margin-left: 100px;
  border-radius: 1em;
  background-color: #ded;
  border: 2px solid #bcb;
}

#showingInstruction h2 {
  margin: 0.5em 0 0.3em;
  font-size: 108%;
}

#showingInstruction p {
  margin: 0.3em 0;
}

#showingInstruction ul {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  padding-left: 1em;
}

#showingInstruction ul li {
  margin-bottom: 0.3em;
  line-height: 1.4em;
}

#showingInstruction .button {
  border: 1px solid gray;
  border-radius: 0.2em;
  border-style: outset;
  background-color: #DDD;
  padding: 0 0.5em;
  white-space: nowrap;
  font-size: 0.9em;
}

#showingInstruction .whitebox {
  background-color: #F9F9FF;
  border: 1px solid gray;
  padding: 0 3px;
}

#showingInstruction .redbox {
  background-color: #F9DDDD;
  border: 1px solid gray;
  padding: 0 3px;
}

#qNum {
  margin: 0 0.5em;
}

#navbar button {
  width: 7em;
  height: 2.5em;
}

#navbar button:disabled {
  color: #aaa;
}

.questionText {
  padding: 0.5em;
  text-align: center;
  border: 1px solid #CCC;
  background-color: #F9F9FF;
}

#answerForm fieldset {
  border: none;
  padding: 0;
}

#answerForm textarea  {
  width: 96%;
  margin-top: 0.5em;
}

#answerForm button.s {
  padding: 2px 0;
}

#answerForm p {
  margin: 0.5em 0 0.3em;
}

#answerForm input[type=radio] {
  margin-right: 0.5em;
  margin-top: -2px;
  vertical-align: middle;
}

#answerForm label {
  cursor: pointer;
  display: inline-block;
  width: 98%;
}

#answerForm ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

/*****************************************************************/

#webpage {
  position: absolute;
  margin-left: 350px;
  padding: 1em;
}

#webpage .table {
  position: relative;
}

#webpage .table-info {
  position: fixed;
  top: 1em;
  border: 1px solid #BCB;
  background-color: #EFE;
  padding: 0.4em 0.8em;
}
#webpage .table-info * {
  vertical-align: text-bottom;
}

#webpage .table-lower {
  margin-top: 3em;
}

#webpage h2 {
  font-size: 108%;
  margin-top: 0;
}

#webpage a {
  text-decoration: none;
  color: #0645AD;
}
#webpage a:hover {
  text-decoration: underline;
}

#webpage table {
  border-collapse: collapse;
}

#webpage table, #webpage th, #webpage td {
  border: 1px solid #DDD;
  padding: 2px 8px;
  cursor: pointer;
}

#webpage th {
  background-color: #DDD;
}
#webpage th.selected {
  background-color: #BBB;
}
#webpage td {
  background-color: #FFF;
}
#webpage td.selected {
  background-color: #F6B900;
}
#webpage table td:hover {
  background-color: #CCD;
}
#webpage table td.selected:hover {
  background-color: #E87D00;
}
