.emoji {
  display: flex;
  box-sizing: border-box;
}

.card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 grey;
  flex: 1;
  /* margin: 1em 0; */
  transition: all 0.25s ease-out;
  text-align: center;
  overflow: hidden;
  width: 15rem;
  height: 15rem;
}

.cardList {
  display: flex;
  flex-wrap: wrap;
}
.cardList > *  {
  margin: 0 2em 2em 0em;
}

.cardList .gitmoji {
  font-size: 1.5em;
}

.cardList .cardHeader {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.cardList .gitmojiInfo {
  text-align: left;
  padding: 1rem;
}

.cardList .gitmojiInfo p {
  padding: 0;
  margin: 0;
  padding-top: 0.5rem;
  word-wrap: normal;
}

.card:hover {
  box-shadow: 0 10px 20px 0 grey;
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .card:hover {
    box-shadow: none;
    background-color: #3b3b3b;
  }
}

.cardHeader {
  background-color: blanchedalmond;
  align-self: flex-start;
  padding-top: 2em;
  padding-bottom: 0.85em;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;

  width: 15rem;
}

.gitmoji,
.gitmojiCode {
  background-color: transparent;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
}

.gitmoji {
  border-radius: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1.5em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji',
    'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
}

.gitmoji:hover,
.gitmoji:focus {
  animation-name: bounce;
  animation-duration: 0.5s;
}

.gitmojiCode {
  display: flex;
  position: relative;
  border-radius: 4px;
  transition-duration: 0.3s;
  cursor: pointer;
  justify-content: space-between;
  width: 100%;
  padding: 0.75em 0;
}
.gitmojiCode code {
  flex: 0 1 auto;
}
.gitmojiCode::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0.2em;
  border-radius: 4px;
  transition: width 0.15s;
  background-color: aqua;
}

.gitmojiCode:hover::after {
  width: 100%;
}

.gitmojiInfo {
  padding: 1.5em;
  word-break: break-all;
  color: black;
}

.gitmojiInfo p {
  color: black;
  word-break: normal;
}

/*
  This code has been obtained from:
  https://github.com/daneden/animate.css/blob/master/source/attention_seekers/bounce.css
*/
@keyframes bounce {
  from,
  20%,
  53%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -9px, 0);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -5px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}
