/* CSS for playing cards */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #36454F;
  color: white;
}

ul {
  padding-inline-start: 0;
  list-style: none;
}

.card {
  width: 60px;
  height: 80px;
  background-image: url("cards_hd.png");
  background-size: 840px 320px;
  display: inline-block;
  margin: 10px 5px 10px 5px;
  border: 1px solid black;
  border-radius: 2px;
  box-shadow: 2px 3px black;
  opacity: 0.3;
}

.playableCard,
.activeTableCard,
.winningCard {
  opacity: 1;
}

.cardWithName {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cardWithName .nameOverCard {
  color: white;
  margin-left: 10px;
  margin-top: 10px;
  font-size: 12px;
  width: 60px;
}

.cardWithName .trick {
  border-radius: 5px;
  border-bottom: 8px solid green;
  opacity: 1;
  box-shadow: 8px 3px black;
}

.playableCard {
  cursor: pointer;
}

h1 {
  text-align: center;
  font-size: 46px;
  color: white;
}

h2 {
  text-align: center;
  font-size: 32px;
  color: white;
}

#poep {
  color: white;
}

#hub {
  background-color: black;
  border-radius: 10px;
  color: darkred;
}

#ke {
  background-color: red;
  border-radius: 10px;
  color: white;
}

#kees {
  color: white;
  font-size: 5px;
}

#indexFormContainer {
  align-items: center;
  display: flex;
  position: absolute;
  justify-content: center;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -50%);
}

#video {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-top: 20px;
}

#indexForm {
  border: 1px solid #292929;
  background-color: #292929;
  border-radius: 10px;
}

#error {
  text-align: center;
  margin-top: 250px;
}

#indexPoepName {
  vertical-align: middle;
  text-align: center;
  border: none;
  padding: 20px;
  margin: 10px;
  font-size: 20px;
  color: black;
  background-color: white;
}

#indexPoepName:focus {
  outline: none;
}

#indexForm:focus-within {
  outline: 1px solid black;
}

#nameChangeDiv {
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  color: white;
}

#indexJoinButtonContainer {
  text-align: center;
}

#indexJoinButton {
  border: 1px solid black;
  background: #292929;
  font-size: 20px;
  margin: 10px;
  padding: 10px;
  color: white;
  background-color: #668295;
  border-radius: 10px;
}

#eventList {
  margin: 10px 0 0 0;
  height: 14em;
  white-space: pre;
}

#playerList {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  gap: 8px;
  padding: 8px;
  margin: 0;
}

#lobbyPlayerList {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  height: auto;
  gap: 8px;
  margin: 8px 0;
}

.gameOptionsBlock {
  margin-top: 30px;
  margin-left: 15px;
}

#scoreModeWinHelpText {
  color: green;
}

#scoreModeLoseHelpText {
  color: darkred;
}

.lobbyPlayer {
  float: left;
  font-size: 16px;
  width: 150px;
  height: 45px;
  padding: 20px 5px 0 5px;
  margin: 0 5px 5px 0;
}

.gamePlayer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  gap: 10px;
  background: #111;
  border-radius: 4px;
}

#scoreOverview {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
}

#scoreOverviewHeader {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 20px;
  cursor: pointer;
  padding: 8px;

  border: 1px solid black;
  background-color: #808080;
}

#scoreOverviewHeader span {
  font-size: 16px;
  font-weight: bold;
}

#spectatorList {
  float: left;
  height: auto;
  margin: 5px 0 5px 5px;
}

.spectator {
  font-size: 16px;
  height: auto;
  line-height: 40px;
}

.gamePlayer .playerInfo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  gap: 10px;
}

.gamePlayer .playerHeader {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.gamePlayer .playerContent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
}

.gamePlayer .playerName {
  font-size: 18px;
  text-transform: capitalize;
  flex-grow: 1;
}

.gamePlayer .playerHandScore {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  flex-grow: 1;
}

.gamePlayer .playerTotalScore {
  font-size: 24px;
  font-weight: bold;
}
.gamePlayer .playerScoreHistory {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.gamePlayer .playerAvatarWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5px;
  gap: 14px;
  width: auto;
}

.gamePlayer .playerAvatarWrapper .playerAvatar {
  width: 40px;
  height: 40px;
  background-color: grey;
  border-radius: 50%;
}

.gamePlayer .playerScoreHistory .playerScoreHistoryItem {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 50%;
  padding: 4px;
  width: 18px;
  height: 18px;
  font-size: 14px;
  margin-left: -5px;
  border: 1px solid #666;
}

.regularMultiplier {
  border-radius: 10px;
  margin-top: 2px;
  padding: 5px;
  color: white;
  font-size: 14px;
  background-color: #666;
}

.streakWin {
  border-radius: 10px;
  margin-top: 2px;
  padding: 5px;
  font-size: 14px;
  background-color: green;
}

.streakLose {
  border-radius: 10px;
  margin-top: 2px;
  padding: 5px;
  font-size: 14px;
  background-color: red;
}

.gamePlayer .playerInfos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.gamePlayer .playerScoreMultiplier {
  width: 100px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
}

.gamePlayer li {
  list-style: none;
}

#gameInformation {
  float: left;
  height: auto;
  font-size: 14px;
  padding: 0 5px 0 0;
}

#bidsInformation {
  float: left;
  height: auto;
  margin-top: 10px;
  font-size: 18px;
}

.round,
.gameMode,
.totalBids {
  float: left;
  padding: 5px;
  margin: 0 5px 5px 0;
  color: white;
  width: auto;
  white-space: nowrap;
  border-radius: 10px;
  background-color: #292929;
}

.round,
.gameMode {
  background-color: green;
}

.totalBids {
  background-color: #292929;
}

.playerIcons {
  height: 60px;
  width: 30px;
}

.dealer {
  background-image: url("./../assets/dealer.png");
  background-repeat: no-repeat;
  background-position: top;
}

.playerBid {
  background-image: url("./../assets/bid.png");
  background-repeat: no-repeat;
  background-position: top;
}

.playerDealerAndBid {
  background-image: url("./../assets/dealer.png"), url("./../assets/bid.png");
  background-repeat: no-repeat;
  background-position: top, bottom;
}

.gameOptionSelect {
  font-size: 16px;
  padding: 10px;
  margin: 5px 5px 5px 0;
  width: 180px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  overflow-y: auto;
  outline: none;
  background-color: #292929;
  color: white;
}

button {
  padding: 5px;
  margin: 0 5px 0 0;
  cursor: pointer;
  font-weight: bold;
}

#lobbyButtons {
  margin: 10px 0 10px 0;
}

#leaveGameButton {
  float: left;
  background-color: red;
  padding: 0 5px 0 5px;
  height: 26px;
  color: white;
  margin: 0 0 5px 0;
  border-radius: 10px;
}

#bonusActivatorList {
  float: left;
  height: auto;
  width: 100%;
  min-height: 80px;
}

.bonusActivatorButton {
  padding: 10px;
  height: 60px;
  font-size: 30px;
  font-weight: bold;
  margin: 10px 20px 10px 0;
  opacity: 0.9;
  cursor: pointer;
  border: none;
}

.bonusActivatorButton:hover {
  opacity: 1;
  border: none;
}

#bidButtonList {
  float: left;
  height: auto;
  width: 100%;
  min-height: 80px;
}

.bidButton {
  padding: 10px;
  height: 60px;
  font-size: 30px;
  font-weight: bold;
  margin: 10px 20px 10px 0;
  opacity: 0.7;
  cursor: pointer;
  box-shadow: none;
  border: none;
}

.bidButton:hover {
  opacity: 1;
  box-shadow: none;
  border: none;
}

#tableContainer,
#handContainer {
  float: left;
  overflow: hidden;
  width: 100%;
}

.table,
.hand {
  float: left;
  width: 100%;
  height: auto;
  min-height: 110px;
  background-color: green;
  margin: 10px 0 10px 0;
  border-radius: 5px;
}

.trickDiv {
  float: left;
  height: 100%;
  width: 100px;
}

.hand {
  background-color: #292929;
}

@media only screen and (min-width: 1080px) {
  #game {
    width: 70%;
    border-radius: 5px;
  }
}

@media only screen and (min-width: 1080px) {
  #detailPanel {
    position: fixed;
    display: inline-block;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: #292929;
    border-left: 1px solid #292929;
    border-radius: 5px;
  }
}

#scoreOverviewTable {
  border: 1px solid;
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  border-radius: 5px;
}

#scoreOverviewTable td {
  background: #808080;
  padding: 20px;
  overflow: hidden;
  white-space: nowrap;
  border: solid 1px #000;
}

#cardsHistoryContainer {
  clear: both;
  padding-top: 30px;
  padding-bottom: 30px;
}

#cardsHistory {
  height: auto;
  margin: auto;
  width: 100%;
}

#cardsHistory .cardsHistoryRound {
  float: left;
  margin-right: 50px;
}

#cardsHistory .card {
  margin-right: -32px;
  opacity: 1;
}

#cardsHistory .winningCard {
  border-bottom: 16px;
}

h2 {
  padding: 0;
  margin: 0;
}

.s14 {
  background-position: 0px 0px;
  width: 60px;
  height: 80px;
}

.s2 {
  background-position: -60px 0px;
  width: 60px;
  height: 80px;
}

.s3 {
  background-position: -120px 0px;
  width: 60px;
  height: 80px;
}

.s4 {
  background-position: -180px 0px;
  width: 60px;
  height: 80px;
}

.s5 {
  background-position: -240px 0px;
  width: 60px;
  height: 80px;
}

.s6 {
  background-position: -300px 0px;
  width: 60px;
  height: 80px;
}

.s7 {
  background-position: -360px 0px;
  width: 60px;
  height: 80px;
}

.s8 {
  background-position: -420px 0px;
  width: 60px;
  height: 80px;
}

.s9 {
  background-position: -480px 0px;
  width: 60px;
  height: 80px;
}

.s10 {
  background-position: -540px 0px;
  width: 60px;
  height: 80px;
}

.s11 {
  background-position: -600px 0px;
  width: 60px;
  height: 80px;
}

.s12 {
  background-position: -660px 0px;
  width: 60px;
  height: 80px;
}

.s13 {
  background-position: -720px 0px;
  width: 60px;
  height: 80px;
}

.st {
  background-position: -780px 0px;
  width: 60px;
  height: 80px;
}

.c14 {
  background-position: 0 -80px;
  width: 60px;
  height: 80px;
}

.c2 {
  background-position: -60px -80px;
  width: 60px;
  height: 80px;
}

.c3 {
  background-position: -120px -80px;
  width: 60px;
  height: 80px;
}

.c4 {
  background-position: -180px -80px;
  width: 60px;
  height: 80px;
}

.c5 {
  background-position: -240px -80px;
  width: 60px;
  height: 80px;
}

.c6 {
  background-position: -300px -80px;
  width: 60px;
  height: 80px;
}

.c7 {
  background-position: -360px -80px;
  width: 60px;
  height: 80px;
}

.c8 {
  background-position: -420px -80px;
  width: 60px;
  height: 80px;
}

.c9 {
  background-position: -480px -80px;
  width: 60px;
  height: 80px;
}

.c10 {
  background-position: -540px -80px;
  width: 60px;
  height: 80px;
}

.c11 {
  background-position: -600px -80px;
  width: 60px;
  height: 80px;
}

.c12 {
  background-position: -660px -80px;
  width: 60px;
  height: 80px;
}

.c13 {
  background-position: -720px -80px;
  width: 60px;
  height: 80px;
}

.ct {
  background-position: -780px -80px;
  width: 60px;
  height: 80px;
}

.d14 {
  background-position: 0px -160px;
  width: 60px;
  height: 80px;
}

.d2 {
  background-position: -60px -160px;
  width: 60px;
  height: 80px;
}

.d3 {
  background-position: -120px -160px;
  width: 60px;
  height: 80px;
}

.d4 {
  background-position: -180px -160px;
  width: 60px;
  height: 80px;
}

.d5 {
  background-position: -240px -160px;
  width: 60px;
  height: 80px;
}

.d6 {
  background-position: -300px -160px;
  width: 60px;
  height: 80px;
}

.d7 {
  background-position: -360px -160px;
  width: 60px;
  height: 80px;
}

.d8 {
  background-position: -420px -160px;
  width: 60px;
  height: 80px;
}

.d9 {
  background-position: -480px -160px;
  width: 60px;
  height: 80px;
}

.d10 {
  background-position: -540px -160px;
  width: 60px;
  height: 80px;
}

.d11 {
  background-position: -600px -160px;
  width: 60px;
  height: 80px;
}

.d12 {
  background-position: -660px -160px;
  width: 60px;
  height: 80px;
}

.d13 {
  background-position: -720px -160px;
  width: 60px;
  height: 80px;
}

.dt {
  background-position: -780px -160px;
  width: 60px;
  height: 80px;
}

.h14 {
  background-position: 0px -240px;
  width: 60px;
  height: 80px;
}

.h2 {
  background-position: -60px -240px;
  width: 60px;
  height: 80px;
}

.h3 {
  background-position: -120px -240px;
  width: 60px;
  height: 80px;
}

.h4 {
  background-position: -180px -240px;
  width: 60px;
  height: 80px;
}

.h5 {
  background-position: -240px -240px;
  width: 60px;
  height: 80px;
}

.h6 {
  background-position: -300px -240px;
  width: 60px;
  height: 80px;
}

.h7 {
  background-position: -360px -240px;
  width: 60px;
  height: 80px;
}

.h8 {
  background-position: -420px -240px;
  width: 60px;
  height: 80px;
}

.h9 {
  background-position: -480px -240px;
  width: 60px;
  height: 80px;
}

.h10 {
  background-position: -540px -240px;
  width: 60px;
  height: 80px;
}

.h11 {
  background-position: -600px -240px;
  width: 60px;
  height: 80px;
}

.h12 {
  background-position: -660px -240px;
  width: 60px;
  height: 80px;
}

.h13 {
  background-position: -720px -240px;
  width: 60px;
  height: 80px;
}

.ht {
  background-position: -780px -240px;
  width: 60px;
  height: 80px;
}

.input-color-container {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  margin-bottom: 10px;
}

.input-color {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 56px;
  height: 56px;
  border: none;
}

.input-color-label {
  cursor: pointer;
  text-decoration: underline;
  color: #3498db;
}

.current-turn-border-player {
  border-left: 6px solid red;
}

.not-current-turn-border-player {
  border-left: 6px solid #111;
}

.current-turn-border-hand {
  background-color: #808080;
}

.not-current-turn-border-hand {
  background-color: #292929;
}
