:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: "Rubik", sans-serif;
  --font-serif: "Montserrat", sans-serif;
}

.cardmicro {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  background-color: #833C83;
  box-shadow: 0px 0px 40px cyan;
}
@media (min-width: 600px) {
  .cardmicro {
    height: 350px;
  }
}
.cardmicro:before {
  content: "";
  position: absolute;
  top: 0;
  opacity: 0.7;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}
.cardmicro:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}
.cardmicro:nth-child(1):before {
  background-image: url(/images/arduino.jpg);
}
.cardmicro:nth-child(2):before {
  background-image: url(/images/spartan.jpg);
}
.cardmicro:nth-child(3):before {
  background-image: url(/images/ARM.jpg);
}
.cardmicro:nth-child(4):before {
  background-image: url(/images/database.jpg);
}
.cardmicro:nth-child(5):before {
  background-image: url(/images/designpage.png);
}
.cardmicro:nth-child(6):before {
  background-image: url(/images/ARM.jpg);
}

@media (hover: hover) and (min-width: 600px) {
  .cardmicro:after {
    transform: translateY(0);
  }
}
.cardmicro:hover,
.cardmicro:focus-within {
  align-items: center;
}
.cardmicro:hover:before,
.cardmicro:focus-within:before {
  transform: translateY(-4%);
}
.cardmicro:hover:after,
.cardmicro:focus-within:after {
  transform: translateY(-50%);
}
.cardmicro:hover .content,
.cardmicro:focus-within .content {
  transform: translateY(0);
}
.cardmicro:hover .content > *:not(.title),
.cardmicro:focus-within .content > *:not(.title) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--d) / 8);
}

.cardmicro:focus-within:before, .cardmicro:focus-within:after,
.cardmicro:focus-within .content,
.cardmicro:focus-within .content > *:not(.title) {
  transition-duration: 0s;
}