@mixin border {
  border-bottom: 4px solid #a9a9a9;
  border-left: 2px solid #a9a9a9;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  background: linear-gradient(
      0deg,
      rgba(201, 216, 201, 0.3),
      rgba(201, 216, 209, 0.3)
    ),
    url(https://image.ibb.co/jKByZn/tile_bg_1.jpg);
  z-index: 1;
}

.card-container {
  width: 38rem;
  height: 50rem;
  border-radius: 10px;
  border: 1px solid black;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  background: #171314;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-background {
  height: calc(100% - 26px);
  width: calc(100% - 26px);
  margin: 13px;
  border-radius: 6px;
  background-color: #863f57;
  background-image: repeating-linear-gradient(
      140deg,
      transparent,
      rgba(255, 255, 255, 0.25) 1%,
      transparent 20%
    ),
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 8%,
      rgba(255, 255, 255, 0.4),
      transparent 9%
    ),
    repeating-linear-gradient(
      -10deg,
      transparent,
      transparent 13%,
      rgba(0, 0, 0, 0.4),
      transparent 15%
    ),
    repeating-linear-gradient(
      80deg,
      transparent,
      transparent 7.5%,
      rgba(0, 0, 0, 0.25),
      transparent 8%
    ),
    repeating-linear-gradient(
      5deg,
      transparent,
      transparent 10.5%,
      rgba(255, 255, 255, 0.5),
      transparent 11%
    ),
    repeating-linear-gradient(
      75deg,
      transparent,
      transparent 11.5%,
      rgba(255, 255, 255, 0.5),
      transparent 12%
    ),
    repeating-radial-gradient(
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.2) 1%,
      transparent 1%,
      transparent 5%
    );
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  position: absolute;
}

.title {
  @include border;
  margin: 25px auto 0 auto;
  height: 3.5rem;
  width: 35rem;
  text-align: center;
  border-radius: 18px/40px;
  overflow: hidden;
  font-size: 2em;
  font-weight: 700;
  z-index: 1;
}

.data {
  @include border;
  margin: 0 auto;
  height: 18rem;
  width: 34rem;
  border-radius: 10px;
  z-index: 0;
  display: flex;

  .spell-image {
    width: 18rem;
    height: 18rem;
  }

  .stats {
    margin-left: 0.5rem;
    height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    .stats-row {
      display: flex;
      align-items: center;
      width: 14.5rem;
      height: 2.5rem;
      border-radius: 0px 18px 18px 0px / 0px 40px 40px 0px;

      .stat {
        padding-left: 0.5rem;
        font-weight: 500;
        width: 8rem;
      }

      .value {
        width: 7rem;
        padding-right: 0.75rem;
        text-align: right;
      }
    }
  }
}

.info {
  @include border;
  margin: 0 auto 0 auto;
  height: 3.5rem;
  width: 35rem;
  text-align: center;
  border-radius: 18px/40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0.5rem;
  z-index: 2;
}

.value {
  font-weight: 500;
}

.effect {
  width: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.range {
  width: 10rem;
}

.level {
  @include border;
  border-radius: 100%;
  margin-top: 0.125rem;
  height: 4rem;
  width: 4rem;
  font-size: 1.5rem;
  font-weight: 600;
  transform: translateX(0.25rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.description {
  @include border;
  width: 34rem;
  height: 21.5rem;
  overflow: auto;
  border-radius: 10px;
  margin: 0 auto;
  padding: 1rem;
}

.button-container {
  position: absolute;
  left: 38rem;
  top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  margin-left: 1.5rem;

  button {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    height: 4.25rem;
    width: 13rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.25s ease-in-out;
  }

  .disabled {
    cursor: not-allowed;
    filter: grayscale(50%);
  }

  .green {
    background-color: var(--accept);
    &:hover {
      background-color: var(--accept-hover);
    }
  }

  .red {
    background-color: var(--delete);
    &:hover {
      background-color: var(--delete-hover);
    }
  }

  .blue {
    background-color: var(--edit);
    &:hover {
      background-color: var(--edit-hover);
    }
  }

  .neutral {
    background-color: var(--neutral);
    &:hover {
      background-color: var(--neutral-hover);
    }
  }
}
