/* Normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block;
}
span {
  content: "\00D7";
}
html {
    -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
}
body {
    margin: 0;
    overscroll-behavior: contain; /*prevent scroll down refresh*/
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Opera and Firefox */
}
::-moz-selection {
    background-color: hsla(0,0%,0%,.5);
    color: #fff;
    text-shadow: none;
}
::selection {
    background-color: hsla(0,0%,0%,.5);
    color: #fff;
    text-shadow: none;
}
a:focus {
    outline: thin dotted;
}
a:active,
a:hover {
    outline: 0;
}
strong {
    font-weight: bold;
}
mark {
    background: #ff6;
    color: #444;
}
code,
pre {
    font-family: monospace, serif;
    font-size: 1em;
}
pre {
    white-space: pre;
}
img {
    border: 0;
    max-width: 100%;
    vertical-align: top;
}
figure {
    margin: 0;
}
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}
button,
input {
    line-height: normal;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
textarea {
    overflow: auto;
    vertical-align: top;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/* PROJECT */

html {
  background: #eee;
  color: #111;
  font-family: "Open Sans", sans-serif;
  text-align: center;
}
h1 {
  background: #fff500;
  background: #4064af;
  color: #fff;
  margin-bottom: 0;
  margin-top: 0;
  padding: 36px 24px;
  text-align: center;
  text-transform: uppercase;
  font-family: oswald,serif;
}
.lightning-app {
  padding: 0;
}
.app-options {
  background: #bbc1e2;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.app-options div {
  display: block;
  margin: 10px;
}
.button {
  appearance: none;
  background: #3c3d3c;
  border: 3px solid #1a1a1a;
  border-radius: 6px;
  box-shadow: 0 4px 0 #1a1a1a;
  color: #fff500;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-top: 24px;
  outline: 0;
  padding: 10px 22px;
  position: relative;
  text-shadow: 0 -1px 0 #1a1a1a;
  text-transform: uppercase;
  top: -3px;
  transition: background 0.15s;
}
.button:hover,
.button:focus {
  //background: #2b2b2b;
}
.button:disabled {
  opacity: 0.75;
}
.button:disabled:hover,
.button:disabled:focus {
  background: #3c3d3c;
  cursor: default;
}
.button:active,
.button:disabled {
  box-shadow: 0 2px 0 #1a1a1a;
  outline: 0;
  top: -1px;
}
.set-card-value {
  margin-left: 4px;
  margin-right: 24px;
}
.app-output {
  display: inline-block;
  margin-bottom: 24px;
  position: relative;
  text-align: center;
  vertical-align: top;
}
.card {
  background-color: #c8c9cb;
  background-image: url('http://thinksquare.com.au/20-card-dash/i/Lightning%20Multiplication%20card%20front%20(thicker%20lines%20yellow%20lightning).png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 6px;
  box-shadow: 0 2px 2px hsla(0,0%,0%,0.25);
  display: inline-block;
  height: 200px;
  margin:10px;
  position: relative;
  width: 148px;
  vertical-align: top;
}
.card img {
  border-radius: 6px;
  height: 200px;
  left: 0;
  position: absolute;
  top: 0;
  width: 148px;
  vertical-align: top;
  z-index: -1;
}
.card.set-card {
  background-color: #bbc1e2;
}
.card img.this-card-has-been-set {
  z-index: 1;
}
.card.operator {
  background-color: #c8c9cb;
  background-image: url('http://thinksquare.com.au/20-card-dash/i/Grey%20Multiply.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.random-cards {
  position: relative;
}
.random-card,
.card-back {
  background-size: 100% 100%;
  border-radius: 6px;
  box-shadow: 0 2px 2px hsla(0,0%,0%,0.15);
  display: block;
  height: 200px;
  position: absolute;
  top: 0;
  width: 148px;
  vertical-align: top;
}
.random-card {
  animation: slide 0.5s ease;
  z-index: 1 !important;
}
.card-completed {
  opacity: 0;
  top: -250px !important;
  transform: rotate(90deg);
  transition: 0.5s;
}
@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(-48px) rotate(10deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
.output-area {
  position: relative;
  text-align: center;
}
.equals-sign {
  display: inline-block;
  margin-top: 54px;
  position: relative;
  vertical-align: top;
  height: 94px;
}
.equals-sign:after,
.equals-sign:before {
  background: #58585a;
  content: '';
  height: 12px;
  position: absolute;
  right: 24px;
  top: 28px;
  width: 48px;
}
.equals-sign:after {
  bottom: 28px;
  top: auto;
}
.status {
  color: #00a129;
  display: none;
  font-size: 24px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}
.status.correct {
  display: block;
}

#Win_Heading.correct {
  color: green;
}

#Win_Heading.failed {
  color: red;
}

.answer {
  background: #fff;
  border: 4px solid #6e6e6e;
  border-radius: 6px;
  color: #000;
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
  outline: 0;
  padding: 12px;
  transition: 0.15s;
  width: 280px;
  vertical-align: top;
}
.answer:focus,
.answer.populated {
  border-color: #2b2b2b;
}
.answer.wrong {
  border-color: #ed1c25;
}
.answer.right {
  border-color: #00a129;
}
.answer:disabled {
  opacity: 1;
}
.hint {
  bottom: 80px;
  font-size: 15px;
  font-style: italic;
  left: 0;
  margin-bottom: 0;
  position: absolute;
  right: 0;
}
.number-pad {
  display: inline-block;
  margin-left: -12px;
  margin-top: 12px;
  text-align: center;
  vertical-align: top;
  touch-action: manipulation; /*disable double tap zoom here*/
  /*disable click and drag select of number pad on cpu*/
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}
.number-pad .button {
  font-size: 18px;
  margin-bottom: 14px;
  margin-left: 12px;
  margin-top: 0;
  text-align: center;
  width: 96px;
  vertical-align: top;
}
.number-pad .npclear {
  width: 204px;
}

.this_stars_div {
  width: 300px;
  margin: auto;
}

.All_Stars_div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 670px;
  margin: auto;
}

.achievements_heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  padding: 10px;
}

.achievements_heading h3 {
  padding-left: 10px;
  padding-right: 10px;
}

.all-stars-display {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.star-container {
  display: flex;
  flex-direction: column;
  width: 90px;
  height: 90px;
  justify-content: space-between;
  padding: 10px;
  margin: 10px;
  border: 2px solid black;
  border-radius: 15px;
  background: #bbc1e2;
}

.number-text {
  font-size: 50px;
  font-weight: 700;
}

.linebreak {
  width: 100%;
}

@media (max-width: 820px) {
  .card {
    height:118px;
    width:87px;
  }
  .card img {
    height:118px;
    width:87px;
  }
  .app-output {
    margin-bottom: 12px;
    padding-top: 24px;
  }

}
@media (max-width: 361px) {
  h1 {
    font-size: 24px;
  }
  .app-options {
    padding-left: 12px;
    padding-right: 12px;
  }
  label {
    font-size: 12px;
  }
  .card {
    height:88px;
    width:65px;
  }
  .card img {
    height:88px;
    width:65px;
  }
}

.hide {
  display: none !important;
}
.Slowest_Table_div2 {
  font-size: 40px;
  margin: 5px;
}

.add-button {
  display: none;
}

#Add_to_homescreen_div {
  padding: 5px;
  width: 286px;
  border:2px solid black;
  margin: auto;
  margin-top: 10px;
}

#Add_to_homescreen_div h1 {
  font-size: 20px;
  font-weight: 700;
}
#Add_to_homescreen_div p {
  font-size: 18px;
  padding-top: 5px;
}
#Add_to_homescreen_div img {
  width: 50px;
  height: 50px;
}
#Share_icon {
  height: 20px !important;
  width: 20px !important;
}

#mainApp {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#mainApp.proper_fractions {
  flex-direction: row;
}

#Proper_Fractions_Flexbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  margin-left: 20px;
}

#Proper_Fractions_Flexbox button {
  margin-bottom: 20px;
}

#mainApp button {
  width: 120px;
  text-align: center;
}

#Inputs_Div {
  display: flex;
  flex-direction: column;
}

#Inputs_Div div {
  display: flex;
  flex-direction: row;
  margin: 0px;
}

#Inputs_Div label, {
  height: 50px;
  width: 50px;

}

#App_Results label > input,
#Inputs_Div label > input{ /* HIDE RADIO/CHECK */
  visibility: hidden; /* Makes input not-clickable */
  position: absolute; /* Remove input from document flow */
  cursor: pointer;
}

#Inputs_Div label > input + p {
    cursor:pointer;
    border:2px solid black;
    margin: 5px;
    font-size: 30px;
}


#Flexbox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-right: 20px;
  margin-left: 20px;
}

#Flexbox.fractions {
  flex-direction: column;
  align-items: center;
  min-width: 300px;
}

#Fraction_Divider.fractions {
  width: 162px;
  margin-bottom: 18px;
  border: solid black 2px;
}

#Flexbox.proper_fractions {
  flex-direction: column;
  align-items: center;
}

#Fraction_Divider.proper_fractions {
  width: 125px;
  margin-bottom: 18px;
  border: solid black 2px;
}

#Flexbox.switch {
  flex-direction: row-reverse;
}

#Flexbox.switch.fractions {
  flex-direction: column-reverse;
}

#random-number2 {
  order: 1;
}

.switch {
  order: 0;
}

.number_text_div {
  font-size: 42px;
  width: 50px;
  height: 50px;
  text-align: right;
}

.fraction {
    text-align: center;
    font-size: 16px !important;
    padding-left: 20px;
    padding-right: 20px;
}

.bottom{
    border-top: 1px solid #000;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 30px;
}

.block {
  background: lightblue;
}

.blocks1 {
  background: lightblue;
}

.blocks2 {
  background: linear-gradient(to right, lightblue 50%, #D9F5FF 50%);
}

.blocks3 {
  background: linear-gradient(to right, #D9F5FF 33.3%, lightblue 33.3% 66.6%, #D9F5FF 66.6%);
}

.blocks4 {
  background: linear-gradient(to right, lightblue 25%, #D9F5FF 25% 50%, lightblue 50% 75%, #D9F5FF 75%);
}

.blocks5 {
  background: linear-gradient(to right, #D9F5FF 20%, lightblue 20% 40%, #D9F5FF 40% 60%, lightblue 60% 80%, #D9F5FF 80%);
}

.blocks6 {
  background: linear-gradient(to right, lightblue 16.6%, #D9F5FF 16.6% 33.3%, lightblue 33.3% 50%, #D9F5FF 50% 66.6%, lightblue 66.6% 83.3%, #D9F5FF 83.3%);
}

.blocks7 {
  background: linear-gradient(to right, #D9F5FF 14.3%, lightblue 14.3% 28.6%, #D9F5FF 28.6% 42.8%, lightblue 42.8% 57.1%, #D9F5FF 57.1% 71.4%, lightblue 71.4% 85.7%, #D9F5FF 85.7%);
}

.blocks8 {
  background: linear-gradient(to right, lightblue 12.5%, #D9F5FF 12.5% 25%, lightblue 25% 37.5%, #D9F5FF 37.5% 50%, lightblue 50% 62.5%, #D9F5FF 62.5% 75%, lightblue 75% 87.5%, #D9F5FF 87.5%);
}

.blocks9 {
  background: linear-gradient(to right, #D9F5FF 11.1%, lightblue 11.1% 22.2%, #D9F5FF 22.2% 33.3%, lightblue 33.3% 44.4%, #D9F5FF 44.4% 55.5%, lightblue 55.5% 66.6%, #D9F5FF 66.6% 77.7%, lightblue 77.7% 88.8%, #D9F5FF 88.8%);
}

.blocks10 {
  background: linear-gradient(to right, lightblue 10%, #D9F5FF 10% 20%, lightblue 20% 30%, #D9F5FF 30% 40%, lightblue 40% 50%, #D9F5FF 50% 60%, lightblue 60% 70%, #D9F5FF 70% 80%, lightblue 80% 90%, #D9F5FF 90%);
}

#App_Results label > input +p {
  cursor:pointer;
  margin: 0px;
  font-size: 30px;
  margin-left: auto;
  margin-right: auto;
}

#App_Results label > input:disabled +p {
  cursor:default;
}

#App_Results p {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#Tower_div,
#App_Results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  width: 95%;
  margin-bottom: 20px;
}

.row {
  width: 100%;
  margin: 0px;
}
.row p {
    height: 50px;
    text-align: center;
    border-collapse: collapse;
    justify-content: center;
}

#App_Results label {
  border:2px solid black;
  margin-bottom: -2px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#Flex_Wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.wrong {
  background: red;
}

#Continue_Button_div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#Continue_Button_div input {
  margin-top: 20px;
  font-size: 20px;
  text-align: center;
}

#Continue_Button_div button {
  height: 50px;
}

#App_Results p.instructions {
  font-weight: 700;
  margin: 5px;
}

.headingfont {
  text-transform: uppercase;
  font-family: oswald,serif;
}



@media (min-width: 650px) {
  #App_Results {
    max-width: 600px;
  }
}

.link {
  text-decoration: underline;
}

.link:hover {
  cursor: pointer;
}

#Message_div {
  font-size: 16px;
  padding: 5px;
  text-align: center;
}

#Banner {
  margin-bottom: 0px;
}
