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;
    background-color: lightblue;
}

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

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

#Game_Board {
  min-width: 320px;
  text-align: center;
}
#Controls,
#Grid {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#Controls {
  margin-top: 15px;
  flex-direction: row;
  flex-wrap: wrap;
}

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

#Middle_Row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#Left_Column, #Right_Column {
  display: flex;
  justify-content: center;
}

#Left_Column p, #Right_Column p {
  padding: 5px;
}

#Right_Column p {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 5px;
}
#Left_Column p {
  writing-mode: vertical-lr;
  text-orientation: sideways-right;
  transform: rotate(180deg);
  padding: 5px;
}

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

#Controls p,
#Game_Grid 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: 90%;
}

#Game_Grid img {
  width: 100%;
}


#Winning_div {
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 300px;
  font-size: 40px;
}
#Winning_div a {
  color: purple;
  font-size: 30px;
  margin: 5px;
}

#Controls label {
  flex-basis: 25%;
}

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

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

#Controls input,
#Game_Grid input {
  width: 20px;
  height: 20px;
}

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

#Left_Column_Arrow,#Right_Column_Arrow {
  width:5px;
  background: gray;
  margin-right: 13px;
  margin-top: 10px;
}
#Right_Column_Arrow {
  margin-right: 0px;
  margin-left: 14px;
}

#Bottom_Row_Arrow,
#Top_Row_Arrow{
  height:5px;
  background: gray;
  margin-bottom: 10px;
}
#Bottom_Row_Arrow {
  margin-bottom: 0px;
  margin-top: 10px;
}

.arrow-right {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid gray;
  float:right;
  margin-top:-7.5px;
  margin-right:-7.5px;
}

.arrow-left {
  width: 0;
  height: 0;
  border-top:10px solid transparent;
  border-bottom: 10px solid transparent;
  float:left;
  border-right:10px solid gray  ;
  margin-top:-7.5px;
  margin-left:-7.5px;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid gray;
  float:left;
  margin-top:-7.5px;
  margin-right:-7.5px;
  margin-left: -7.5px;
  margin-bottom: 0px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left:10px solid transparent;
  border-right: 10px solid transparent;
  float:left;
  border-top:10px solid gray;
  margin-top: -10px;
  margin-right:-7.5px;
  margin-left: -7.5px;
}

.hide {
  display:  none !important;
}

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

#Controls label > input + p {
  cursor: pointer;
  overflow: none;
  box-shadow: inset 0 0 2px orange;
  background-color: white;
}

#Game_Grid label {

}

#Game_Grid label > input + p {
    cursor: pointer;
    overflow: none;
    box-shadow: inset 0 0 2px orange;
    border-radius: 50%;
    width: 90%;
    height: 90%;
    margin: 5%;
    background-color:rgb(255,255,255, 0.7);
}
#Game_Grid label > input + img {
  width: 90%;
}

#Game_Grid {
  background-image: url('../../images/reef_rescue/background.png');
  background-repeat: no-repeat;
  background-size: contain;
}

#Fish_Box {
  box-shadow: inset 0 0 2px transparent !important;
  background-color: lightblue !important;
}
#Fish_Box img {
  opacity: 1;
}
#Fish_Box a {
  text-decoration: none;
}

#Controls label > input:checked + p,
#Game_Grid label > input:checked + p {
    background: purple;
    opacity:1;
}

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

#Grid img,
#Controls {
  border-collapse: collapse;
}

.hide {
  display: none !important;
}

.transparent {
  visibility: hidden !important;
}
