* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: #003;
  background: linear-gradient(45deg, #ff0099, #ff0000, #ff9900, #ffff00, #99ff00, #00ff00, #00ff99, #0099ff, #0000ff, #9900ff, #ff00ff);
}

header {
  height: 25vh;
  background-color: #cccc;
  border-bottom: solid 1px #000;
}

footer {
  height: 5vh;
  background-color: #cccc;
  border-top: solid 1px #000;
}

header,
main,
footer,
aside {
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  height: 70vh;
  flex-direction: column;
  justify-content: space-evenly;
  background-color: #ecaa;
}

section {
  width: 75vw;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 5s;
  position: relative;
}

main article p {
  margin: 25px 0;
  text-align: justify;
}

article {
  width: 75vw;
  max-width: 1200px;
}

 /* The flip card container */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 400px;
  perspective: 750px; 
}

/* This container includes the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 2.5s;
  transform-style: preserve-3d;
  box-shadow: 1rem 1rem 2rem rgba(0, 0, 0, 0.35);
  border-radius: 15px;
}

/* Do an horizontal flip when you hover the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: visible;
  border-radius: 15px;
}

.flip-card-back {
  backface-visibility: visible;
}

/* Style the front side */
.flip-card-front {
  background-color: #369;
  color: #000;
  
  display: flex;
  justify-content: center;
  align-items: center;
  transform: perspective(10000000px) translate3d(0, 0, 25px);
  
}

/* Style the back side */
.flip-card-back {
  background-color: #696;
  color: white;
  transform: rotateY(180deg);

  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.flip-card-front img {
  width: 75%;
  backface-visibility: hidden;
}