body {
  position: relative;
}
.mainbody {
  background-color: white;
}
/*below is used for the cards and interactions*/
table {
  width: 100%;
  margin: auto;
  table-layout: fixed;
}
.maintable {
  margin-top: 50px;
  width: 70%;
}
.card {
  width: 95%; 
  margin: auto;
  float: none;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
}
.flip-card-inner {
  width: 95%;
  transition: transform 0.4s;
  transform-style: preserve-3d;
  background-color: transparent;
}
.flip-front, .flip-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  background-color: white;
}
.flip-back {
  transform: rotateY(180deg);
  position: absolute;
  text-align: center;
}
.h2 {
  font-size: x-large;
  font-weight: bold;
  text-decoration: underline; 
}
h1 {
 text-decoration: underline; 
}
/*the text at the bottom of main page*/
#credit {
  bottom: 0px;
  text-align: center;
  width: 100%;
  margin: auto;
}

/*the rest is for the timeline css*/
h4 {
  margin: auto; 
  text-align: center;
}
main {
  width: 50%;
  margin-top: 30px;
  margin: auto;
}
.p {
  border-top: 3px solid;
  border-image: linear-gradient(to right, #743ad5 0%, #d53a9d 100%);
  border-image-slice: 1;
  border-width: 3px;
  margin: 0;
  padding: 40px;
}
.p:nth-child(odd) {
  border-right: 3px solid;
  padding-left: 0;
}
.p:nth-child(even) {
  border-left: 3px solid;
  padding-right: 0;
}
.p:first-child {
  border-top: 0;
  border-top-right-radius:0;
  border-top-left-radius:0;
}
.p:last-child {
  border-bottom-right-radius:0;
  border-bottom-left-radius:0;
}
