html {
  box-sizing: border-box;
  max-height: 750px;
}

body {
  background-image: url('../images/Cross_Background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

header {
  margin: 0 auto;
  margin-bottom: 20px;
}

h1 {
  font-family: 'Eczar', serif;
  font-size: 60px;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
  color: white;
}

div {
  text-align: center;
  min-height: 90px;
}

h2 {
  font-family: 'Eczar', serif;
  font-size:35px;
  font-weight: bold;
  margin: 15%;
  color: white;
  display: inline;
}

p {
  font-family: 'Eczar', serif;
  text-align: center;
  font-size:30px;
  font-weight: bold;
  color: white;
  margin-bottom: 0;
  min-height: 30px;
}

span {
  margin-left: 1%;
}


img {
  display: inline;
  float: left;
  margin-left: 2%;
  margin-right: 0;
}

.image2 {
  display: inline;
  float: right;
  margin-right: 5%;
  margin-left: 0;
}

.grid-container {
  display: table;
  border-spacing: 5px;
  margin: 0 auto;
  margin-top: 25px;
  margin-bottom: 25px;
  padding-right: 28px;
}

.grid_container section {
  display: table-row;
  border: 1px solid black;
}

.grid-container div {
  width: 100px;
  height: 100px;
  background: grey;
  display: table-cell;
  border: 1px solid black;
  cursor: pointer;
}

.grid-container div.selected-X {
  background-image: url('../images/friendly_ghost_2.png');
  background-size: cover;
}

.grid-container div.selected-O {
  background-image: url('../images/friendly_ghost_waving.jpg');
  background-size: cover;
}

/* Game board hover effect */
.grid-container div:hover {
	-ms-transform: scale(1.1,1.1);
  -webkit-transform: scale(1.1,1.1);
  transform: scale(1.1,1.1);
	-webkit-box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
  -moz-box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
  box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
	z-index:9999;
	border-right:1px solid transparent;
	border-bottom:1px solid transparent;
	cursor:pointer;
	background-color:#fff;
  transition-duration: .5s;
}

/* .selected-X:hover {
	-ms-transform: scale(1.1,1.1);
  -webkit-transform: scale(1.1,1.1);
  transform: scale(1.1,1.1);
	-webkit-box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
  -moz-box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
  box-shadow: 10px 10px 91px 0px rgba(193,79,82,1);
	z-index:9999;
	border-right:1px solid transparent;
	border-bottom:1px solid transparent;
	cursor:pointer;
	background-color:#fff;
  transition-duration: .5s;
} */

/* New Game button */
button {
  background: #bdbebf;
  background-image: -webkit-linear-gradient(top, #bdbebf, #5f6263);
  background-image: -moz-linear-gradient(top, #bdbebf, #5f6263);
  background-image: -ms-linear-gradient(top, #bdbebf, #5f6263);
  background-image: -o-linear-gradient(top, #bdbebf, #5f6263);
  background-image: linear-gradient(to bottom, #bdbebf, #5f6263);
  -webkit-border-radius: 15;
  -moz-border-radius: 15;
  border-radius: 15px;
  -webkit-box-shadow: 1px 4px 3px #666666;
  -moz-box-shadow: 1px 4px 3px #666666;
  box-shadow: 1px 4px 3px #666666;
  font-family: Georgia;
  color: #ffffff;
  font-size: 16px;
  padding: 7px 13px 7px 13px;
  text-decoration: none;
  text-align: center;
  margin: 1% auto 3% auto;
}

button:hover {
  background: #5f6263;
  background-image: -webkit-linear-gradient(top, #5f6263, #bdbebf);
  background-image: -moz-linear-gradient(top, #5f6263, #bdbebf);
  background-image: -ms-linear-gradient(top, #5f6263, #bdbebf);
  background-image: -o-linear-gradient(top, #5f6263, #bdbebf);
  background-image: linear-gradient(to bottom, #5f6263, #bdbebf);
  text-decoration: none;
}

button:focus {
  outline: 0;
}

/* Fade in effects */
header, main, button {
  -webkit-animation-duration:1s;
  -moz-animation-duration:1s;
  animation-duration:1s;
    -webkit-animation: fadein 5s;
       -moz-animation: fadein 5s;
        -ms-animation: fadein 5s;
         -o-animation: fadein 5s;
            animation: fadein 5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
