@charset "UTF-8";

.talent-buttons-container {
  max-width: 800px;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.totals-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  margin-bottom: 2em;
}

.total {
  display: flex;
  align-items: center;
  margin: 0;
  text-align: center;
}

.total-icon {
  width: 30px;
  height: auto;
  margin-right: 0;
}

.total span {
  display: inline-block;
  vertical-align: middle;
  color: #FFFFFF;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  font-size: 1.3em;
  margin: 0 1em;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(40px, auto);
  gap: 0px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1em;
  padding: 0 5px;
  box-sizing: border-box;
  justify-items: center;
  align-items: start;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0;
  border-radius: 0px;
  /* min-height: 100px; */
  height: auto;
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  overflow: visible;
  width: 100%;
  max-width: 100px;
  margin: 0;
  box-sizing: border-box;
}

.blank-space {
  width: 100%;
  max-width: 100px;
  /* height: 100px; */
  margin: 0;
  padding: 0;
}

/* Add styles for locked nodes */
.grid-item.locked {
  cursor: not-allowed;
}

.grid-item.locked .talent-image {
  filter: grayscale(100%) opacity(50%);
}

.grid-item.locked:hover {
  transform: none;
}

.grid-item > * {
  max-width: 100%;
}

.grid-item p {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 2px 0;
  width: 100%;
  font-size: 0.9em;
  box-sizing: border-box;
}

.grid-item:hover > p,
.grid-item:hover p {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.grid-item:active .talent-image {
  transform: scale(0.95);
}

.talent-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0 0;
  width: 100%;
  pointer-events: none;
}

.talent-image {
  max-width: 60px;
  width: 100%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.editMode .talent-image {
  opacity: 0.7;
}

.bullet-container {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  margin: -7px 0 0 0;
  z-index: 5;
}

.bullet {
  width: 0.7em;
  height: 0.7em;
  border: 0.1em solid black;
  border-radius: 50%;
  display: inline-block;
  background-color: #A9A9A9;
}

.bullet.active {
  background-color: gold;
}

.description-container {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-container p {
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 0.7em;
  line-height: 1.2em;
  border-radius: 8px;
  padding: 0px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  box-sizing: border-box;
  word-break: break-word;
}

.toast-container {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: bottom 0.3s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 2000;
  max-width: 95vw;
  width: fit-content;
  min-width: 200px;
  opacity: 0;
  font-family: 'Verdana', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.toast-container.show {
  bottom: 24px;
  opacity: 1;
}

.toast-content {
  margin: 0px 0px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  white-space: pre-line;
  line-height: 1.6;
}

.toast-content::before {
  content: '🔔 ';
  font-size: 12px;
}

.hide-description {
  display: none;
}

@media (max-width: 800px) {
  .grid-container {
/*    font-size: 0.8em;*/
    gap: 2px;
    padding: 0 5px;
  }
  
  .talent-image {
    max-width: 50px;
  }
  
  .bullet {
    width: 0.6em;
    height: 0.6em;
  }
  
  .description-container p {
/*    font-size: 0.8em;*/
  }
}

@media (max-width: 400px) {
  .grid-container {
/*    font-size: 0.7em;*/
  }
  
  .talent-image {
    max-width: 40px;
  }
  
  .bullet {
    width: 0.5em;
    height: 0.5em;
  }
  
  .description-container p {
/*    font-size: 0.7em;*/
  }
}