/* The main and only css file*/

#map {
  text-align: center;
}
body {
  background-image: url("images/MetalBackground.jpeg");
  background-repeat: repeat;
  font-family:Copperplate;
  color:whitesmoke;
}
/* The main game grid/board */
.grid {
  display:inline-block;
  width:960px;
  font-size:1px;
  border:15px groove gray;
  border-style: groove;
  padding:10px;
  background-image: url("images/mars.jpg");
  font-family:Times;
}
/* a standard square on the main game grid/board */
span.sqr
  {
    display:inline-block;
    height:15px;
    width:15px;
    font-size:10px;
  }

  /* a square with a person/unit on the main game grid/board */
span.sqr-um
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-size: contain;
}
/* a square with currently SELECTed person/unit on the main game grid/board */
span.sqr-um-h
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-size: contain;
  filter: drop-shadow(0 0 .2rem cyan);
}
/* a square with currently TARGETed person/unit on the main game grid/board */
span.sqr-um-t
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-size: contain;
  filter: drop-shadow(0 0 .2rem red);
}
/*span.sqr-ne
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-image: url(Necron.png);
  background-size: contain;

}*/
span.sqr-um-k
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-image: url(images/explosion1.gif);
  background-size: contain;

}
/* a square with currently SELECTed Necron person/unit on the main game grid/board */
span.sqr-ne-h
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-size: contain;
  filter: drop-shadow(0 0 .2rem green);
}
/* a square with currently TARGETed Necron person/unit on the main game grid/board */
span.sqr-ne-t
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-size: contain;
  filter: drop-shadow(0 0 .2rem red);
}
/* a square with currently exploding person/unit on the main game grid/board */
span.sqr-ne-exp
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-image: url(images/explosion1.gif);
  background-size: contain;
  filter: drop-shadow(0 0 .2rem red);
}
/* a square with currently DEAD Necron person/unit on the main game grid/board */

span.sqr-ne-d
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-image: url(images/Necroncorpse.png);
  background-size: contain;
}

/* a square with currently DEAD marine person/unit on the main game grid/board */
span.sqr-um-d
{
  display:inline-block;
  height:15px;
  width:15px;
  font-size:10px;
  background-image: url(images/space-marine-corpse.png);
  background-size: contain;
}

/* The unit card section */
span.unit-cards {
  display:inline-block;
  vertical-align: top;
  margin-top: 5px;
  color:whitesmoke;
}
/* a unit card  */
span.unit-card {
  vertical-align: top;
  display:inline-block;
  min-width:50px;
  width:85px;
  font-size:12px;
  border:5px groove #1d1d1d;
  margin-right:2px;
  padding:2px;
  color:whitesmoke;
  background-color:#1d1d1d;
  background-repeat: repeat;
}
/* the highlighted current unit card */

span.unit-card-h {
  vertical-align: top;
  display:inline-block;
  min-width:50px;
  width:85px;
  font-size:12px;
  border:5px groove #1d1d1d;
  margin-right:1px;
  padding:2px;
  -moz-box-shadow:    inset 0 0 20px cyan;
  -webkit-box-shadow: inset 0 0 20px cyan;
  box-shadow:         inset 0 0 20px cyan;
  background-color:#1d1d1d;
  color:whitesmoke;
}
/* the faction symbol */
.faction-symbol {
  width: 40px;
  height: 40px;
}
/* the whole page section */
.page {
  vertical-align: top;
}
/* side header */
.side-header {
  width:200px;
}
/* the top header section */
.header-bar {
  background-color: rgba(0, 0, 0, 0.7);
  margin-bottom:10px;
  padding:10px;
  text-align:center;
  border-radius: 25px;
  margin-left: auto;
  margin-right: auto;
  vertical-align: top;
  width:500px;
}
/* the side header section */
.side-header-bar {
  background-color: rgba(0, 0, 0, 0.7);
  margin-bottom:10px;
  padding:10px;
  text-align:center;
  border-radius: 25px;
  margin-left: 10px;
  margin-right: 10px;
  vertical-align: top;
  display: inline-grid;

}
/* the bottom footer section */
.footer-bar {
  background-color: rgba(0, 0, 0, 0.7);
  margin-top:10px;
  padding:10px;
  text-align:center;
  border-radius: 10px;
  margin-left: 50px;
  margin-right: 50px;
}

h1 {
  color:black;
}

/* unvisited link */
a:link {
  color: black;
  text-decoration:none;
}

/* visited link */
a:visited {
  color: black;
}

/* mouse over link */
a:hover {
  color: black;
}

input[type=button], input[type=submit], input[type=reset] {
  background-color: lightgray;
  border: 1px solid black;
  color: black;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius:4px;
}


input[type=number] {
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius:4px;
}

/* the game ending victory/loss overlay */
.gameover
{
  font-size: 70px;
  padding-top: 100px;
}
a.gameover-link
{
  font-size: 40px;
  color: silver;
}
a.gameover-link:hover
{
  font-size: 40px;
  color: lightgrey;
}
button {
  background-color: lightgray;
  border: 1px solid black;
  color: black;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius:4px;
}

/* unit/person as a button for selection/targeting etc */
.btn-link-sm {

    background: none;
    border: none;
    padding: 0px;
    font: inherit;
    font-size:14px;
    float:left;
    color: rgba(0, 0, 0, 0);
}
.btn-link-sm:hover {
    filter: drop-shadow(0 0 .2rem white);
    text-decoration: underline;
}
.btn-link {
  background-color: lightgray;
  border: 1px solid black;
  color: black;
  padding: 2px 2px;
  text-decoration: none;
  margin: 2px 2px;
  cursor: pointer;
  border-radius:4px;
  font-size:10px;
  width: 100%;
}
.btn-link:hover {
    background-color: lightblue;
}

/* movement buttons etc */
.move-buttons {
    display: inline-block;
    vertical-align: top;
    margin-top:5px;
    padding-left:5px
    background-color:black;
    color:gray;
    border-color:gray;
}
.move-button {
    width: 30px;
    padding: 5px 5px;
    background-color:black;
    color:gray;
    border-color:gray;
}
.move-button:hover {
    background-color: #1f1f1f;
    color: lightgrey;
}
/* turn phase buttons etc */
.turn-buttons {
    display: inline-block;
    text-align: right;
    vertical-align: top;
}
.turn-button {
    width: 100px;
    padding: 10px 10px;
    background-color:black;
    color:gray;
    border-color:gray;
}
.turn-button:hover {
    background-color: #1f1f1f;
    color: lightgrey;
}

/* Menu navigation */
ul.navbar {
  text-align:center;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color:silver;
  border-radius:10px;
  padding-left: 30px;
  padding-right: 30px;
}
span.navbar {
  text-align:center;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color:silver;
  border-radius:10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 13px;
  padding-bottom: 13px;
  margin-bottom:30px;
}

li.navbaritem {
  float: left;
}

span.navbaritem a {
  display: block;
  color: silver;
  text-align: center;
  padding: 6px 16px;
  text-decoration: none;
  font-size:120%;
}

span.navbar a  {
  color: silver;
  text-align: center;
  padding: 6px 16px;
  text-decoration: none;
  font-size:120%;
  padding-top: 10px;
  padding-bottom: 10px;
}


span.navbar a:hover, span.navbaritem a:hover {
  background-color: #111;
  filter: drop-shadow(0 0 .2rem lawngreen);

}
/* feedback message box */
#ajaxresponse {
  display:inline-block;
  text-align:left;
  padding-left:5px;
  width:200px;
  vertical-align: top;
  font-family:Copperplate;
  margin-left:10px;
  margin-right:10px;
  padding-top:5px;
  margin-top:5px;
  padding-bottom:5px;
  font-size:12px;
  color:lawngreen;
  background-color:black;
  border:1px solid gray;
}
/* end screen overlay */
#overlay {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  cursor: pointer;
}

div.head {
  margin: auto;
  text-align: center;
  width: 600px
}

/* home screen buttons */
.home-button {
    width: 200px;
    padding: 15px 15px;
    background-color:black;
    color:gray;
    border-color:gray;
    font-family: Copperplate;
    font-size:120%;
}
.home-input {
    width: 250px;
    padding: 15px 15px;
    background-color:#303030;
    color:lawngreen;
    border-color:black;
    font-family: Copperplate;
    font-size:120%;
    text-align: center;

}
.home-button:hover {
    background-color: #1f1f1f;
    color: lawngreen;
}

input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.form-wrapper {
  margin-top:40px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius:20px;
  padding:20px;
  margin-left: 50px;
  margin-right: 50px;
  color:silver;
  margin-bottom:100px;
}
