/* Hero list and grid */
.hero-list.collapsed .card-body {
  max-height: 0;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
}

.hero-item {
  width: 80px;
  height: 80px;
  background-color: #ddd;
}

/* Hero card styles */
.hero-card {
  width: 80px;
  height: 80px;
  background-color: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
}

.hero-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.hero-link:hover .hero-icon-name {
  opacity: 1;
}

.hero-icon-name {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 12px;
  padding: 2px;
  text-align: center;
  word-break: break-word;
}

.hero-icon-name-notready {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  font-size: 12px;
  text-align: center;
  word-break: break-word;
}

.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-icon-normal{
  border-color: solid 50px #00bcd4;
  font-size: 12px;
  padding: 2px;
  text-align: center;
}


/* Hero container and selected hero styles */
.hero-desc {
  display: flex;
  background-color: DodgerBlue;
  background-color: #f1f1f1;
  padding: 21px;
}


/* New hero introduction styles */
.hero-introduction {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-text-bold{
  font-weight:bold;
}

.hero-desc-name-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-desc-job {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

.hero-desc-name {
  font-size: 1.1em;
  font-weight: bold;
  margin:5px;
  text-align: center;
}

.hero-skill-tree select {
  padding: 5px;
  font-size: 1em;
}

.hero-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 50px; /* 최소 높이 지정 */
}

.hero-description {
  margin: 0;
  line-height: 1.6;
}

.hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin: 0 0 10px 0;
}

.type-selector{
  margin:auto;
}

/* Tag styles */
.tag {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  color: white;
}

.tag-summoner { background-color: #00bcd4; }
.tag-intelligence { background-color: #e91e63; }
.tag-range { background-color: #ff9800; }

/* Layout grids */
.information-grid {
  display: grid;
  padding: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Miscellaneous */
.skill-table {
  border-collapse: collapse;
	border-spacing: 0;
}

th, td {
	padding: 10px;
}
th {
	background: #f4f4f4;
}

.toggle-icon {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hero-list.collapsed .toggle-icon {
  transform: rotate(-180deg);
}

.filters {
  margin-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  align-items: center;
  flex-grow: 1;
}

/* Info container styles */
.info-container {
  display: flex;
  flex-wrap: wrap;
}

.info-content {
  flex: 1;
  min-width: 50%;
  padding-right: 15px;
}

.info-chart {
  flex: 1;
  min-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border:solid, #ddd;
}

/* Keyword styles */
.keyword-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 20px 15%;
  overflow: visible;
}

.keyword-table{
  padding:0px;
}
.keyword-table .td{
  padding:0px;
}
.keyword {
  margin:auto;
  padding: 5px 10px;
  border-radius: 15px;
  color: white;
  font-size: 14px;
  cursor: help;
  display: inline-block;
  background-color: #ddd;
}

/* Grid styles */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.hero-card {
  background-color: white;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
}

.item-table{
  padding:0px;
}

.item-description{
  align-content: center;
}

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

/* Media Queries */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .info-content, .info-chart {
    min-width: 100%;
  }

  .info-content {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .card-header {
    padding: 8px;
  }

  .card {
    margin-bottom: 10px;
  }

  .card-content {
    padding: 10px;
  }

  .hero-desc-icon {
    align-self: center; /* 아이콘 중앙 정렬 */
  }

  .hero-desc-name,
  .hero-desc-class {
    text-align: center; /* 텍스트 왼쪽 정렬 */
  }

  .hero-skill-tree{
    margin:auto
  }

  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
  }

  .hero-card {
    padding: 6px;
  }

  th, td {
    width: 100%;
    display: block;
    border-top: none;
  }
  td:nth-child(1) {  
    background-color: #ddd;
  }
}

.hero-icon-card-container {
  position: relative;
  color: #fff;
  background: transparent;
  overflow: hidden;
  border-top: 1px solid rgba(255, 49, 49, 0.5);
  border-right: 1px solid rgba(0, 255, 255, 0.5);
  border-bottom: 1px solid rgba(57, 255, 20, 0.5);
  border-left: 1px solid rgba(255, 255, 113, 0.5);
  display: inline-block;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.borderspan {
  position: absolute;
  border-radius: 100vmax;
}

.border-top {
  top: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 50%,
    rgba(255, 49, 49, 0.5),
    rgb(255, 49, 49)
  );
}

.border-bottom {
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    rgb(57, 255, 20),
    rgba(57, 255, 20, 0.5),
    transparent 50%
  );
}

.border-right {
  top: 0;
  right: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0, 255, 255, 0.5),
    rgb(0, 255, 255)
  );
}

.border-left {
  left: 0;
  bottom: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 113),
    rgba(255, 255, 113, 0.5),
    transparent 70%
  );
}

.border-top {
  animation: animateTop 3s ease-in-out infinite;
}

.border-bottom {
  animation: animateBottom 3s ease-in-out infinite;
}

.border-right {
  animation: animateRight 3s ease-in-out infinite;
}

.border-left {
  animation: animateLeft 3s ease-in-out infinite;
}

@keyframes animateTop {
  25% {
    width: 100%;
    opacity: 1;
  }

  30%,
  100% {
    opacity: 0;
  }
}

@keyframes animateBottom {
  0%,
  50% {
    opacity: 0;
    width: 0;
  }

  75% {
    opacity: 1;
    width: 100%;
  }

  76%,
  100% {
    opacity: 0;
  }
}

@keyframes animateRight {
  0%,
  25% {
    opacity: 0;
    height: 0;
  }

  50% {
    opacity: 1;
    height: 100%;
  }

  55%,
  100% {
    height: 100%;
    opacity: 0;
  }
}

@keyframes animateLeft {
  0%,
  75% {
    opacity: 0;
    bottom: 0;
    height: 0;
  }

  100% {
    opacity: 1;
    height: 100%;
  }
}
