.team-characters-container {
  background-image: url("../../images/games/team-characters/background.webp");
  background-position: center center;
  background-size: cover;
  position: relative;
  padding: 240px 0;
  --effect-color: #73f6de;
  --background-color-blue: #a5ffef;
  box-sizing: border-box;
}

.team-characters-heading,
.team-characters-container p,
.team-characters-choose-btn {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  text-transform: uppercase;
}

.team-characters-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 48px; */
}

.team-characters-heading {
  line-height: 1;
  letter-spacing: 0.5px;
  font-size: 80px;
  margin-bottom: 0.2em;
}

.team-characters-content {
  display: flex;
  justify-content: space-between;
}

/* Character info */

.team-characters-info-wrapper {
  margin-top: 80px;
  align-self: start;
}

.team-characters-info-field {
  min-width: 300px;
  margin-bottom: 16px;
  padding: 24px 48px;
  min-width: 400px;
  /* height: 54px; */
  position: relative;
}

.team-characters-info-field:first-child {
  padding: 18px 48px;
}

.team-characters-info-field:last-child {
  margin-bottom: 0;
}

.team-characters-info-field:before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 80%;
  background: var(--effect-color);
  filter: blur(10px);
  /* z-index: -1; */
  transform: scale(0.9);
}

.team-characters-info-field-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.team-characters-info-field-content {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  /* text-wrap: nowrap; */
  flex-wrap: wrap;
}

.team-characters-info-field-content--name {
  justify-content: center;
}

.team-characters-info-field-content--power {
  justify-content: space-between;
}

.team-characters-info-field--name {
  font-size: 20px;
}

.team-characters-info-field--power {
  font-size: 12px;
}

.team-characters-power-bar-wrapper {
  width: 124px;
  margin-left: auto;
}

.team-characters-power-bar {
  height: 5px;
  width: 0%;
  background-color: var(--background-color-blue);
  border-radius: 5px;
  position: relative;
}

.team-characters-power-bar.fill-transition {
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-characters-power-bar .team-characters-power-bar-percentage {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  text-transform: uppercase;
  font-size: 10px;
  position: absolute;
  right: 2px;
  top: 8px;
}

/*
.team-characters-power-bar::before {
  content: "100%";
}
*/

/* Carousel */

.team-characters-carousel-container {
  position: relative;
  display: flex;
  z-index: 10;
  max-width: 500px;
}

.team-characters-carousel-arrow-btn {
  background: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
}

.team-characters-carousel-arrow-btn.disabled {
  pointer-events: none; /* Disable pointer events */
  opacity: 0.8; /* Reduce opacity to visually indicate that the arrows are disabled */
}

.team-characters-carousel-arrow-btn--left {
  left: 0;
}

.team-characters-carousel-arrow-btn--right {
  right: 0;
}

.team-characters-carousel-wrapper {
  display: flex;
  overflow: hidden;
}

.team-characters-carousel {
  display: flex;
  gap: 100px;
}

.team-characters-carousel-item {
  width: 500px;
  display: flex;
  justify-content: center;
}

.team-characters-carousel.sliding-transition {
  transition: transform 0.5s;
}

.team-characters-carousel-circle {
  width: 100%;
  height: 12%;
  bottom: 0;
  transform: translateY(25%);
  background: var(--background-color-blue);
  border-radius: 50%;
  position: absolute;
  z-index: -10;
  opacity: 0.2;
  box-shadow: 0 10px 20px 5px var(--effect-color);
  /* in order: x offset, y offset, blur size, spread size, color */
}

.team-characters-carousel-circle.resize-transition {
  /* @keyframes duration | easing-function | delay | name */
  transition: scale 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Button */
.team-characters-choose-btn {
  width: fit-content;
  background-color: #0000ff;
  font-size: 20px;
  padding: 0.9em 1.8em;
  text-align: center;
  text-decoration: none;
  /* in order: x offset, y offset, blur size, spread size, color */
  box-shadow: 0 4px 12px 0 var(--effect-color);
  align-self: end;
  margin-bottom: 80px;
}

/* 
 */

/* Below 1200px (landscape tablets) */
@media (max-width: 1279px) {
  .team-characters-wrapper {
    padding: 0 32px;
    width: fit-content;
  }

  /* Grid container */
  .team-characters-content {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr 1fr;
    column-gap: 16px;
    justify-content: center;
  }

  /* Info (grid item) */
  .team-characters-info-wrapper {
    /* 
    min-width: 380px;
    max-width: 400px; */

    align-self: end;
    margin-top: 0;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  /* Carousel (grid item) */
  .team-characters-carousel-container {
    /* position: relative;
    display: flex;
    z-index: 10;
    max-width: 500px; */
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    /* justify-self: end; */
  }
  /* Choose button (grid item) */
  .team-characters-choose-btn {
    /* width: fit-content;
    background-color: #0000ff;
    font-size: 20px;
    padding: 0.9em 1.8em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px 0 var(--effect-color);
    */
    align-self: center;
    margin-bottom: 0;
  }
}

/* Below 1024px (smaller then small laptops) */
@media (max-width: 1023px) {
  .team-characters-container {
    padding: 100px 0;
  }

  .team-characters-heading {
    margin-bottom: 48px;
  }

  /* Grid container */
  .team-characters-content {
    /* grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 16px; */
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    align-items: center;
  }

  /* Info (grid item) */
  .team-characters-info-wrapper {
    /* 
    min-width: 380px;
    max-width: 400px; */

    align-self: auto;
    /* 
    margin-top: 0;
    grid-column: 2 / 3;
    grid-row: 1 / 2; */

    order: 3;
  }

  /* Carousel (grid item) */
  .team-characters-carousel-container {
    /* position: relative;
    display: flex;
    z-index: 10;
    max-width: 500px; */
    /* grid-column: 1 / 2;
    grid-row: 1 / 3;
    justify-self: end; */
    order: 1;
    margin-bottom: 48px;
  }
  /* Choose button (grid item) */
  .team-characters-choose-btn {
    padding: 0.5em 1.8em;
    /* width: fit-content;
    background-color: #0000ff;
    font-size: 20px;
    padding: 0.9em 1.8em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px 0 var(--effect-color);
    */
    /* align-self: center;
    margin-bottom: 0; */
    order: 2;
  }
}

@media (max-width: 560px) {
    .team-characters-heading {
        font-size: 34px;
        margin-bottom: 24px;
    }

  .team-characters-wrapper {
    padding: 0 16px;
  }

  .team-characters-carousel-container {
    /* width: 100vw; */
    width: calc(90vw - 32px);
  }

  .team-characters-carousel-item {
    width: calc(90vw - 32px);
  }

  .team-characters-carousel-item img {
    width: 100%;
  }

  .team-characters-info-wrapper {
    width: 100%;
  }

    .team-characters-info-field {
        min-width: auto;
        width: 100%;
        padding: 8px 48px 21px;
    }

    .team-characters-info-field:first-child {
        padding: 10px 44px;
    }

    .team-characters-info-field:last-child {
        margin-bottom: 0;
    }

    .team-characters-container p {
        margin-bottom: 0;
    }

  .team-characters-choose-btn {
    /* width: fit-content;
    background-color: #0000ff;
    font-size: 20px;
    padding: 0.9em 1.8em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px 0 var(--effect-color);
    */
    /* align-self: center;
    margin-bottom: 0; */
    /* order: 3; */
    width: 100%;
  }
}
