body {
  letter-spacing: -0.01rem;
}

a {
  color: #2a7cd3;
}
.nav-background {
    background-color: #3c0c01;
    background-image: url(/images/site-backgrounds/leather.png);
    background-size: 150px;
}

nav.navbar {
  padding: 0.1em !important;
  font-size: 14px !important;
  z-index: 100;
  background: linear-gradient( 180deg, #00000000 60%, #ffffff11 90%, #00000033 100% );
  box-shadow: 0px 2px 5px #00000066;
}

nav.navbar a, nav.navbar span, nav.navbar .nav-item.dropdown a.nav-link, .navbar-dark .navbar-nav .nav-link {
  color: #ffe2d1;
  font-size: 0.8rem;
}

.navbar-brand img {
  width: 200px;
  height: auto;
}
.game-buttons .btn.btn-success {
  font-size: 1.1em;
  padding: 0.4em;
  top: 2px;
  color: #fff;
}

#game-container {
  box-shadow: inset 0px 0px 100px #00000066;
}


.btn.btn-success {
  background-color: #218838;
  border-color: #105a21;
  border-right-width: 3px;
  border-bottom-width: 3px;
  text-shadow: 1px 1px 0px #0d441a;
  line-height: 1;
  padding: 0.5em 0.4em;
  position: relative;
  /* text-transform: uppercase; */
  font-size: 1.2em;
  /* letter-spacing: .05em; */
  font-weight: 800;
  border-radius: 8px;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.2),
    0px 2px 1px rgba(255, 255, 255, 0.15);
}

.container h1 {
  color: #9b0404;
  font-weight: 600;
  margin: 20px 0px;
}

.container h2 {
  color: #d54f4f;
  font-weight: 600;
  margin: 20px 0px;
}

.container h3 {
  color: #830000;
  font-weight: 600;
  margin: 20px 0px;
}

.container h4 {
  color: #9b0404;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 20px 0px;
}


.overlay-menu {
  width: 80%;
  height: 400px;
  background-color: #00000033;
  z-index: 1000;
  position: absolute;
  border-radius: 20px;
  top: 220px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay-menu div {
  margin: auto;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  text-align: center;
}
.highlight {
  border: 0px solid white;
}

.background_container {
  background-color: #245324;
  background-image: url(/images/site-backgrounds/classy-fabric.png);
}

.side_container {
  position: absolute;
  z-index: 1001;
}

.side_buttons {
  position: absolute;
  top: 550px;
  left: 10px;
  z-index: 1001;
}

h1.headline {
  color: white;
  font-weight: 300;
  font-size: 1.5em;
  z-index: 100;
  text-align: center;
  padding: 10px 0px 0px 10px;
}

.heartIcon {
  color: red;
  font-size: 2.5em;
  text-align: center;
}

.menu-buttons {
  position: absolute;
  top: 200px;
  left: 15px;
  width: 100px;
  z-index: 1000;
}

.table_container {
  width: 650px;
  height: 650px;
  margin: -8px auto 0 auto;
  position: relative;
}

.ad-container {
  position: absolute;
  top: 100px;
  right: 10px;
}

.hand {
  border: 0px solid white;
  position: absolute;
  z-index: 10;
  width: 350px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.template-game-card-other,
.template-game-card-user,
.game-card,
.filler-card {
  position: relative;
  width: 69px;
  height: 100px;
  margin-left: -46px;
}

.hand .game-card:first-of-type,
.hand .filler-card:first-of-type {
  margin-left: 0px;
}

#deck .game-card {
  margin-left: 35px;
  margin-top: 50px;
  position: absolute;
}

.pile-card {
  width: 17px;
  height: 26px;
  margin-left: 5px;
  margin-top: 0px;
  bottom: 0px;
  position: relative;
}

#game-timer {
  text-align: right;
  font-size: smaller;
  position: absolute;
  bottom: 0;
  right: 0;
}

#multiplayer-link {
  display: block;
  font-size: 0.7em;
  color: white;
}

.name {
  display: inline-block;
  position: absolute;
  font-weight: bold;
}

#spadesBroken {
  position: absolute;
  top: 163px;
  left: 273px;
}

.spades-bid {
  position: absolute;
  background-color: #00000033;
  width: 50px;
  height: 25px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  text-align: center;
  font-size: 0.7em;
  padding-top: 4px;
}

.bid-inner {
}
.bid-inner::before {
  content: " / ";
}
.spades-bid-user {
  bottom: 14px;
  left: 95px;
}

.bid-bubble {
  position: absolute;
  background-color: #000000cc;
  z-index: 1000;
  border-radius: 4px;
  color: white;
  padding: 5px 10px;
}


.name-user {
  top: 620px;
  left: 150px;
}

.name-0 {
  transform: rotate(0deg);
  bottom: 35px;
  left: 150px;
}

.hand-0 {
  transform: rotate(0deg);
  top: 515px;
  left: 150px;
}

.spades-bid-1 {
  left: 5px;
  top: 110px;
}

.name-1 {
  left: 42px;
  top: 150px;
  transform: rotate(90deg);
  transform-origin: top left;
}

.hand-1 {
  left: 146px;
  top: 150px;
  transform: rotate(90deg);
  transform-origin: top left;
  text-align: left;
}

.bid-bubble-1 {
  left: 65px;
  top: 175px;
}

.spades-bid-2 {
  left: 120px;
  top: 16px;
}

.name-2 {
  left: 175px;
  top: 16px;
}

.hand-2 {
  left: 150px;
  top: 46px;
  transform: rotate(180deg);
  text-align: left;
}

.bid-bubble-2 {
  left: 170px;
  top: 66px;
}


.spades-bid-3 {
  top: 510px;
  left: 595px;
}

.name-3 {
  top: 286px;
  transform: rotate(270deg);
  left: 418px;
  width: 400px;
}

.hand-3 {
  top: 498px;
  transform: rotate(270deg);
  transform-origin: top left;
  left: 503px;
  text-align: left;
}

.bid-bubble-3 {
  top: 445px;
  left: 520px;
}


.flip-image {
  transform: scaleX(-1);
}

#deck,
#trick,
#passCardsReadyButton {
  position: absolute;
  width: 138px;
  height: 207px;
  top: 225px;
  left: 256px;
  z-index: 100;
}
#passCardsReadyButton {
  z-index: 5000;
}

#msg {
  border-radius: 5px;
  text-align: center;
  position: absolute;
  width: 327px;
  height: 32px;
  top: 443px;
  left: 161px;
  z-index: 100;
}
#msg .inner {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#trick div {
  display: inline-block;
  position: absolute;
}

#trick .game-card {
  margin: 0px;
}

.trick-hand-0,
.trick-hand-1,
.trick-hand-2,
.trick-hand-3 {
  width: 69px;
  height: 100px;
}

#trick .trick-hand-0 {
  top: 50%;
  left: 25%;
  border: 0px solid white;
}

#trick .trick-hand-1 {
  top: 25%;
  left: 0;
  border: 0px solid white;
}

#trick .trick-hand-2 {
  top: 0;
  left: 25%;
  border: 0px solid white;
}

#trick .trick-hand-3 {
  top: 25%;
  left: 50%;
  border: 0px solid white;
}

#allScoresTable {
  position: absolute;
  bottom: 10px;
  right: 35px;
  width: 100px;
  font-size: 0.5em;
  color: white;
  margin: 0px;
}

#passArrow.turn-position-0 {
  font-size: 3em;
  transform: rotate(180deg);
}
#passArrow.turn-position-1 {
  font-size: 3em;
  transform: rotate(270deg);
  margin-left: 7px;
}
#passArrow.turn-position-2 {
  font-size: 3em;
  transform: rotate(0deg);
}

#allScoresTable th div {
  writing-mode: vertical-lr;
}

.heartsScoreTable td,
.spadesScoreTable td {
  text-align: center;
}

/** SPADES **/

.bidContainer {
  width: 300px;
  height: 300px;
  background-color: #00000033;
  z-index: 1000;
  position: absolute;
  border-radius: 20px;
  top: 175px;
  left: 175px;
  display: none;
}

.bidContainer div {
  margin: auto;
  top: 50%;
  transform: translate(0%, -50%);
  position: absolute;
  text-align: center;
}

#pointsTable {
  font-size: 0.8em;
  text-align: center;
}
#pointsTable.table-sm td,
#pointsTable.table-sm th {
  padding: 0.2rem;
}

#pointsTable > tbody > tr:first-child > th:first-child {
  font-weight: bold;
}

#pointsTable > tbody > tr:last-child {
  font-weight: bold;
}

@media (max-width: 1500px) {
  /* Overall resizing */
  .table_container {
    margin: -8px 450px 0 auto;
  }

  .overlay-menu {
    top: 300px;
  }
}

@media (max-width: 1050px) {
  /* Overall resizing */
  .overlay-menu {
    width: -webkit-calc(90% - 220px);
    width: -moz-calc(90% - 220px);
    width: calc(90% - 220px);
  }

  .table_container {
    width: -webkit-calc(100% - 220px);
    width: -moz-calc(100% - 220px);
    width: calc(100% - 220px);
    margin: -8px auto 0 0;
  }

  /* Buttons and menu resizing */
  .heartIcon {
    font-size: 1em;
  }

  .side_container {
    width: 100px;
  }

  .side_buttons {
    max-width: 120px;
    font-size: 12px;
  }

  #multiplayer-link {
    font-size: 0.5em;
  }

  /* Game resizing */
  .hand {
    width: 185px;
  }

  .template-game-card-other,
  .game-card,
  .filler-card {
    width: 35px;
    height: 50px;
    margin-left: -24px;
  }

  .hand-user {
    width: 340px;
    left: 18%;
  }

  .template-game-card-user,
  .hand-user > .game-card,
  .hand-user > .filler-card {
    width: 58px;
    height: 83px;
    margin-left: -36px;
  }

  .name-user {
    top: 510px;
  }

  .hand-0 {
    top: 420px;
  }

  .name-1 {
    left: 40px;
  }

  .hand-1 {
    left: 100px;
  }

  .bid-bubble {
    padding: 5px;
  }

  .bid-bubble-1 {
    left: 50px;
  }

  .name-2 {
    left: 160px;
  }

  .hand-2 {
    left: 100px;
  }

  .name-3 {
    top: 105px;
    left: -webkit-calc(100% - 310px);
    left: -moz-calc(100% - 310px);
    left: calc(100% - 310px);
  }

  .hand-3 {
    top: 320px;
    left: -webkit-calc(100% - 180px);
    left: -moz-calc(100% - 180px);
    left: calc(100% - 180px);
  }

  .bid-bubble-3 {
    left: -webkit-calc(100% - 190px);
    left: -moz-calc(100% - 190px);
    left: calc(100% - 190px);
    top: 270px;
  }

  #spadesBroken {
    top: -20px;
    left: 20px;
  }

  .spades-bid-0 {
    bottom: 115px;
  }

  .spades-bid-2 {
    left: 100px;
  }

  .spades-bid-3 {
    top: 335px;
    left: -webkit-calc(100% - 150px);
    left: -moz-calc(100% - 150px);
    left: calc(100% - 150px);
  }

  .bidContainer {
    width: 175px;
    height: 250px;
    top: 115px;
    left: 30%;
  }

  .bid-button {
    padding: 0px 5px;
  }

  #deck,
  #trick,
  #passCardsReadyButton {
    top: 115px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  .trick-hand-0,
  .trick-hand-1,
  .trick-hand-2,
  .trick-hand-3 {
    width: 48px;
    height: 65px;
  }

  #trick .trick-hand-0 {
    left: -webkit-calc(50% - 25px);
    left: -moz-calc(50% - 25px);
    left: calc(50% - 25px);
  }

  #trick .trick-hand-1 {
    left: 15px;
  }

  #trick .trick-hand-2 {
    left: -webkit-calc(50% - 25px);
    left: -moz-calc(50% - 25px);
    left: calc(50% - 25px);
  }

  #trick .trick-hand-3 {
    left: -webkit-calc(100% - 60px);
    left: -moz-calc(100% - 60px);
    left: calc(100% - 60px);
  }

  #trick .game-card {
    width: 48px;
    height: 65px;
  }

  #msg {
    height: 32px;
    z-index: 100;

    width: 80%;
    top: 355px;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 770px) {
  /* Overall resizing */
  .overlay-menu {
    width: 90%;
  }

  .table_container {
    width: 90%;
  }

  /* Game resizing */
  .name-user {
    top: 470px;
  }

  .hand-0 {
    top: 385px;
  }

  .name-3 {
    top: 105px;
    left: -webkit-calc(100% - 175px);
    left: -moz-calc(100% - 175px);
    left: calc(100% - 175px);
  }

  .hand-3 {
    top: 320px;
    left: -webkit-calc(100% - 40px);
    left: -moz-calc(100% - 40px);
    left: calc(100% - 40px);
  }

  .bid-bubble-3 {
    left: -webkit-calc(100% - 60px);
    left: -moz-calc(100% - 60px);
    left: calc(100% - 60px);
    top: 270px;
  }

  .spades-bid-3 {
    top: 335px;
    left: -webkit-calc(100% - 25px);
    left: -moz-calc(100% - 25px);
    left: calc(100% - 25px);
  }

  .spades-bid-0 {
    bottom: 155px;
  }
}

@media (max-width: 420px) {
  /* Game resizing */
  .menu-buttons {
    top: 700px;
    font-size: 0.7em;
  }

  .hand-user {
    left: 8%;
  }

  .bidContainer {
    width: 160px;
    left: 115px;
  }

  .bid-button {
    padding: 0px 4px;
  }

  .heartsScoreTable td,
  .heartsScoreTable th {
    padding: 0;
  }
}


.ad-container {
  display:none;
}

@media (min-width: 1100px) {
  .ad-container {
    display:block;
    width:320px;
    height:300px;
  }
}