/* Styles for Math pages - Bootstrap/JQuery Free Version */
/* 2013-03-22. Vinay Jain - Updated 2025 */

@import url('https://fonts.googleapis.com/css?family=Schoolbell');

/* Sticky footer styles */
html, body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* background:url(../img/wavegrid.png) repeat; */
  /* The html and body elements cannot have any padding or margin. */
}

a {
  color: #08c;
  text-decoration: none;
}

/* Wrapper for page content to push down footer */
#wrap {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -80px;
}

/* Set the fixed height of the footer here */
#footer {
  height: 70px;
}

#push {
  height: 50px;
}

#footer {
  background-color: #f5f5f5;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* Responsive fixes */
@media (max-width: 767px) {
  #footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  ul.nav-tabs {
    margin-left: 0;
    padding-left: 0;
  }
  
  ul.nav-tabs li {
    margin-left: 0;
  }
  
  .sum-question, .minus-question {
    padding-left: 10px;
    text-align: center;
  }
  
  .question2 {
    padding-left: 10px;
    text-align: center;
    margin: 0 auto;
  }
}

/* Container replacement */
.container {
  width: auto;
  max-width: 680px;
}

.container .credit {
  margin: 0;
  font-family: 'Schoolbell', 'Comic Sans MS', cursive, sans-serif;
  color: #888;
}

/* Header styles */
.page-header {
  padding-bottom: 9px;
  margin: 20px 0 5px;
  border-bottom: 0;
}

.head-section {
  background: url(../img/caterpillar-bg.png) no-repeat right;
}

#maincontent {
  margin-top: -15px;
}

#buttons {
  clear: both;
  float: none;
  padding: 25px 0px;
}

/* Question styles */
.sum-question, .minus-question {
  padding-left: 20px;
  font-size: 16pt;
}

h1, .byline, .morelink {
  font-family: 'Schoolbell', 'Comic Sans MS', cursive, sans-serif;
}

h3 {
  color: #999;
  font-size: 24.5px;
}

h1 {
  font-size: 38.5px;
}

h1, h2, h3 {
  line-height: 40px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 15px 0 10px;
}

.byline {
  font-size: 14px;
}

.span3 h3 {
  text-align: left;
}

/* Input styles */
input[type=number] {
  text-align: right;
  font-size: 16pt;
  height: 26pt;
  width: 2.7em;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

input[type=number]:focus {
  border-color: #08c;
  border-style: solid;
  box-shadow: 0 0 8px rgba(8, 136, 204, 0.6);
}

#stopwatch {
  float: right;
  font-size: 16pt;
  color: #999;
  /*cursor:pointer;*/
}

.morelink {
  float: right;
  font-size: 14pt;
}

/* Level 2 questions */
.question2 {
  padding-left: 20px;
  font-size: 16pt;
  line-height: 26pt;
  width: 2.3em;
}

.number-up {
  text-align: right;
}

.number-down {
  text-align: right;
  /*border-bottom:thin solid #000;*/
}

.question2 input[type=number]::-webkit-inner-spin-button,
.question2 input[type=number]::-webkit-outer-spin-button, 
#rapid-answer input[type=number]::-webkit-inner-spin-button,
#rapid-answer input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Navigation tabs */
ul.nav-tabs {
  font-weight: bold;
}

.nav-tabs {
  border-bottom: 1px solid #ddd;
}

.nav {
  margin-bottom: 30px;
  margin-left: 0;
  list-style: none;
}

ul.nav-tabs li {
  display: inline-block;
  margin-bottom: -1px;
}

ul.nav-tabs li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #999;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}

ul.nav-tabs li a:hover {
  background-color: #eee;
  border-color: #eee #eee #ddd;
}

ul.nav-tabs li.active a {
  color: #08c;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  cursor: default;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}

.btn-large {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover {
  background-color: #286090;
  border-color: #204d74;
}

/* Grid system */
.row {
  margin-left: -20px;
  margin-right: -20px;
}

.row:before, .row:after {
  content: " ";
  display: table;
}

.row:after {
  clear: both;
}

.span3 {
  position: relative;
  min-height: 1px;
  padding-left: 20px;
  padding-right: 20px;
  float: left;
  width: 220px;
}

.text-center {
  text-align: center;
}

.muted {
  color: #999;
  font-size: 14px;
  
}

/* Label styles */
.label {
  display: inline-block;
  padding: .25em .6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25em;
}

.label-success {
  background-color: #5cb85c;
}

.label-warning {
  background-color: #f0ad4e;
}

/* Animation classes */
@keyframes tada {
  0% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes fadeInUpBig {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.tada {
  animation-name: tada;
}

.shake {
  animation-name: shake;
}

.fadeInUpBig {
  animation-name: fadeInUpBig;
}

.fadeOut {
  animation-name: fadeOut;
}

/* Icon replacements */
.icon-ok:before {
  content: "✓";
}

.icon-remove:before {
  content: "✗";
}

.icon-repeat:before {
  content: "↻";
}

.icon-white {
  color: #fff;
}

/* Styles for Rapid page */
#rapid-question {
  padding-top: 30px;
  font-size: 22pt;
}

#rapid-answer {
  padding-top: 20px;
}

#answer {
  font-size: 22pt;
  height: 30pt;
}

#splash-alert {
  margin-top: 20px;
  font-size: 20pt;
  font-weight: normal;
}

#give-me-more {
  margin-top: 15px;
  float: none;
}

/* Math operation colors */
.addition {
  color: #036;
}

.subtraction {
  color: #F60;
}

.multiplication {
  color: #060;
}

.division {
  color: #600;
}
