/* 選択問題 */
#math100-quizzes div.quiz-set--div-radio,
#math100-quizzes div.quiz-set--div-checkbox {
  display: table-cell;
}
#math100-quizzes div.quiz-set--div-text {
  display: table-cell;
  width: 100%;
}
#math100-quizzes div.quiz-set--div-select {
  display: table;
}

div.content .hidden {
  display: none;
}

/* 解答入力チェック */
#math100-quizzes input.quiz-math-error {
  background-color: #f008;
}

/* 数式用Webフォント設定 */
@font-face {
  font-family: "STIXGeneral";
  font-style: normal;
  src: url("/themes/custom/adwin/fonts/STIXGeneral-Regular.woff2") format('woff2');
}
@font-face {
  font-family: "STIXGeneral";
  font-style: italic;
  src: url("/themes/custom/adwin/fonts/STIXGeneral-Italic.woff2") format('woff2');
}
@font-face {
  font-family: "STIXSizeTwoSym";
  src: url("/themes/custom/adwin/fonts/STIXSizeTwoSym-Regular.woff2") format('woff2');
}
@font-face {
  font-family: "STIXSizeThreeSym";
  src: url("/themes/custom/adwin/fonts/STIXSizeThreeSym-Regular.woff2") format('woff2');
}
@font-face {
  font-family: "MathJax_Main";
  font-style: normal;
  src: url("/themes/custom/adwin/fonts/MathJax/MathJax_Main-Regular.woff") format('woff2');
}
@font-face {
  font-family: "MathJax_Math-italic";
  font-style: italic;
  src: url("/themes/custom/adwin/fonts/MathJax/MathJax_Math-Italic.woff") format('woff2');
}
@font-face {
  font-family: "MathJax_Size2";
  src: url("/themes/custom/adwin/fonts/MathJax/MathJax_Size2-Regular.woff") format('woff2');
}
@font-face {
  font-family: "MathJax_Size3";
  src: url("/themes/custom/adwin/fonts/MathJax/MathJax_Size3-Regular.woff") format('woff2');
}
@font-face {
  font-family: "MathJax_Size4";
  src: url("/themes/custom/adwin/fonts/MathJax/MathJax_Size4-Regular.woff") format('woff2');
}


/* 以下、詳細な設定 */

div.main-container.container {
  max-width: 1000px !important;
  width: auto !important;
}

h2.math100-quiz-set-title {
  border-left: 1.5rem deepskyblue solid;
  padding: 1rem 0 1rem 1.5rem;
}

#math100-quizzes select {
  margin-right: 0.5em;
}

#math100-quizzes input {
  margin-left: 0.5em;
  margin-right: 1em;
  padding-left: 0.2em;
}

#math100-quizzes {
  margin-bottom: 2em;
}

/* 解説ボタン */
#math100-quizzes div.math100-quiz button {
  margin-left: 0.5em;
}
#math100-quizzes div.math100-quiz button[disabled] {
  color: #888;
}

#math100-quizzes div.quiz-set--div-select {
  padding-top: 0.5em;
  margin-top: 0.5em;
  border-top: 1px dashed #aaa;
}
#math100-quizzes div.math100-quiz input {
  margin-left: 0.5em;
  margin-right: 1em;
  margin-bottom: 1em;
}
#math100-quizzes div.math100-quiz input.quiz-math-inputAnswer {
  margin-right: 0.25em;
}
#math100-quizzes div.math100-quiz span.quiz-math-unit {
  margin-right: 0.75em;
}
#math100-quizzes input:disabled {
  color: #888;
}

#math100-quizzes div.math100-quiz {
  border: 1px solid #888;
  margin-bottom: 0.75em;
  padding: 0.5em;
  border-radius: 0.5em;
}
#math100-quizzes div.math100-quiz-sublist {
  margin: 1em 0.5em 0.5em 0.5em;
}
#math100-quizzes div.math100-quiz-sub {
  border: 1px solid #888;
  margin: 1em 1em 0 1em;
  padding: 0.5em 0.5em 0 0.5em;
  border-radius: 0.5em;
}
#math100-quizzes div.math100-quiz-sub input {
  margin-bottom: 0.5em;
}

#math100-quizzes img {
  background-color: #fff;
}

/*
#math100-quizzes div.math100-quiz p:after {
  content: "";
  clear: both;
  display: block;
}
*/

#math100-quizzes div.math100-quiz.correct,
#math100-quizzes div.math100-quiz-sub.correct {
  border: 0.2em dashed #0f0;
  background-color: #cfc;
}

#math100-quizzes div.math100-quiz.incorrect,
#math100-quizzes div.math100-quiz-sub.incorrect {
  border: 0.2em dashed #f00;
  background-color: #fcc;
}

#math100-quizzes div.math100-quiz-sub.correct,
#math100-quizzes div.math100-quiz-sub.incorrect {
  padding: 0.5em;
  border-radius: 0.5em;
}

#math100-quizzes div.num_corrects {
  display: inline;
  font-weight: bold;
}

/* 回答情報欄 */
#math100-info-per-user div.form-item-answer-num,
#math100-info-per-user div.form-item-ratio,
#math100-info-per-user div.form-item-last-ratio {
  width: 33%;
  float: left;
  padding: 0.5em;
  text-align: center;
  font-size: large;
  margin-bottom: 2em;
}
#math100-info-per-user div.form-item-answer-num label,
#math100-info-per-user div.form-item-ratio label,
#math100-info-per-user div.form-item-last-ratio label{
  display: block;
  max-width: 200px;
  border: 1px solid #008;
  margin: 0 auto;
  padding: 0.5em;
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  background-color: #aaf;
}
#math100-info-per-user div.form-item-answer-num div,
#math100-info-per-user div.form-item-ratio div,
#math100-info-per-user div.form-item-last-ratio div{
  max-width: 200px;
  border: 1px solid #008;
  margin: 0 auto;
  padding: 1em;
  border-top: none;
  border-radius: 0 0 0.5em 0.5em;
}
#math100-info-per-user div.form-item-memo {
  clear: both;
}

/* メモ欄 */
#math100-info-per-user div.form-item-memo,
#math100-info-per-user div.form-actions {
  border: 1px solid #aaa;
  padding: 0.5em;
  background-color: whitesmoke;
}
#math100-info-per-user div.form-item-memo {
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

#math100-info-per-user div.form-actions {
  border-top: none;
  border-radius: 0 0 0.5em 0.5em;
}
