.attribute-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  .single-attribute {
    position: relative;
    overflow: hidden;

    .attribute-img {
      position: absolute; 
    }
  }

  .attribute-title {
    margin-left: 5px;
  }
}
.attri-count {
  display: flex;
  flex-direction: column;

  .count {
    display: flex;
    flex-direction: row;
    gap: 4px;
  }
}
.attribute-editor {
  .ant-select-selection-item {
    height: -webkit-fit-content;
    height: fit-content;
  }
}
.adapt-cell-select {
  width: 100%;
  padding: 0;

  .ant-select-selector {
    padding: 0 !important;
  }

  .ant-select-item-option {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.skill-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

  .logo {
    width: 680px;
    height: 500px;
    position: relative;

    .name {
      position: absolute;
    }

    .knife {
      position: absolute;
      top: 35%;
      left: 48%;
    }
  }
  .label {
    display: flex;
    max-height: 36px;
    
    .knife {
      margin-top: 5px;
      margin-right: 5px;
    }
  }
.apocalypse {
  display: flex;

  .apocalypse-select {
    width: 50%;
  }
}

.multi-apocalypse {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  .apocalypse-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;

    .apocalypse {
      flex: 1 1;
    }
  }
}

.game-version-select {
  flex: 1 1;
  overflow-x: auto;
  overflow-y: hidden;

  .ant-tabs-nav {
    margin: 0;

    .ant-tabs-tab-active {
      background-color: var(--ant-color-primary);

      .ant-tabs-tab-btn {
        color: var(--ant-color-text-light-solid);
      }
    }
  }
}
.checkable-div {
  cursor: pointer;

  &.disabled {
    cursor: default;
  }

  &.strikeOut {
    text-decoration: line-through;
  }

  &.hover {
    background-color: #5ac5fb6d;
    border-radius: 5px;
  }
}
.wonder-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  --animate-loading-rotate: rotate-twice 1.5s ease-in-out infinite;
  --animate-loading-rotate-delay: rotate-twice 1.5s ease-in-out 0.1s infinite;

  .wonder {
    animation: var(--animate-loading-rotate);
  }

  .text {
    animation: var(--animate-loading-rotate-delay);
  }
}

@keyframes rotate-twice {
  0% {
    transform: rotateY(0deg);
  }
  75.0% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.markdown-editor {
  display: flex;
  justify-content: center;

  .cm-focused {
    outline: none;
  }

  .markdown-editor-preview {
    width: 50%;
    height: 100%;
    border-left: 1px solid var(--ant-color-border);

    .title {
      height: 29px;
      display: flex;
      padding: 4px 5px;
      background-color: rgb(245, 245, 245);
      border-bottom: 1px solid rgb(221, 221, 221);
    }

    .markdown {
      *:first-child {
        margin-block: 0;
      }
    }
  }
}

.level-editor-dropdown {
  .ant-dropdown-menu {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: -webkit-fit-content;
    width: fit-content;
  }

  .ant-dropdown-menu-item:hover {
    background-color: #f79595 !important;
  }
}
.game-version-detail {
  background-color: var(--ant-color-bg-base);
  padding-left: 16px;
  padding-right: 16px;
  min-width: var(--battle-min-width);
  width: 100%;
  height: 100%;

  .game-version-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--ant-color-bg-base);

    .game-version-title {
      display: flex;
      gap: 10px;
      align-items: center;
      font-size: 25px;
      font-weight: 500;
    }
  }

  .game-version-body {
    display: flex;
    height: calc(100% - 50px);

    .game-version-menu {
      height: 100%;
      overflow: auto;

      .game-version-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 120px;
        margin: 0;
        border-bottom: 1px solid var(--ant-color-border);

        .game-version-item-content {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;

          .game-version-item-name {
            line-height: 20px;
          }
        }
      }
    }

    .game-version-content {
      flex: 1 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow: auto;

      .game-version-descs {
        margin-left: 16px;
        margin-top: 20px;
        width: calc(100% - 16px);
        height: 100%;

        .ant-descriptions-item-label {
          max-width: 80px !important;
          min-width: 80px !important;
          width: 80px !important;

          &.align-top {
            position: relative;

            >span {
              position: absolute;
              top: 30px;
              display: block;
              width: calc(100% - 48px);
              /* background-color: red; */
            }
          }

        }

        .ant-descriptions-item-content {
          >span {
            width: 100%;
            height: 100%;
            display: flex;
            align-self: center;
            justify-content: center;
          }

          &.align-left {
            >span {
              align-self: center;
              justify-content: flex-start;
            }
          }
        }

        .game-version-markdown {
          width: 100%;
        }
      }
    }
  }
}

.enemy-popover {
  .env-display {
    height: 170px !important;

    .env-buff {
      height: calc(100% - 20px) !important;
    }
  }
}
.env-root {
  display: flex;
  flex-direction: column;
  gap: 10px;

  .env-display {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 130px;

    .env-buff {
      height: 100%;
      border-radius: 8px;
      border: 1px solid var(--ant-color-border);
      padding: 10px;

      .ant-tag {
        margin: 0;
      }
    }

    .env-enemy {
      height: 100%;
      display: flex;
      flex: 1 1;
      flex-direction: row;
      gap: 10px;
      overflow: hidden;

      .enemy {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        border: 1px solid var(--ant-color-border);
      }
    }
  }

  .env-adapt {
    display: flex;
    flex-direction: column;
    height: 110px;
    align-items: center;
    justify-content: center;

    .env-adapt-title {
      font-size: 18px;
    }

    .adapt-editor {
      width: 100%;
    }
  }
}

html {
  height: 100%;
}
#root {
  height: 100%;

  .app-root {
    height: 100%;
  }
}
body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  min-width: 1320px;

  .ant-select {
    .ant-select-selector {
      border-left: none !important;
      border-right: none !important;
      border-top: none !important;
      border-bottom: 1px solid var(--ant-color-border) !important;
      background-color: transparent !important;
      box-shadow: none !important;
    }
  }

  .ant-table-body {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  .ant-table-body::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
    border-radius: 2px;
  }

  .ant-table-body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #00000030;
  }

  .ant-table-body::-webkit-scrollbar-track {
    background-color: #f9f9f9;
  }

  .ant-table-body::-webkit-scrollbar-corner {
    background-color: transparent;
  }

  .ant-table-body::-webkit-scrollbar-track-piece {
    background-color: transparent;
  }

  .ant-table-content {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  .ant-table-content::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
    border-radius: 2px;
  }

  .ant-table-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #00000030;
  }

  .ant-table-content::-webkit-scrollbar-track {
    background-color: #f9f9f9;
  }

  .ant-table-content::-webkit-scrollbar-corner {
    background-color: transparent;
  }

  .ant-table-content::-webkit-scrollbar-track-piece {
    background-color: transparent;
  }

  *::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
    border-radius: 2px;
  }

  *::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #00000030;
  }

  *::-webkit-scrollbar-track {
    background-color: transparent;
  }

  *::-webkit-scrollbar-corner {
    background-color: #f9f9f9;
  }

  *::-webkit-scrollbar-track-piece {
    background-color: transparent;
  }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

