/* Copyright (c) BuddyBoardGames LLC. All rights reserved. */

@theme-color: #3d8eb9;
@theme-color-highlighted: #6ec4f5;
@bet-outline: #e654df;
@bet-outline-bottom: #7f207a;

@card-scaling-factor: 3;
@card-scaling-factor-lg: 3;
@card-scaling-factor-sm: 4.6;

@import "core.less";
@import "shedding-common.less";

#game-over-modal {
  --victory-winning-cell-color: @theme-color-highlighted;
}

#ask-rank-buttons .btn,
#ask-player-buttons .btn {
  margin: 4px;
}

.go-fish-instruction {
  font-size: 1rem;
  color: @theme-color-highlighted;
  padding: 8px 12px;
}

#my-cards-row {
  overflow: visible;
}

#my-cards-target .playing-card.go-fish-hand-card {
  cursor: pointer;
  position: relative;
  bottom: 0 !important;
  transition: box-shadow 0.15s ease, transform 0.15s ease;

  // Go Fish lifts by rank via classes, not shedding-common single-card :hover.
  &:hover {
    bottom: 0 !important;
  }
}

#my-cards-target .playing-card.go-fish-hand-card.card-selected-multi,
#my-cards-target .playing-card.go-fish-hand-card.card-hover-multi {
  box-shadow: 0 0 0 3px @theme-color-highlighted, 0 4px 12px rgba(110, 196, 245, 0.45);
  transform: translateY(-20px);
}

.go-fish-askable-player {
  cursor: pointer;
  border-radius: 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.go-fish-askable-player:hover,
.go-fish-askable-player.go-fish-player-highlight {
  box-shadow: 0 0 0 3px @theme-color-highlighted;
  transform: scale(1.03);
}

#community-cards-row.go-fish-card-table {
  position: relative;
  overflow: hidden;
}

#go-fish-stock-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 400;
  pointer-events: none;
}

#go-fish-stock-overlay.go-fish-stock-pile-active {
  pointer-events: auto;
  cursor: pointer;
}

#deck-position {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.go-fish-stock-pile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: visible;
}

.go-fish-stock-pile .go-fish-stock-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -(@card-width-sm / 2);
  margin-top: -(@card-height-sm / 2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transform-origin: center center;

  @media (min-width: 768px) {
    margin-left: -(@card-width-lg / 2);
    margin-top: -(@card-height-lg / 2);
  }
}

.go-fish-stock-pile-active .go-fish-stock-card-pick {
  pointer-events: auto;
  cursor: pointer;
}

.go-fish-stock-pile-active .go-fish-stock-card-pick.go-fish-stock-card-hover {
  box-shadow: 0 0 0 3px @theme-color-highlighted, 0 6px 14px rgba(0, 0, 0, 0.35);
}

.go-fish-stock-pile-active .go-fish-stock-card-pick.go-fish-stock-card-selected {
  box-shadow: 0 0 0 3px @theme-color-highlighted, 0 8px 16px rgba(110, 196, 245, 0.5);
}

.go-fish-sets {
  font-size: 0.85rem;
  color: @theme-color-highlighted;
  margin-left: 0.5rem;
  display: inline;
  white-space: nowrap;
}

#me-info {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6px;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

#me-info .me-info-data,
#me-info .global-info-me {
  flex-wrap: nowrap;
}

#position-me .player-info .info-text.global-info {
  flex-wrap: nowrap;
}

.go-fish-set-pop-card {
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
