.spellcards-container {
  width: 100%;
  height: 100%;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background-image: url("/assets/images/bg.jpg");
}

.content {
  width: 1300px;
  margin: 0 auto;
}

.header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

h1 {
  // color: #58180d;
  // font-family: "Bookinsanity", serif;
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 0;
}

.button-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.top-button {
  font-size: 1.25rem;
  font-weight: 600;
  width: 16rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  background-image: url("/assets/images/texture.png");
  border: none;
  box-shadow: var(--shadow);
}

.example-container {
  margin-bottom: 1rem;
}

.level-row {
  width: 16rem;
  gap: 1rem;
  padding: 0.25rem 1rem;
  background-image: url("/assets/images/texture.png");
  border: solid 1px var(--border-color);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  box-shadow: var(--shadow);

  &.collapsed {
    animation: borders 0.4s forwards;
  }
}

@keyframes borders {
  0% {
    border: solid 1px var(--border-color);
    border-radius: 10px 10px 0 0;
  }
  50% {
    border: solid 1px var(--border-color);
    border-radius: 10px 10px 0 0;
  }
  100% {
    border: 1px solid var(--border-color);
    border-radius: 10px;
  }
}

.level-flex {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.heading-2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 2rem;
}

.spell-list {
  border: solid 1px var(--border-color);
  height: 22rem;
  background-image: url("/assets/images/texture.png");
  border-radius: 0 10px 10px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.125rem;
  padding: 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  transition: height 0.3s ease-in-out;
  box-shadow: var(--shadow);

  &.hidden {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    border: none;
  }
}

.animate-visibility {
  animation: icon-switch 0.5s ease-in-out;
}

@keyframes icon-switch {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.removal-card {
  height: 20rem;
  width: 15rem;
  font-size: 1.25rem;
  font-weight: 600;
  border: solid 1px var(--border-color);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--delete);
  transition: scale 0.2s ease-in-out;
  box-shadow: var(--shadow);

  &:hover {
    scale: 1.05;
  }
}

//  CDK DRAG

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
  background: #e0e0e0;
  border: dotted 3px #999;
  border-radius: 100px;
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  color: transparent !important;

  .name {
    display: none;
  }
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.spell-list.cdk-drop-list-dragging .spellcard:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
