

.list {
  font-size: 1.25rem;
  list-style-type: none;
  margin: 1rem;
}

.no-items {
  margin: 1em;
  font-size: 1.15rem;
}

.list-item {
  margin-bottom: 1em;
  position: relative;
  @media screen and (max-width: 640px) {
    margin: 0.5rem;
  }
  a {
    color: #222;
    text-decoration: none;
    &:hover {
      color: #2C7EFF;
    }
  }
  &:hover {
    .project-overlay .tags .tag {
      border: 1px solid transparent;
      color: #111;
    }
    @for $i from 1 through 10 {
      .tags .tag:nth-child($i) {
        transition-delay: $i * 20ms;
        background-color: hsl($i * 36, 70%, 70%);
      }
    }
    .tags:hover {
      .tag {
        background: #eee;
      }
      @for $i from 1 through 10 {
        .tag:nth-child($i):hover {
          color: #555;
          background-color: hsl($i * 36, 70%, 70%);
        }
      }
    }
  }
}

.item-description, 
.item-date {
  color: #666;
  font-size: 0.95rem;
}

.item-emoji {
  display: inline-block;
  margin-left: -2.5rem;
  text-align: right;
  width: 2.25rem;
}

.item-date {


  font-family: monospace;
}

.dark .list-item a {
  color: #fff;
  &:hover {
    color: #7d95c6;
  }
}

.item-wip-badge {
  background: #eeeeee;
  color: #333;
  font-size: 0.9rem;
}

.dark .item-wip-badge {
  background: rgba(0, 0, 0, 0.3);
  color: #eee;
}

.item-last-updated {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  .item-emoji, .item-description, .item-link {
    background: #222;
  }
  .list-item {
    background: #fafafa;
    background-size: cover;
    border: 1px solid #eee;
    border-radius: 0.25rem;
    flex-wrap: wrap;
    height: 12rem;
    @media screen and (max-width: 640px) {
      height: 15rem;
    }
    margin: 0.25rem;
    overflow: hidden;
    transition: 350ms all;
    width: 36rem;
    &:hover {
      border: 1px solid #ddd;
      box-shadow: 0 0 3px #eee;
      transition: 350ms all;
    }
  }
  .item-emoji {
    all: initial;
    align-content: center;
    border-radius: 50%;
    display: flex;
    font-size: 1.25rem;
    justify-content: center;
    padding: 0.25rem;
    text-align: center;
  }
}

.projects .project-overlay {
  align-items: center;
  background: rgba(black, 0.75);
  color: #fff  !important;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  padding: 3rem;
  height: 100%;
  width: 100%;
  @media screen and (max-width: 640px) {
    font-size: 80% !important;
    padding: 1rem;
  }
  h4 {
    align-items: center;
    display: flex;
  }
  p {
    margin: 0;
  }
  .tags .tag {
    background: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 1rem;
    margin-right: 0.25rem;
    padding: 0.25rem 1rem;
    transition: 300ms 350ms all;
  }
  .item-wip-badge {
    background: white;
    border-radius: 1rem;
    display: block;
    margin-left: 0.5rem;
    padding: 0.25rem 1rem;
  }
  &:hover {
    color: #fff  !important;
  }
}
