html, * {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(69, 105, 82);
  background-image: url("images/textures/floral.jpg");
  background-blend-mode: multiply;
}

p {
  visibility: hidden;
}

#central {
  padding-top: 20px;
  width: 1115px;
  transform-origin: top left;
  margin: auto;
  overflow: hidden;
  position: relative;
}

#winState {
  position: absolute;
  z-index: 5;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  visibility: hidden;
}

h1 {
  text-align: center;
  text-shadow: 0px 0px 10px rgba(0,0,0,.5);

  font-size: 60px;
  font-family: sans-serif;
  color: rgb(255, 200, 0);
}

h2 {
  text-align: center;
  text-shadow: 0px 0px 10px rgba(0,0,0,.5);

  font-size: 20px;
  font-family: sans-serif;
  color: rgb(255, 200, 0);
}

#restart {
  position: fixed;
  float:right;

  z-index: 4;
  height: 100px;
  width: 100%;
  bottom: 0;
}

#restartButton {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 50px;
  line-height: 50px;
}

#restartButton:hover {
  cursor: pointer;
  opacity: .5;
}

#topArea {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

#suitDiscard {
  display: flex;
  margin-left: 5px;
}

#suitDiscard > div {
  margin: 5px;
  height: 200px;
  width: 140px;

  border-radius: 15px;
  border: 3px solid rgb(39, 61, 47);

  position: relative;
}

#suitDiscard > div > div {
  height: inherit;
  width: inherit;

  left: -2px;
  top: -2px;

  position:absolute;
  background-size: contain;
  background-position: center;
}

#drawDeck {
  display: flex;
  margin-right: 5px;
  margin-left: 20px;
}

#drawDeck > div {
  margin: 5px;
  height: 200px;
  width: 140px;

  position: relative;

  border-radius: 15px;
  border: 3px solid rgb(39, 61, 47);
}

#deck > div, #draw > div {
  height: inherit;
  width: inherit;
  border-radius: 15px;
  border: 3px solid white;

  left: -3px;
  top: -3px;
  position:absolute;
  background-size: contain;
  background-position: center;
}

#playingArea {
  display: flex;
  justify-content: space-between;

  position: relative;
  top: 10px;
  margin: 10px;
  width: 98%;
  margin-bottom: 50px;

  overflow: visible;
}

#playingArea > div {
  padding-top: 150px;
  min-height: 200px;
  width: 140px;
  text-align: center;
}

#playingArea > div > .playingCard {
  margin-top: -150px;
  box-shadow: 0px 0px 5px rgba(0,0,0,.2);
}

.playingCard {
  width: 140px;
  height: 200px;

  border-radius: 15px;

  background-color: white;
  border: 2px solid white;

  background-position: center;
  background-size: contain;

  position: relative;
  transition: transform .2s;
  transition: border .2s;
}

.faceUp {
}

.faceDown {
}

/* Onto the mechanics */
.faceUp:hover {
  transform: scale(1.1);
  cursor: pointer;
}

#deck:hover {
  cursor: pointer;
}

#selectedCard {
  transform: scale(1.1);
  cursor: pointer;
}
