@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #ecf0f1;
  font-family: 'Roboto', sans-serif;
}

.flexContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* 3D parts */
.scene {
  width: 270px;
  height: 405px;
  perspective: 600px;
  margin: 20px;
}

.card {
  width: 100%;
  height: 100%;
  position: flex;
  transition: transform .5s;
  transform-style: preserve-3d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border-radius: 10px;
}

.card__face {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card__face img {
  max-width: 100%;
  border-radius: 10px;
}

.card__face--front {
  background: red;
  border-radius: 10px;
}

.card__face--back {
  background-color: #fff;
  transform: rotateY( 180deg );
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card.is-flipped {
  transform: rotateY( 180deg );
  border-radius: 10px;
}

.card-header {
  height: 100px;
}

.card-header img{
  height: 100px;
  background-color: #000000;
}

.card-content {
  background-color: #fff;
  padding: 20px;
}

.card-excerpt {
  color: #777;
  margin: 10px 0 20px;
  max-height: 60px;
  overflow: hidden;
}

.author {
  display: flex;
}

.profile-img {
  border-radius: 50%;
  overflow: hidden;
  height: 40px;
  width: 40px;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 10px;
  width: 100px;
}

.author-info small {
  color: #aaa;
  margin-top: 5px;
}




