@import './../../design/styles/common/global.styl'

:root {
  --series-count-background-color: #678696;
}

.ThumbnailEntry
  cursor: pointer
  display: table

  .p-x-1
    padding: 0 1rem

  .alt-image-text
    align-items: center;
    justify-content: center;
    background-color: var(--primary-background-color);
    box-shadow: inset 0 0 0 1px var(--ui-border-color-dark);
    border: 5px solid transparent;
    border-radius: 12px;
    height: 135px;
    margin: 0 auto;
    padding: 5px;
    position: relative;
    transition: var(--sidebar-transition);
    width: 217px;
    display: flex;

    h1
      text-align: center
      color: var(--text-primary-color);

  .series-details
    color: var(--text-primary-color);
    font-size: 14px
    line-height: 1.3em
    margin-top: 5px
    margin-left: 1rem
    margin-right: 0.5rem
    max-width: 217px
    min-height: 36px
    position: relative
    word-wrap: break-word

    &.info-only
      .series-description
        display: none

      .series-information
        display: flex
        flex-grow: 1
        float: none
        max-width: none
        padding-right: 0

        .item
          flex: 1
          text-align: center

          .icon, .value
            display: inline
            float: none
            line-height: 25px


  .series-information
    display: flex
    flex-direction: row
    align-items: center

    .item
      flex: 1
      text-align: center

    .item-frames .icon
      height: 18px

    .value
      color: var(--text-secondary-color);
      display: inline
      font-size: 12px
      margin-left: 4px
      text-overflow: ellipsis
      white-space: nowrap

    .icon
      color: var(--active-color);
      display: inline
      font-size: 10px
      font-weight: 900
      text-align: right

      div
        background-color: var(--series-count-background-color);
        margin-top: 6px
        position: relative

        &:after
          background-color: var(--active-color);
          box-shadow: 1px 1px rgba(0, 0, 0, .115)
          left: -4px
          position: absolute
          top: -4px

        &
        &:after
          border: 0px solid var(--series-count-background-color)
          content: ''
          display: inline-block
          height: 11px
          width: 11px

.image-thumbnail-clone
  z-index: 100000
  pointer-events: none

  &:hover
    border-color: var(--hover-color);
    box-shadow: none
