/* Colors */

/* f9Ee81 Yellow Crayola*/

/* 003a6e Imperial Blue */


* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* body style */

body {
  background-color: #003a6e;
  font-family: "Raleway", sans-serif;
  height: 100%;
}

/* main content container */

.container {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 60%;
}


/* main header */

header {
  text-align: center;
  color: #f9e581;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  width: 660px;
  margin: auto;
  padding-bottom: 20px;
  padding-top: 10px;
  perspective: 1000px;
  font-size: 24px;
}

/* sub header */

.subHeader {
  width: 330px;
  margin: auto;
  padding-bottom: 20px;
  perspective: 1000px;
  color: #f9e581;
}

/* reset button from font awesome*/

.reset {
  float: right;
}

/* number of moves made */

.moveNumber {
  text-align: center;
  padding: 0px 10px 0px 20px;
}

/* move title */

.moveId {
  padding-right: 20px;
}

/* bat symbol rating */

.batSymbol {
  width: 30px;
  height: 20px;
  padding: 0px 5px 0px 5px;
  float: left;
}

/* card backside bat symbol */

.batSymbolCard {
  width: 80px;
  height: 70px;
  margin: auto;
  padding-top: 50px;
}

/* all of the squares */

.squares {
  width: 660px;
  height: 660px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
}

/* each individual square */

.square {
  width: calc(25% - 10px);
  height: calc(25% - 10px);
  background-color: grey;
  border-radius: 5%;
  margin: 5px;
  position: relative;
  box-shadow: 5px 2px 20px 0 rgba(0, 0, 0, 1);
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
}

/* card shrink click effect */

.square:active {
  transform: scale(0.9);
  transition: transform .2s;
}

/* the display and rotation of the cards */

.front, .back {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  backface-visibility: hidden;
}

.front {
  transform: rotateY(180deg);
}

.flip {
  transform: rotateY(180deg);
  background-color: #f9e581;
}

/* the modal background */

.modal {
  display: none;
  height: 100%;
  width: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  overflow: auto;
}

/* .modal content */

.modalContent {
  background-color: white;
  color: black;
  margin: auto;
  width: 600px;
  height: 225px;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  margin-top: 100px;
  line-height: 1.5;
}

/* the play again button */

.playAgain {
  background-color: #f9e581;
  border: none;
  margin: 15px 0px 10px 0px;
  border-radius: 2.5px;
  padding: 10px;
}

button:hover {
  background-color: grey;
  padding: 10px;
  border-radius: 2.5px;
  border: none;
}

/* the close option */

.closeModal:hover {
  color: #f9e581;
  cursor: pointer;
}
