/**
Place all your Mathtutor specific CSS in this file
All global CTAT tutor CSS definitions can be found in CTAT.css
**/

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

/*--------------------------------------------------*\
  #General
\*--------------------------------------------------*/

html, body {
  margin: 0px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

h1, h2, h3 {
  display: none;
}
h4 {
  margin: 0;
  font-size: 14px;
}
h5 {
  margin: 0;
  font-size: 13px;
}

/*--------------------------------------------------*\
  #Tables
\*--------------------------------------------------*/

table {
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
}
caption {
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}
thead td {
  border: none;
}
td, th {
  border: 2px inset;
  height: 25px;
  padding: 0;
  text-align: center;
}
th[scope="col"] {
  padding: 3px;
}
th[scope="row"] {
  border: none;
  padding: 0 5px;
  text-align: right;
}
td > .CTATTextInput {
  width: 100%;
  height: 100%;
}
td > .CTATTextInput input {
  border: none;
}

/*--------------------------------------------------*\
  #CTAT Tutor Panels
\*--------------------------------------------------*/

.CTATTutor {
  margin: 0 auto;
  width: 100%;
  min-width: 600px;
  max-width: 1000px;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-flow: column;
  justify-content: center;
}
aside.CTATTutor {
  position: fixed;
}
.CTATProblemSolving {
  margin: 0 auto;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.CTATProblem,
.CTATSolution {
  border: none;
  border-radius: 5px;
  min-width: 380px;
  padding: 15px;
  flex: 1;
}
.CTATProblem > * + div, .CTATSolution > * + div {
  margin-top: 8px;
}
.CTATTools {
  height: 144px;
  padding: 1px;
  flex: none;
  display: flex;
}
.CTATTools section {
  border: none;
  flex: 1;
  display: flex;
}
.CTATButtons {
  margin: 2px;
  height: 140px;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

/*--------------------------------------------------*\
  #CTAT Components
\*--------------------------------------------------*/

.CTATTextInput {
  text-align: center;
}
.CTATImageButton {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain !important;
}
input:disabled {
  color: black;
}

/*--------------------------------------------------*\
  #CTAT button icon font
\*--------------------------------------------------*/

.CTAT-hint-button--icon,
.CTAT-instructions-button--icon,
.CTAT-done-button--icon,
.CTAT-start-button--icon,
.CTAT-back-button--icon {
  font-family: 'Varela Round', sans-serif;
}

/*--------------------------------------------------*\
  #CTAT button size
\*--------------------------------------------------*/

.CTATBackButton,
.CTATStartButton,
.CTATInstructionsButton {
  width: 68px;
  height: 68px;
}

/*--------------------------------------------------*\
  #CTAT Instructions Button
\*--------------------------------------------------*/

.CTATInstructionsButton {
  font: 15px Helvetica Neue, Helvetica, Arial, sans-serif;
}
.CTAT-instructions-button {
  border: 1px solid;
  border-radius: 5px;
  border-color: steelblue;
  overflow: hidden;
  width: inherit;
  height: inherit;
  padding: 0;
  background-color: #99CCFF;
  font: inherit;
  cursor: pointer;
}
.CTAT-instructions-button:disabled {
  border: 1px solid darkgrey;
  background-color: #EDEDED;
  color: #9A9A9A;
  cursor: default;
}
.CTAT-instructions-button--icon {
  position: relative;
  top: -5px;
  height: 60%;
  font-size: 44px;
  font-weight: bold;
  pointer-events: none;
}
.CTAT-instructions-button--text {
  font-size: 12px;
}

/*--------------------------------------------------*\
  #CTAT Start Button
\*--------------------------------------------------*/

.CTATStartButton {
  font: 15px Helvetica Neue, Helvetica, Arial, sans-serif;
}
.CTAT-start-button {
  border: 1px solid;
  border-radius: 5px;
  border-color: green;
  width: inherit;
  height: inherit;
  padding: 0;
  overflow: hidden;
  background-color: #88CC44;
  font: inherit;
  cursor: pointer;
}
.CTAT-start-button--icon {
  position: relative;
  top: -5px;
  height: 60%;
  font-size: 44px;
  font-weight: bold;
  pointer-events: none;
}

/*--------------------------------------------------*\
  #CTAT Back Button
\*--------------------------------------------------*/

.CTATBackButton {
  display: none;
  font: 15px Helvetica Neue, Helvetica, Arial, sans-serif;
}
.CTAT-back-button {
  border: 1px solid;
  border-radius: 5px;
  border-color: steelblue;
  width: inherit;
  height: inherit;
  padding: 0;
  overflow: hidden;
  background-color: #99CCFF;
  font: inherit;
  cursor: pointer;
}
.CTAT-back-button--icon {
  position: relative;
  top: -5px;
  height: 60%;
  font-size: 44px;
  font-weight: bold;
  pointer-events: none;
  transform: rotate(180deg) translateY(-13px);
}

/*-----------------------------------------------------*\
  #CTAT Instructions Window
\*-----------------------------------------------------*/

.CTATInstructionsWindow {
  margin: 2px;
  border: 1px solid mediumblue;
  border-radius: 5px;
  padding: 5px;
  flex: auto;
  background-color: #99CCFF;
}
.CTATInstructionsItem {
  margin: 5px;
  display: flex;
}
.CTATInstructionsBullet {
  border: 1px solid;
  border-radius: 11px;
  width: 22px;
  height: 22px;
  flex: none;
  background-color: #99CCFF;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
}
.CTATInstructionsText {
  margin-left: 5px;
  flex: auto;
}
