html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}

html {
  height: 100%;
}

body {
    display: flex;
    height: 100%;
    flex-direction: column;
    box-sizing: border-box;
}

body {
  -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 */
}

#Tutorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#Tutorial h1 {
  font-size: 24px;
  padding: 5px;
  font-weight: 800;
}
#Tutorial h2 {
  font-size: 18px;
  padding: 10px;
  font-weight: 800;
}
#Tutorial li {
  font-size: 18px;
  list-style-type: circle;
  font-family: 'Gotu', sans-serif;
}

#Tutorial img {
  margin-top: 5px;
  max-width: 95%;
}

#Castle_Board {
  border: solid black 5px;
}
p {
  font-family: 'Gotu', sans-serif;
  font-size: 18px;
}

input {
  font-family: 'Gotu', sans-serif;
}

button {
  font-family: 'Gotu', sans-serif;
}

@font-face {
    font-family: CharlemagneStd-Bold;
    src: url("/fonts/CharlemagneStd-Bold.otf") format("opentype");
}

#Middle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

button {
  margin: 10px;
  display: block;
  font-size: 20px;
  padding: 5px;
  width: auto;
  cursor: pointer;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#Middle::-webkit-scrollbar {
  display: none;
}

#Main_Section {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

#Main_Section section {
  min-width: 320px;
}

#Castle_Board_div {
  display: flex;
  justify-content: center;

}

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

#Castle_Board_div label > input + p {
    box-shadow: inset 0 0 2px black;
    overflow: none;
}

.row {
  justify-content: center;
  padding: 0;
  margin: 0;
}

#Castle_Board p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0px;
    text-align: center;
    font-weight: bold;
    font-size: 4vw;
    vertical-align: middle;
    word-spacing: 9999999px;
    line-height: 60%;
}


#Castle_Board p.rows5 {
  font-size: 54px;
}
#Castle_Board p.rows6 {
  font-size: 45px;
}
#Castle_Board p.rows7 {
  font-size: 38px;
}
#Castle_Board p.rows8 {
  font-size: 34px;
}
#Castle_Board p.rows9 {
  font-size: 30px;
}
#Castle_Board p.rows10 {
  font-size: 15px;
}

#Castle_Board div {
  display: flex;
  flex-direction: row;
  z-index: -1;
}

#Castle_Board input {
  font: 20px;
  width: 20px;
  height: 20px;
}

#Buttons_div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 250px;
}

#Buttons_div a {
  margin: 10px;
}

#Buttons_div img {
  width: 100px;
}

#Buttons_div input {
  font-size: 20px;
  text-align: center;
}

.hide {
  display:  none !important;
}

#Castle_Health,
#Level_div,
#Timer,
#Castle_Message_div {
  font-size: 24px;
  padding: 5px;
  text-align: center;
}

#Castle_Health,
#Level_div,
#Timer {
  font-weight: 700;
}



sub, sup {
  /* Specified in % so that the sup/sup is the right size relative to the surrounding text */
  font-size: 75%;

  /* Zero out the line-height so that it doesn't interfere with the positioning that follows */
  line-height: 0;

  /* Where the magic happens: makes all browsers position the sup/sup properly, relative to the surrounding text */
  position: relative;

  /* Note that if you're using Eric Meyer's reset.css, this is already set and you can remove this rule */
  vertical-align: baseline;
}

sup {
  /* Move the superscripted text up */
  top: -0.5em;
}

sub {
  /* Move the subscripted text down, but only half as far down as the superscript moved up */
  bottom: -0.50em;
}

.blink_me {
  animation: blinker 0.6s cubic-bezier(1, 0, 0, 1) infinite alternate;
  color: red;
  font-weight: 800;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

@keyframes blink_border {
   50% { border-color: red; }
}

#Castle_Board.error_border {
    animation-name: blink_border ;
    animation-duration: .5s ;
    animation-timing-function: step-end ;
    animation-iteration-count: infinite ;
    animation-direction: alternate ;
}

@keyframes blink_border_green {
   50% { border-color: lime; }
}

#Castle_Board.win_border {
    animation-name: blink_border_green ;
    animation-duration: .5s ;
    animation-timing-function: step-end ;
    animation-iteration-count: infinite ;
    animation-direction: alternate ;
}

#Number_Pad_div {
  display: inline-block;
  vertical-align: top;
}

.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;
}

.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;
}

.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;
  vertical-align: top;
  caret-color: transparent;
  text-align: center;
}
.answer:focus,
.answer.populated {
  border-color: #2b2b2b;
}
.answer.wrong {
  border-color: #ed1c25;
}
.answer.right {
  border-color: #00a129;
}
.answer:disabled {
  opacity: 1;
}

.enemy_icon {
  width: 40px;
  margin: 0;
  padding: 0;
}

span {
  display: flex;
  justify-content: center;
  align-items: center;
}

.red {
  color: red;
  font-weight: 700;
}

.green {
  color: green;
  font-weight: 700;
}

#Castle_Board_div img {
  width: 100%;
}

.weapon {
  width: 140px;
}

.upgrades {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 855px;
}

#Continue_Game_div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: solid black 2px;
}

#Continue_Game_div div {
  display: flex;
  flex-direction: row;
}

#Continue_Game_div h2 {
  font-size: 28px;
  padding: 5px;
  font-weight: 700;
}

#Continue_Game_div p {
  font-size: 24px;
  padding: 2px;
}

#Starting_Level_Input {
  text-align: center;
}
