.project {
  .pair {
    display: flex;
    align-items: flex-start;

    .key {
      font-weight: bold;
      flex-shrink: 0;
    }

    .value {
      text-align: right;
      flex-grow: 1;
    }
  }

  .settings-icon {
    z-index: 10;
    position: absolute;
    width: 25px;
    height: 25px;
    right: 5px;
    top: 5px;
    margin: 0px;
    text-align: center;
    padding: 3px;
    border-radius: 5px;
    line-height: 100%;
    box-sizing: border-box;
  }

  .screenshots .slideshow {
    background-color:black;
  }

  .tags {
    text-align:center;

    h2 {
      margin-bottom:5px;
    }

    li {
      display:inline-block;
    }
  }

  .button-bar {
    border: none;
  }

  .forum {
    h3 {
      margin: 0;
    }

    .thread-entry-right {
      display: none;
    }
  }
}

.project-card {
  @include usevar(color, 'fg-font-color');
  @include usevar(background-color, 'card-background');
  @include usevar(border-color, 'project-card-border-color');

  transition: box-shadow 0.2s, background-color 0.2s;

  .slideshow & {
    margin-top:8px;
  }

  &:hover {
    @include usevar(background-color, 'card-background-hover');

    & > .title {
      text-decoration:underline;
    }
  }

  .image-container {
    $image-size: 8rem;

    width: $image-size;
    min-height: $image-size;

    .image {
      position: absolute;
      width: $image-size;
      top: 0;
      bottom: 0;
    }
  }

  .details {
    /* Background color given by theme */
    transition: background-color 0.2s;
  }

  .badges:empty {
    display: none;
  }

  .badge {
    color: white;
    border-radius: 5px;
  }
}

.projectlist {
  .sidebar & {
    padding:0px;
    width:340px;

    // background-image:none;
    // background-color:transparent;
    // box-shadow:none;

    .project-card.more {
      height:40px;
      width:326px;
      padding-top:5px;
    }
  }
}

.screenshots .slide {
  max-width:100%;
}

.slideshow {
  /* Background color and color given by theme */
  position:relative;
  background-image:none;
  overflow:hidden;

  .optionbar {
    height:30px;
    text-align:center;
  }

  .buttons {
    display:inline-block;
    height:100%;
  }

  .button {
    line-height:100%;
    padding:5px 8px;
    font-weight:400;

    &.current {
      font-weight:600;
    }
  }

  #slide-deck {
    width:100%;
    position:relative;
    transition:left 0.3s;
    left:0px;
    text-align:center;
    display:flex;
    flex-direction:horizontal;
    justify-content: space-around;
    align-items: center;
  }

  .slide {
    flex: 1 1 100%;
    position:relative;

    img {
      margin:auto;
      max-height:60vh;
      max-width:100%;
    }
  }

  &.cards {
    #slide-deck {
      justify-content: flex-start;
    }

    .slide {
      flex: 0 1 auto;
    }
  }
}

#project_owner_suggestions {
  max-height:300px;
  overflow:auto;
  position:absolute;
  border:1px solid transparent;

  #user_template {
    display:none;
  }
}

.user_suggestions {
  @include usevar(background-color, 'project-user-suggestions-background');

  padding-top: 5px;
  padding-bottom: 5px;

  &#project_owner_suggestions .user {
    @include usevar(border-color, 'project-user-suggestions-border-color');

    border-bottom-width: 1px;
    width: 200px;
    box-sizing:border-box;
    cursor:pointer;
  }

  .user {
    position:relative;
    margin-left:50px;
    display: inline-block;
    margin-right:10px;

    .avatar-icon {
      left:-50px;
      bottom:0px;
      border-radius:50%;
      border:2px solid transparent;
    }
  }
}

#project_owners {
  min-width:50%;
}
