/* Wargrum brand -- "Midnight Sanctum". Mirrors apps/platform-web globals.css.
   This file styles the DOM chrome layered OVER the Phaser canvas (buttons, labels,
   inputs); the canvas itself reads src/config/const.js. Keep the two in step.
   Fonts are loaded by the WebFont gate in src/main.js -- do not add @font-face here. */
:root {
  --bg: #0b0f1a;
  --card: #141d30;
  --panel-hi: #1b2740;
  --border: #2b3a57;
  --ink: #d8dfec;
  --ink-dim: #a9b4c9;
  --gold: #e6c876;
  --gold-bright: #f0d98d;
  --gold-deep: #d4b263;
  --on-gold: #22190a;
  --success: #4fbf87;

  --font-title: 'Goblin One', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-label: 'Abel', system-ui, sans-serif;
  --font-data: 'JetBrains Mono', ui-monospace, monospace;
}

body {
  background: var(--bg);
}

.button-wow {
  display: block;
  background-color: var(--card);
  color: var(--gold);
  padding: 10px 12px;
  border: 2px solid var(--gold);
  border-radius: 2px; /* stone-cut, matches the platform --radius */
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  font-size: 16px;
  text-transform: uppercase; /* Makes the text uppercase for emphasis */
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  /* Adding some shadows for depth */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-wow:hover {
  background-color: var(--gold);
  color: var(--on-gold);
  border: 2px solid var(--gold);
}

.button-wow:active {
  /* Slightly shift the button to simulate a pressing effect */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(2px);
}

.button-azeroth {
  background-color: var(--card);
  color: var(--gold);
  padding: 10px 20px;
  border: 3px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  font-size: 16px;
  /* text-transform: uppercase; */
  cursor: pointer;
  box-sizing: border-box;

  /* Subtle texture and depth */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, var(--card), var(--panel-hi));

  /* Adding an inner glow effect */
  position: relative;
  z-index: 1;
}

.button-azeroth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px;
  background: rgba(230, 200, 118, 0.2);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.button-azeroth:hover::before {
  opacity: 1;
}

.button-azeroth:active {
  /* Enhancing the pressing effect */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.button-azeroth:focus {
  outline: none; /* Removing the default outline for aesthetic reasons */
  box-shadow: 0 0 0 2px var(--gold);
}

.energy-label {
  display: inline-block;
  background-color: var(--card);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 2px;
  border: 2px solid var(--border);
  font-family: var(--font-data); /* it is a number -- data font */
  font-size: 18px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for depth */
  background: linear-gradient(to right, var(--panel-hi) 0%, var(--card) 100%);

  /* Adding a glow effect for emphasis */
  position: relative;
  z-index: 1;
}

.energy-label::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(to right, var(--gold-bright), var(--gold-deep));
  border-radius: 22px; /* Slightly larger to create a glowing border effect */
  z-index: -1;
  filter: blur(5px);
  opacity: 0.6;
}

.energy-label:hover {
  /* Enhancing the glow on hover for interactive feedback */
  box-shadow: 0 0 12px var(--gold-glow, rgba(230, 200, 118, 0.5));
}

.is-invisible {
  visibility: hidden;
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.text-hero {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
}

.is-hidden {
  display: none !important;
}

.mt-2 {
  margin-top: 8px;
}

.ml-2 {
  margin-left: 8px;
}

.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  color: var(--ink);
  background-color: var(--border);
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  vertical-align: baseline;
}

.tag.is-medium {
  padding: 0.5em 0.75em;
  font-size: 1rem; /* Larger font size */
}

#start-game-btn {
  transform: none !important;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

.current-turn {
  background-image: url('../assets/turnLableBackground.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-size: 16;
  font-family: var(--font-label);
  letter-spacing: 0.09em;
  align-items: center;
  text-align: center;
  /* height: 42px; */
  padding: 10px 10px;
  text-transform: uppercase; /* Makes the text uppercase for emphasis */
  cursor: pointer;
  color: var(--ink);
}

.next-phase {
  font-size: 16;
  font-family: var(--font-label);
  letter-spacing: 0.09em;
  align-items: center;
  text-align: center;
  height: 42px;

  text-transform: uppercase; /* Makes the text uppercase for emphasis */
  cursor: pointer;
  color: white;
  transition: color 0.3s ease; /* Smooth transition for text color */
  background-color: transparent; /* Set background to be transparent */
  border: 2px solid var(--border);
  border-radius: 2px;
}
.next-phase img {
  height: 42px;
  width: fit-content;
}
.next-phase:hover {
  background-color: var(--gold);
  color: var(--on-gold);
  border: 2px solid var(--gold); /* Dark brown border on hover */
  border-radius: 5px; /* Slightly rounded corners for a modern touch */
}
.match-control-btn {
  background-image: url('../assets/priorityLabelBackground.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-size: 16;
  font-family: var(--font-label);
  letter-spacing: 0.09em;
  align-items: center;
  text-align: center;
  /* height: 42px; */
  width: 160px;
  padding: 13px 10px;
  text-transform: uppercase; /* Makes the text uppercase for emphasis */
  cursor: pointer;
  color: var(--ink);
}

.match-control-btn :hover {
  color: var(--gold);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 2s linear infinite;
}

.ip1 {
  height: 32px; /* Height of the input field */
  font-size: 18px;
  border: none;
  padding: 10px;
  border-radius: 5px; /* Rounded corners */
  background-image: url('assets/input_bg.png'); /* Path to your background image */
  background-size: cover; /* Cover the entire input area */
  background-position: center; /* Center the background image */
  color: var(--ink);
  max-width: 120px;
}

.ip2 {
  height: 24px; /* Height of the input field */
  font-size: 18px;
  border: none;
  padding: 8px;
  border-radius: 5px; /* Rounded corners */
  background-image: url('assets/input_bg.png'); /* Path to your background image */
  background-size: cover; /* Cover the entire input area */
  background-position: center; /* Center the background image */
  color: var(--ink);
  max-width: 150px;
}
