/*
 * Nunga Quiz master style sheet
 */


.bg-nungabot {
  background-color: white;
  background: url('../img/nunga-bot-small.png') 1% 1% fixed no-repeat;
  background-size: 200px;
}

.app {
  background-color: rgba(255, 255, 255, 0.8);
  color: #006;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;

  margin: 5px auto;
  width: 100%;
  max-width: 640px;
}

/* A spacer <div> to act as padding inside a container <div>. Using padding on
 * the container <div> affects the width calculations.
 */
.spacer {
  margin: 5px;
}

.full-width-panel {
  width: 100%;
  border: 1px solid;
}

.clearboth {
  clear: both;
}

.rounded {
  border-radius: 5px;
}

.bottom-margin {
  margin-bottom: 15px;
}

.bottom-padding {
  padding-bottom: 15px;
}

.align-right {
  text-align: right;
}

.centered {
  text-align: center;
}

/* links styled like a button */
.button-link {
  display: inline-block;
  min-width: 80px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 4px 10px;
  text-decoration: none;
  background: #eee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  transition-duration: 0.1s;
  user-select: none;
}
.button-link:hover,
.button-link:focus {
  background: #ddd;
  border: solid 1px #999;
  text-decoration: none;
}
.button-link:active {
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
  background: #ccc;
  border: solid 1px #888;
}

.button-link img {
  vertical-align: middle;
  margin-right: 2px;
}


/* Welcome page */
.nunga-title {
  margin: 10px 0 20px 0;
  background: url('../img/nunga-bot-small.png') 10px 120px  no-repeat;
  background-size: 250px;
  text-align: right;
  width: 100%;
}
.nunga-title h1 {
  margin: 10px auto;
  font-size: 84pt;
  text-align: center;
}
.nunga-title h2 {
  font-size: 24pt;
  margin: 10px auto;
}
.nunga-title h3 {
  font-size: 16pt;
  color: purple;
}
.nunga-title .char1 { color: red; }
.nunga-title .char2 { color: orange; }
.nunga-title .char3 { color: yellow; }
.nunga-title .char4 { color: green; }
.nunga-title .char5 { color: blue; }

.play-button {
  color: #70f;
  font-size: 48px;
  padding: 15px 30px;
}

.launch {
  margin-top: 200px;
}

/* Section headings */
.section-heading {
  font-weight: bold;
  font-size: 200%;
  margin: 2px 0 10px 0;
  padding-bottom: 7px;
  border-bottom: solid 1px #999;
}
.section-heading img {
  float: left;
  margin: 2px 20px 2px 10px;
  height: 30px;
}

/* nav bar */
nav {
  margin-bottom: 8px;
}

/* Scoreboard */
#scoreboard {
  font-size: 18px;
}

table.scoreboard {
  width: 100%;
  border-collapse: collapse;
}

table.scoreboard caption {
  font-size: 24px;
  color: #400;
  background-color: rgba(230, 240, 250, 0.5); /* light blue */
  padding: 5px;
}

.scoreboard th.rowheader {
  font-weight: bold;
  text-align: left;

  background-color: rgba(230, 240, 250, 0.5); /* light blue */
  padding-left: 5px;
}

.scoreboard th.midheader {
    background-color: rgba(230, 240, 250, 0.5); /* light blue */
}

.scoreboard col {
  width: 20%;
  border-right: 1px solid;
}
.scoreboard col:last-child {
  border-right: none;
}
.scoreboard .datacol col {
}

.scoreboard td {
  text-align: center;
}

.scoreboard tr td:nth-child(odd) {
  background: #eee;
}



/* Question and Marking Panels */
.question-panel {
  /* temp margin: 20px 0; */
  font-size: 24px;
}

.question-number {
  margin: 0 0 5px 0;
}

.question {
  padding: 10px 20px;
  font-size: 32px;
  word-spacing: 10px;
}
.question-form {
  background: #C5D9F1;
  border-radius: 5px;
}

.answer {
  width: 3em;
  text-align: center;
}
.question-form  input#answer {
  font-size: 32px;
  padding: 0 3px;
  color: #800;
  background-color: #fee;
}
.question-panel .button {
  font-size: 24px;
  min-width: 80px;
  float: right;
}
.question-panel .submit {
  margin-left: 10px;
}
.correct-answer {
  font-size: 50px;
  color: #A00;
  border: 1px solid #200;
  padding: 0 10px;
  font-weight: bold;
  vertical-align: middle;
}
.marking-message {
  margin: 5px;
  font-size: 32px;
}
.emoticon {
  width: 150px;
  vertical-align: middle;
  margin: 20px 20px 0 0;
  float: left;
}


/* Question Chooser */
legend {
  font-style: italic;
  margin-bottom: 8px;
}

.question-chooser {
  margin: 3px 20px;
}

.question-chooser .option {
  margin-bottom: 3px;
}

.question-chooser .button {
  font-size: 16px;
  min-width: 80px;
  margin-right: 20px;
}

.question-chooser .submit {
  font-size: 24px;
  min-width: 80px;
  float: right;
  color: #060;
}
.question-chooser .submit:disabled {
  color: #666;
}

.question-chooser .error {
  color: #400;
  font-weight: bold;
  text-align: center;
  font-size: 125%;
}

/* hide spin buttons on number fields */

input[type='number'] {
  -moz-appearance:textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}
