:root {
  --background: #a3d4e4;
  --darkBlue: #013d4a;
  --darkGrey: #3b3b3b;

  --brightRed:  #cd4471;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  /* overflow: hidden; */
  background-color: var(--darkGrey);
}
img {
  height: 120px
}
.imgBox {
  opacity: .2;
  transition: all .5s;
}
h3 {
  margin: 10px 0 0;
  padding: 0;
  color: white;
  text-align: center;
  font-size: 25px;
}
p {
  margin: 0;
  padding: 0;
  font-size: .9em;

}
a {
  margin: 15px 0 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  color: #777;
  padding: 5px 8px;
  border: 1px solid #777;
  border-radius: 8px;
  font-size: .9em;

}
a:hover {
  background-color: #777;
  color: white;
}
.card:hover .imgBox {
  opacity: 1;
}
.card {
  position: relative;
  cursor: pointer;
  width: 300px;
}
.face1 {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: rgb(77, 72, 72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all .5s;
  transform: translateY(100px);
  z-index: 1;
}
.card:hover .face1 {
  background-color: var(--brightRed);
  transform: translateY(0);
}
.face2 {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  transition: all .5s;
  transform: translateY(-100px);
}
.card:hover .face2 {
  transform: translateY(0);
}