/* General*/
:root {
  --primary: #e6af2e;
  --secondary: #052f5f;
  --bg: #f4f4f4;
  --rk-black: #0f0514;
  --rk-purple: #9933cc;
  --success: #198454;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Open Sans", Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--rk-black);
  flex-direction: column;
  align-items: center;
}

header {
  background-color: var(--secondary);
  color: var(--primary);
  width: 100%;
  padding: 1px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content {
  flex: 1;
  width: 100%;
}

h1 {
  margin: 0.2rem 0;
}

h2 {
  margin: 0.2rem 0.2rem 0.4rem;
}

h3 {
  margin: 0.2rem 0 0.4rem;
}

section {
  width: auto;
  margin: 0.8rem;
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Costs */
[class^="cost"] {
  font-weight: bold;
}
.cost-other {
  color: var(--primary);
}
.cost-legendary {
  color: #ffc000;
}
.cost-mythic {
  color: #c00000;
}
.cost-epic {
  color: #7030a0;
}
.cost-super-rare {
  color: #215e99;
}
.cost-rare {
  color: #4ea72e;
}
.player-btn:disabled [class^="cost"] {
  color: currentColor;
}
.player-btn.selected [class^="cost"] {
  color: currentColor;
}

/* Bracket */

/* Teams */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
  gap: 0.4rem;
}

.team-card {
  border: 2px solid var(--secondary);
  border-radius: 6px;
  padding: 5px 10px 10px;
  background: #ffffff;
}

.team-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid var(--secondary);
  margin-bottom: 10px;
}

.team-logo {
  height: 1.5rem;
  width: auto;
  margin: 0.2rem 0.4rem 0.2rem 0.2rem;
}

.team-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--secondary);
  background: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  font-size: 0.9rem;
}

.player-btn:hover:not(:disabled) {
  filter: brightness(85%);
}

.player-btn.selected {
  background-color: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.player-btn:disabled {
  background: #eeeeee;
  color: #999999;
  border-color: #dddddd;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Footer */
footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--secondary);
  color: #ffffff;
  padding: 1rem 1rem 0.8rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.economy {
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-container {
  display: flex;
}

.picked-list {
  flex: 1;
}

.picked-btn {
  align-items: center;
  padding: 0.2em 0.4em;
  margin: 0 0.4em 0 0;
  border: 1px solid var(--rk-black);
  color: var(--rk-black);
  background-color: #eeeeee;
  border-radius: 1em;
  cursor: pointer;
  font-size: 0.9rem;
}

.picked-btn:hover {
  filter: brightness(85%);
}

.copy-btn {
  align-items: center;
  padding: 0.2em 0.4em;
  margin: 0 0 0 0.4;
  border: 1px solid var(--rk-black);
  color: #ffffff;
  background-color: var(--primary);
  border-radius: 1em;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
}

.copy-btn:hover {
  filter: brightness(85%);
}

/* Popup */
.toast {
  visibility: hidden;
  text-align: center;
  padding: 16px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  background-color: #444444;
  color: #ffffff;
  border-radius: 6px;
  position: fixed;
  opacity: 0;
  z-index: 1000;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
