/*
 *= require_self
 *= require_tree .
 */

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  color: #1f2933;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
}

a {
  color: rgb(0, 63, 122);
}

hr {
  border: solid black 2px;
  margin-bottom: 3px;
  margin-top: 7px;
  padding: 0;
}

.container {
  margin: 0 auto;
  width: min(960px, calc(100% - 32px));
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.span3 {
  flex: 1 1 220px;
}

.span6 {
  flex: 1 1 460px;
}

.span9 {
  flex: 1 1 700px;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  padding: 8px;
  text-align: left;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #d7dde5;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgb(247, 249, 252);
}

.btn {
  border: 1px solid #b7c0cc;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  padding: 7px 12px;
}

.btn-primary {
  background: rgb(0, 63, 122);
  border-color: rgb(0, 63, 122);
  color: white;
}

.auth-provider {
  margin: 18px 0;
}

.google-sign-in-button {
  align-items: center;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
}

.google-sign-in-button:hover {
  background: #f8fafd;
  border-color: #d2e3fc;
}

.google-sign-in-button:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
  outline: none;
}

.google-sign-in-button__icon {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.modal {
  background: rgba(0, 0, 0, 0.45);
  display: none;
  inset: 0;
  padding: 80px 16px;
  position: fixed;
  z-index: 4000;
}

.modal.is-open {
  display: block;
}

.modal-dialog {
  background: white;
  border-radius: 7px;
  margin: 0 auto;
  max-width: 520px;
  position: relative;
}

.modal-header,
.modal-footer {
  padding: 16px;
}

.modal-footer {
  border-top: 1px solid #d7dde5;
  text-align: right;
}

.logo_class {
  background-color: rgb(234, 208, 170);
  border-radius: 10px;
  border-style: groove;
  color: black;
  display: inline-block;
  font-family: Geneva, Helvetica, Arial, sans-serif;
  font-size: 44px;
  height: 55px;
  line-height: 40pt;
  text-align: center;
  vertical-align: middle;
  width: 55px;
}

.header {
  background-color: rgb(0, 63, 122);
  color: white;
  padding: 15px;
}

.header a:link,
.header a:visited {
  background-color: transparent;
  color: white;
}

.header h1 {
  display: inline-block;
  vertical-align: middle;
}

.workspace {
  background-color: white;
  border-radius: 10px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.open_slot {
  color: grey;
}

.filled_slot {
  color: green;
}

.entry_box {
  font-size: 24pt;
  line-height: 26pt;
  width: 20px;
}

.number_status {
  background-color: rgb(235, 245, 253);
  border-radius: 10px;
  float: right;
  font-size: 14pt;
  line-height: 26pt;
  text-align: center;
  width: 200px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.number_tile {
  align-items: center;
  display: inline-flex;
  font-family: Geneva, Helvetica, Arial, sans-serif;
  font-size: 22pt;
  height: 35px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  width: 35px;
}

.number_source {
  background-color: rgb(234, 208, 170);
  border-radius: 7px;
  border-style: groove;
  cursor: pointer;
  margin: 5px;
  touch-action: none;
  transition: box-shadow 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.number_source:hover,
.number_source:focus {
  box-shadow: 0 0 0 3px rgba(0, 63, 122, 0.25);
  outline: none;
}

.number_source.is-selected {
  box-shadow: 0 0 0 3px rgba(0, 63, 122, 0.45);
  transform: translateY(-1px);
}

.number_source.is-used {
  opacity: 0.45;
}

.number_target {
  background-color: white;
  border: 2px solid grey;
  border-radius: 7px;
  cursor: pointer;
  margin: 3px;
  padding: 1px;
  touch-action: manipulation;
}

.number_target:hover,
.number_target:focus {
  border-color: rgb(0, 63, 122);
  box-shadow: 0 0 0 3px rgba(0, 63, 122, 0.16);
  outline: none;
}

.number_target.filled_slot {
  background-color: rgb(234, 208, 170);
  border-color: rgb(0, 63, 122);
  border-style: groove;
}

.number_drag_ghost {
  background-color: rgb(234, 208, 170);
  border-radius: 7px;
  border-style: groove;
  margin: 0;
  opacity: 0.85;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 3000;
}

.number_plain {
  padding: 6px;
}

.footer {
  color: #5b6775;
  font-size: 0.9rem;
  padding: 18px 10px 24px;
  text-align: center;
}

.footer hr {
  border: 0;
  border-top: 1px solid #d7dde5;
  margin: 0 0 12px;
}

.answer-right {
  color: green;
}

.answer-wrong {
  color: red;
}

.fraction_box {
  display: inline-block;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
}

.question {
  background-color: rgb(235, 245, 253);
  border-radius: 7px;
  display: block;
  float: left;
  font-size: 24pt;
  line-height: 36pt;
  margin: 5px;
}

.simple_question {
  padding: 5px;
  text-align: right;
  width: 150px;
}

.fraction_question {
  text-align: center;
  width: 280px;
}

.puzzle_box {
  border: 2px solid black;
  display: inline-block;
  float: left;
  font-family: Geneva, Helvetica, Arial, sans-serif;
  font-size: 14pt;
  height: 50px;
  line-height: 36pt;
  margin: 3px;
  text-align: center;
  vertical-align: middle;
  width: 50px;
}

.x-close {
  cursor: pointer;
  height: 60px;
  position: absolute;
  right: -20px;
  top: -20px;
  width: 60px;
  z-index: 1;
}

.x-close:hover {
  height: 62px;
  right: -21px;
  top: -21px;
  width: 62px;
}
