/******************************************
/* CSS
/*******************************************/

* {
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  background: rgb(209, 212, 219);
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: gray;
}


img, h1, h2, h3, h6, span, button {
  display: block;
  margin: 0 auto;
}

h6 {
  margin-bottom: 4rem;
}

h1, h2, h3, h5, h6, span, button {
  text-align: center;
}

h1 {
  font-size: 7rem;
}

h3, button {
  margin-top: 4rem;
}

h2, h3, span {
  font-size: 5rem;
}

h5, h6, a {
  font-size: 2rem;
}

button {
  font-size: 3rem;
}

.howToPlay * {
  margin-bottom: 4rem;
}

.middleSection {
  align-self: center;
}

.card {
  transition: all .5s ease;
}

.fx {
  transform: scale(1.1);
  /* border: 0 1rem #f1e2aa; */
  box-shadow: 1rem 0 2rem -1rem #f1e2aa, -1rem 0 2rem -1rem #f1e2aa;
}

.players {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
}

.p1StatBar, .p2StatBar {
  margin: 0 0 1rem 0;
}

.playerOneStatBar, .playerTwoStatBar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p1WonCards, .p2WonCards {
  align-self: center;
  display: inline-flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  /* min-width: 0; */
  width: 125px;
}

.p1WonCards img, .p2WonCards img {
  flex: 1;
  margin: 0;
  height: auto;
  width: 40px;
}

#p1Span, #p2Span {
  color: #ffffff;
  font-weight: 600;
  margin-top: 2rem;
}

.footerSection {
  flex-shrink: 0;
}

.footerSection ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 2rem 0;
}

.footerSection h6 {
  margin: 3rem 0 0 0;
}

.footerSection li {
  margin: 0 2rem;
  font-size: 3rem;
}

/* Media Queries */

@media screen and (max-width: 900px) {

  h2, span {
    font-size: 4rem;
  }

  .mainSection {
    margin-bottom: 1rem;
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
  }

  .players {
    align-content: center;
    flex-flow: column nowrap;
    justify-content: center;
  }

  .p1WonCards,
  .p2WonCards {
    display: none;
  }
  
  .playerOne,
  .playerTWo {
    margin-bottom: -1.5rem;
  }
  

  #playerOneCard,
  #playerTwoCard {
    margin-bottom: -1rem;
    transform: scale(0.7);
    -webkit-transform: scale(0.7);
  }
  
  #p1Span,
  #p2Span {
    display: none;
  }

  #winner {
    font-size: 3rem;
    margin: 0;
  }

}
