:root {
  --pink: #f26386;
  --pink75: #f26386c0;
  --pink50: #f2638680;
  --pink25: #f2638640;
  --light-pink: #f588af;
  --light-pink75: #f588afc0;
  --light-pink50: #f588af80;
  --light-pink25: #f588af40;
  --green: #a4d984;
  --green75: #a4d984c0;
  --green50: #a4d98480;
  --green25: #a4d98440;
  --yellow: #fcbc52;
  --yellow75: #fcbc52c0;
  --yellow50: #fcbc5280;
  --yellow25: #fcbc5240;
  --orange: #fd814e;
  --orange75: #fd814ec0;
  --orange50: #fd814e80;
  --orange25: #fd814e40;
}

html,
body {
  height: 100%;
}

body {
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
  background-color: var(--light-pink);
  color: var(--pink);
  display: flex;
  flex-direction: column;
  font-family: "Mulish", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

hr {
  border: 10px dashed var(--green);
  margin: 10px 0;
}

.game {
  flex: 1 0 auto;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h1,
h2 {
  color: var(--pink);
  background-color: var(--yellow);
  display: inline-block;
  padding: 10px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 20px;
}

.cardHeader {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.help-text {
  background-color: var(--orange);
  color: var(--yellow);
  font-weight: 400;
  font-style: italic;
  display: inline-block;
  padding: 10px;
}

#gameBoard .help-text {
  max-width: 200px;
}

span.active-player-name {
  font-weight: bold;
}

button {
  border: var(--orange) 0.5rem solid;
  padding: 10px 20px;
  margin: 20px 5px 30px;
  border-radius: 15px;
  background-color: var(--orange50);
  color: var(--yellow);
  font-size: 2rem;
  box-shadow: 0 10px var(--yellow);
  font-weight: bold;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

button:hover {
  border: var(--orange50) 0.5rem solid;
  background-color: var(--orange75);
  cursor: pointer;
}

button:active {
  box-shadow: 0 5px var(--yellow);
  transform: translateY(5px);
}

button[disabled] {
  background-color: var(--green);
  border: var(--orange50) 0.5rem solid;
  cursor: default;
  text-decoration: line-through;
  color: var(--orange);
}

button[disabled]:hover {
  background-color: var(--green);
}

button[disabled]:active {
  box-shadow: 0 10px var(--yellow);
  transform: translateY(0px);
}

.icon {
  width: 15px;
  height: 15px;
  padding: 0px;
}

.iconButton {
  padding: 0px;
  font-size: 1rem;
  margin: 0;
  margin-bottom: 5px;
}

.refreshButton {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.container, .tableau {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.main-container .tableau {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.column {
  display: block;
  max-width: 800px;
  margin: auto;
  padding: 0 10px;
}

.card {
  width: 150px;
  height: 220px;
  border-radius: 15px;
  background-color: var(--pink75);
  color: var(--green);
  font-size: 4rem;
  border: var(--green) 5px solid;
  padding: 5px 15px;
  margin: 5px;
  position: relative;
  user-select: none;
}

.card-back {
  width: 100%;
  height: 100%;
  padding: 20% 0% 50% 0%;
  box-sizing: border-box;
}

.card:hover {
  background-color: var(--pink);
  cursor: pointer;
}

.side-deck:hover .card {
  cursor: default;
}

.side-deck button {
  font-size: 1rem;
}

.flipped {
  background-color: var(--green25);
}

.flipped:hover {
  background-color: var(--green25);
  cursor: auto;
}

.placeholder {
  background-color: var(--yellow25);
  border: 5px dashed;
}

.placeholder:hover {
  background-color: var(--yellow25);
  cursor: auto;
}

.cardHeader {
  font-size: 3rem;
  padding: 0;
  margin: 10px 0px;
  background-color: var(--green25);
  border-radius: 15px;
}

.cardText {
  font-size: 1.5rem;
  margin-top: 10px;
}

.cardCount, .cardValue {
  font-size: 1rem;
  position: absolute;
  bottom: 0;
}

.cardCountText {
  border: 2pt solid var(--orange);
  border-radius: 50%;
  padding: 4px 8px;
  background-color: var(--yellow);
  color: var(--orange);
  font-weight: bolder;
  font-family: "Courier New", Courier, monospace;
}

.cardValue {
  left: 0;
  width: 100%;
  bottom: 20px;
}

.cardValueText {
  border: 3pt solid var(--green);
  border-radius: 50%;
  padding: 4px 8px;
  background-color: var(--yellow);
  color: var(--orange);
  font-weight: bolder;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.5rem;
}

.gameInput {
  background-color: var(--green);
  padding: 20px;
  margin: 10px;
  display: inline-block;
  font-size: 1.5rem;
}

.gameInput input {
  font-size: 1.5rem;
  color: var(--pink);
  border: 2px var(--pink) solid;
}

.gameInput input:focus {
  outline: 5px var(--yellow) solid;
}

.gameInput label {
  margin-right: 10px;
}

.player-total {
  font-size: 4rem;
  background-color: var(--orange);
  color: var(--yellow);
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  box-shadow: 10px 10px;
  border-radius: 15px;
  width: 100px;
  margin: 0px 10px 20px 0px;
}

#gameTableTop,
#gameTableBottom {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.player {
  max-width: 800px;
  margin: 5rem;
  border-radius: 15px;
}

.player.active {
  background-color: var(--orange25);
  box-shadow: 0px 0px 100px white;
}

.player-deck {
  max-width: 600px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.score-circle {
  display: inline-block;
  height: 25px;
  width: 25px;
  line-height: 2.7;
  font-size: 1.5rem;
  font-weight: 900;
  border: var(--yellow) 3px solid;
  border-radius: 50%;
  margin: 3px;
}

.score-circle.filled {
  background-color: var(--yellow);
}

.score-box {
  margin: 30px;
}

footer {
  background-color: var(--orange);
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: bold;
}
