@import 'consts';

div.dashboard {
  .peline {
    height: 56px;
    display: flex;
    margin: 0 24px 0 24px;
    > div:first-child {
      width: 0;
      transition: 1000ms;
      background: linear-gradient(90deg, $power, darken($power, 10%));
      border-radius: 0 0 0 4px;
    }
    > div:nth-child(2) {
      width: 100%;
      transition: 1000ms;
      animation: bounce 1200ms ease-in;
      background: linear-gradient(90deg, $endurance, darken($endurance, 10%));
      border-radius: 0 0 4px 0;
    }
  }
  .allrounder {
    position: absolute;
    width: calc(100% - 48px);
    width: -webkit-calc(100% - 48px);
    margin: 0 24px;
    z-index: 1;
    > div {
      border-right: 2px dotted white;
      width: 1px;
      position: absolute;
      height: 56px;
      &:first-child {
        left: 40%;
      }
      &:last-child {
        left: 60%;
      }
    }
    opacity: 0;
    transition: 1s;
    &.enabled {
      opacity: 1;
    }
  }
  .you {
    z-index: 2;
    margin: 56px 24px 0 24px;
    height: 20px;
    position: relative;
    opacity: 0;
    transition: 1000ms;
    user-select: none;
    > div:first-child {
      display: block;
      position: absolute;
      text-transform: uppercase;
      border-radius: 4px;
      width: 150px;
      text-align: center;
      color: white;
      font-weight: bold;

      margin-top: -50px;
      transition: 1000ms;
      > *:first-child {
        display: inline-block;
        background: #00b6ff;
        font-size: 24px;
        padding: 8px 0;
        width: 75px;
      }
      > *:nth-child(2) {
        display: inline-block;
        background: #ff008e;
        font-size: 24px;
        padding: 8px 0;
        width: 75px;
      }
      > *:last-child {
        background: black;
        border-radius: 0 0 4px 4px;
      }



    }
    > div:last-child {
      height: 4px;
      background: black;
      position: absolute;
      bottom: 0;
      transition: 1000ms;
      &:after {
        top: 100%;
        left: 44%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-color: rgba(136, 183, 213, 0);
        border-top-color: black;
        border-width: 16px;
        margin-left: -16px;
      }
    }
  }
}