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: 20px;
  padding: 10px;
  font-weight: 800;
}
#Tutorial li {
  font-size: 18px;
  list-style-type: circle;
  list-style-position: inside;
  font-family: 'Gotu', sans-serif;
}
#Tutorial img {
  margin-top: 5px;
  max-width: 95%;
  min-width: 250px;
}

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

#Rescue_Board_div {
  display: flex;
  justify-content: center;
}

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

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

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

#Rescue_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%;
}


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

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

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

#Rescue_Board.defaultborder {
  border: 15px solid black;
}
#Rescue_Board.whiteborder {
  border: 15px solid white;
}

#Rescue_Board.team1border {
    border: 15px solid olive;
}
#Rescue_Board.team2border {
    border: 15px solid purple;
}
#Rescue_Board.team3border {
    border: 15px solid blue;
}
#Rescue_Board.team4border {
    border: 15px solid coral;
}
#Rescue_Board.team5border {
    border: 15px solid orange;
}
#Rescue_Board.team6border {
    border: 15px solid yellow;
}
#Rescue_Board.team7border {
    border: 15px solid pink;
}
#Rescue_Board.team8border {
    border: 15px solid lightblue;
}

#Rescue_Board.team9border {
    border: 15px solid darkseagreen;
}

#Rescue_Board .team1 {
    background: olive !important;
}
#Rescue_Board .team2 {
    background: purple !important;
}
#Rescue_Board .team3 {
    background: blue !important;
}
#Rescue_Board .team4 {
    background: coral !important;
}
#Rescue_Board .team5 {
    background: orange !important;
}
#Rescue_Board .team6 {
    background: yellow !important;
}
#Rescue_Board .team7 {
    background: pink !important;
}
#Rescue_Board .team8 {
    background: lightblue !important;
}
#Rescue_Board .team9 {
    background: darkseagreen !important;
}

#Rescue_Board label > input:checked + p {
    background: white;
}

@media (min-width: 600px) {
  #Main_Section section {
    min-width: 580px;
  }
  #Rescue_Board p.rows5 {
    font-size: 54px;
  }
  #Rescue_Board p.rows6 {
    font-size: 45px;
  }
  #Rescue_Board p.rows7 {
    font-size: 38px;
  }
  #Rescue_Board p.rows8 {
    font-size: 34px;
  }
  #Rescue_Board p.rows9 {
    font-size: 30px;
  }
  #Rescue_Board p.rows10 {
    font-size: 25px;
  }
}

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

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

.hide {
  display:  none !important;
}

#Rescue_Message_div {
  font-size: 24px;
  padding: 5px;
  text-align: center;
}

#Rescue_Board_Lives {
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  padding: 5px;
}


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

#Rescue_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; }
}

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