:root {
  --primary-green: #027339;
  --dark-green: #025c2e;
  --table-green: #035c2e;
  --button-bg: #312e2b;
  --button-hover: #262522;
  --button-active: #171614;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --accent-gold: #d4af37;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html {
  height: 100%;
  box-shadow: 0 0 200px 100px #027339 inset;
}

body {
  height: 100%;
  font-family: "Arial", sans-serif;
  text-align: center;
  margin: 0px;
  background-image: url(/img/greenBGTile.svg);
  background-size: cover, 50%;
  background-repeat: no-repeat, repeat;
  background-position-x: center;
  background-position-y: 20%, center;
  background-color: #027339;
  overflow: hidden;
}

#logo {
  position: absolute;
  z-index: 3;
  cursor: pointer;
  top: 20px;
  left: 20px;
  height: 50px;
}

.button {
  appearance: none;
  background-color: #312e2b;
  border: none;
  border-radius: 6px;
  box-shadow: 2px 2px 2px #171614;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  position: relative;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  width: 90px;
  height: 32px;
}

.button:hover {
  background-color: #262522;
}

.button:active {
  background-color: #171614;
}

#progressBarDiv {
  position: fixed;
  margin: 100px 20px 20px;
  width: 118px;
}

#progressBarDecks {
  float: right;
  margin-top: 18.5px;
  height: 308px;
  width: 10px;
}

#myProgress {
  display: flex;
  margin: 0%;
  width: 100px;
  height: 300px;
  border: 3px black solid;
  background-color: transparent;
}

#myBar {
  align-self: flex-end;
  margin: 1px;
  width: 100px;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    white,
    white 2px,
    transparent 1px,
    transparent 3px
  );
}

#chips {
  position: fixed;
  display: flex;
  align-items: flex-end;
  height: 300px;
  bottom: 100px;
  margin-left: 10px;
}

.chips {
  margin: 10px;
  display: none;
}

.chips img {
  display: flex;
  margin-bottom: -100px;
  width: 93px;
}

#chipsOutline {
  display: none;
  position: fixed;
  margin-left: 10px;
  bottom: 10px;
  border-radius: 20px;
  outline: white solid 0px;
  box-shadow: inset 0px 0px 10px 1px white, 0px 0px 10px 1px white;
}

#hit,
#stand,
#split,
#double,
#surrender {
  display: none;
}

#basicStrategyCard {
  position: relative;
  text-align: end;
  margin-right: 20px;
  cursor: pointer;
  /*transition: transform 0.3s ease;*/
}

#basicStrategyCardTable {
  font-size: 1px;
  width: 50px;
  height: 168px;
  position: fixed;
  top: 2%;
  right: 20px;
  overflow-x: hidden;
  background-color: rgb(38, 37, 34);
  color: white;
  text-align: center;
  border-spacing: 0;
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

#basicStrategyCardTable th,
#basicStrategyCardTable td {
  border: 1px solid rgb(0, 0, 0);
}

#basicStrategyCardTable tr:first-child td {
  background-color: var(--dark-green);
  font-weight: bold;
}

#basicStrategyCardTable td[scope="col"] {
  background-color: var(--dark-green);
  font-weight: bold;
}

/* Count input */
#countInput {
  display: none;
  width: 40px;
  color: white;
  background-color: var(--button-bg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  margin-left: 5px;
}

div {
  margin-top: 10px;
}

#dealerHand {
  margin: auto;
  margin-top: 10px;
  height: 165px;
  width: 100%;
}

#game img,
#dealerHand img,
#playerHand img {
  width: 100px;
  margin: 5px;
}

#playerHand,
#cards,
#count {
  margin-top: 175px;
}

#hb1,
#hb2,
#hb3,
#hb4 {
  display: inline-block;
  margin: 10px;
}
#hb2,
#hb3,
#hb4 {
  display: none;
  margin: 10px;
}

#hb1 {
  margin: 10px;
}

#hand1,
#hand2,
#hand3,
#hand4 {
  margin: auto;
  height: fit-content;
  width: fit-content;
  border-radius: 4px;
}

img {
  -webkit-user-drag: none;
}

#count {
  color: red;
  text-align: left;
}

#endGameDiv {
  position: absolute;
  bottom: 50px;
  right: 50px;
}

#bestMoveScreen {
  position: absolute;
  height: 100%;
  width: 100%;
  display: none;
  background-color: hsla(0, 0%, 15%, 0.95);
  top: 0%;
  z-index: 1;
  margin: 0px;
}

#endGameScreen {
  position: absolute;
  height: 100%;
  width: 100%;
  display: none;
  background-color: hsla(0, 0%, 15%, 0.95);
  top: 0%;
  z-index: 1;
  margin: 0px;
}
#errors {
  color: white;
}

#bestMoveText {
  margin-top: 30%;
  font-size: 40px;
  font-weight: bold;
  color: white;
}

#cancleMove,
#goAgainstBestMove {
  margin-top: 10px;
  background-color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 2px 2px 2px #171614;
  color: black;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
}

#WLScreen {
  position: absolute;
  height: 100%;
  width: 100%;
  display: none;
  background-color: hsla(0, 0%, 15%, 0.95);
  top: 0%;
  z-index: 1;
  margin: 0px;
}

#WLText {
  margin-top: 30%;
  font-size: 10ch;
  font-weight: bold;
}

#WLAmount {
  font-size: 3ch;
  font-weight: bold;
}

#homeScreen,
#newGame {
  margin-top: 8px;
  background-color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 2px 2px 2px #171614;
  color: #312e2b;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 6px;
  position: relative;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: hsla(0, 0%, 15%, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  margin-top: 0px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}

body #span {
  position: fixed;
  width: fit-content;
  font-size: 30px;
  cursor: pointer;
  text-align: left;
  margin: 0px 20px;
}

#mySidenav img {
  height: 50px;
}

@media only screen and (max-width: 900px) {
  html {
    box-shadow: 0 0 20px 20px #027339 inset;
  }
  #logo {
    height: 30px;
  }
  .chips img {
    height: 50px;
    width: 50px;
    margin-bottom: -54px;
  }
  .chips {
    margin: 5px;
  }
  #chips {
    bottom: 58px;
  }
  #progressBarDiv {
    margin: 10px 10px 10px;
    top: 260px;
    width: 86px;
  }
  #progressBarDecks {
    height: 206px;
  }
  #myProgress {
    height: 200px;
    width: 70px;
  }

  #basicStrategyCardTable {
    font-size: 1px;
    right: 10px;
  }

  #game img,
  #dealerHand img,
  #playerHand #hand1 img,
  #playerHand #hand2 img,
  #playerHand #hand3 img,
  #playerHand #hand4 img {
    width: 60px;
    height: 87px;
    margin: 5px;
  }
  #playerHand img {
    width: 50px;
  }
  #playerHand {
    margin: 0px;
  }
  #dealerHand {
    height: 250px;
    width: 210px;
  }
  #bet {
    margin-top: 5px;
  }
  .button {
    height: 25px;
    width: 80px;
    font-size: 12px;
  }
  #errors {
    margin-top: 100px;
    margin-bottom: 10px;
    font-size: 30px;
  }
  #homeScreen,
  #newGame,
  #cancleMove,
  #goAgainstBestMove {
    font-size: 20px;
    margin: 7px;
    width: fit-content;
  }
  #wlTotal {
    font-size: 30px;
    margin-top: 20px;
  }
}
