.list_items {
  font-family: 'Acme';

  .list_item_wrap {
    position: relative;
    outline: 0;
  }

  .buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    overflow: hidden;

    &.nudge {
      bottom: 6px;
    }

    .building {
      padding: 5px 12px;
      border: 1px solid #000;
      background-color: dodgerblue ;
      border-radius: 3px;
      color: #fff;
    }

    .action_btn {
      display: inline-block;
      color: black;
      padding: 7px 12px;
      margin-left: 5px;
      border: 1px solid black;
      border-radius: 3px;
      background: url("/assets/bar-c5b99f4b.png") center repeat-x;

      &:hover {
        box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
      }

      &:active {
        box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
      }
    }

    .accept {
      background-color: yellowgreen;
    }

    .reject {
      background-color: crimson;
    }
  }
}

.line_item {
  color: #333;
  position: relative;
  overflow: hidden;
  height: 70px;
  border-bottom: 1px solid silver;

  &:hover {
    background: whitesmoke;
  }

  &:active {
    background: white;
  }

  .title_text {
    display: block;
  }

  &.hilight {
    background: aliceblue;

    &:active {
      background: white;
    }
  }

  .avatar {
    float: left;
    margin-right: 10px;
  }

  .message_waiting {
    position: absolute;
    left: 60px;
    top: 10px;
    font-size: 2em;
    z-index: 1;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

  .score {
    margin-top: 1px;

    .username {
      position: relative;
      color: #333;
      padding: 3px 5px 2px 5px;
      display: inline-block;
      font-size: 18px;
      box-shadow: 0 0 1px rgba(0,0,0,0.2);

      .points {
        font-weight: bold;
      }
    }
  }

  .game_icons {
    display: inline-block;
    vertical-align: text-top;

    .icon {
      margin-right: -20px;
    }
  }

  .title {
    font-size: 18px;
    display: inline-block;
    margin-top: 12px;
  }

  .created_at {
    color: #888;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .last_move {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 400px;
    line-height: 20px;
    display: inline-block;
    margin-top: 2px;

    .total_points {
      font-size: 18px;
      font-weight: 700;
    }

    .words_made {
      font-weight: 700;
    }

    .point_gain {
      color: #888;
    }
  }
}

.active_game {
  .title {
    margin-top: 5px;
  }
}

.pending_game {
  .title {
    margin-top: 4px;
  }

  .pending_username {
    display: block;
    font-family: 'Acme';
    font-size: 18px;
    margin-top: 5px;
  }
}

.finished_game {
  background-color: whitesmoke;

  .result {
    font-size: 18px;
    position: absolute;
    right: 10px;
    bottom: 10px;

    .value {
      .won {
        color: limegreen;
      }

      .lost {
        color: crimson;
      }

      .draw {
        color: dodgerblue;
      }
    }
  }
}

.friend_item {
  .new_message {
    margin-top: 5px;
    color: dodgerblue;
  }

  .username {
    margin-top: 4px;
  }

  .content {
    margin-top: 5px;
    font-style: italic;
    font-size: 12px;
    color: grey;
  }
}
