*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  background-color: var(--lighttext);
}

.card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 5000px;
}

.card__inner {
  width: 270px;
  height: 270px;
  margin: 20px;
  transition: transform 1s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}

.card__inner.is-flipped {
  transform: rotateY(-180deg);
}

.card_title {
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--navy);
}  

.card_front,
.card_back {
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.2);
}

.card_front {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--radial);
}

.card_front img {
  width: 50px;
  margin-bottom: 20px;
}

.card_back {
  transform: rotateY(180deg);
  background: var(--navy);
}

.card__content {
  width: 100%;
  height: 100%;
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 10px;
  color: var(--lighttext);
}

.card__body h4 {
  width: 100%;
  font-size: 1.2rem;
  color: var(--lighttext);
  font-weight: 600;
}

.card__body p {
  text-align: left;
  height: 100%;
  padding-top: 20px;
  color: var(--lighttext);
  font-size: 16px;
  line-height: 1.4;
}

.card__body a {
  width: 100%;
  height: 35px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--accentlight);
  color: var(--navy);
  text-decoration: none;
  padding: 3px;
  border-radius: 5px;
}

.card__body a h4 {
  color: var(--navy);
}

.card__body ul {
  font-size: 1rem;
  height: 100%;
  padding-top: 10px;
}

.card__body ul li {
  margin-left: -35px;
}

@media only screen and (max-width: 580px) {

  .card__inner {
    width: 220px;
    height: 220px;
  }

  .card_title {
    font-size: 1.5rem;
  }  
  
  .card__body h4 {
    font-size: 1rem;
  }

  .card__body p {
    font-size: .80rem;
  }

  .card__body ul {
    font-size: .75rem;

  }

}



