@use "/src/styles/utils.scss";

.layout {
  position: fixed;
  left: 0;
  top: var(--nav-height);
  height: calc(100% - var(--nav-height));
}

.sider {
  max-height: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: overlay;
  background: transparent !important;
  @include utils.scrollbar;
  .menu {
    min-height: 100%;
  }
  .btn-add {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%);
    background-color: rgb(59, 0, 169);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    &:hover {
      background-color: rgb(78, 0, 223);
      transform: translate(-50%) scale(1.3);
    }
  }
}

.content {
  display: flex;
  padding-bottom: 0;
  padding-right: 1rem;
  .deck {
    width: 620px;
  }
  .select {
    flex: 1;
    .select-btns {
      padding: 5px;
      display: flex;
    }
  }
}

.container {
  height: calc(100% - 20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  & > *:not(:last-of-type) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .title {
    height: 44px;
    flex: 0 0 44px;
  }
  .deck-zone {
    @include utils.scrollbar;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .main,
  .extra,
  .side {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
  }
  .main {
    flex: 3;
  }
  .extra {
    flex: 1;
  }
  .side {
    flex: 1;
  }
  .card-continer {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
  }
}

.select .container {
  border-left: none;
}

.card {
  width: 100%;
  background-color: rgb(32, 36, 71);
  aspect-ratio: var(--card-ratio);
}

.search-cards-container {
  overflow-y: scroll;
  @include utils.scrollbar;
  .search-cards {
    --card-width: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
    padding: 0.75rem;
    gap: 10px;
  }
}
