.baseball {
  width: 100%;
  height: 450px;
  margin: 0;

}

#the-two-sides-of-reality {
  width: 100%;
  height: 100%;
  transition: 0.5s cubic-bezier(0.27, 0.13, 0.46, -0.46);
  transform-style: preserve-3d;
  position: relative;
  font-family: 'pine-medium', sans-serif;
}
#the-two-sides-of-reality.flipped {
  transform: rotateY(180deg);
}

.front,
.back {
  width: 100%; 
  height: 100%;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.front {
  background-color: #fff;
  z-index: 2;
}

.back {
  box-sizing: border-box;
  background-color: #cad0aa;
  transform: rotateY(-180deg);
  padding: 0px;
}

.topps-logo {
  z-index: 1;
  position: absolute;
  right: 22px;
  top: 9px;
  width: 88px;
  height: 45px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("https://webdev4.med.upenn.edu/matlaw/cerberus/Topps_Logo.svg");
}

.picture-main {
  height: 100%;border-radius: 30px 0px 0px 0px;
  background-position: center center;
  background-size: cover;
  background-image: url("https://i.imgur.com/rkWxZ0t.png");
}

.inset-container {
  bottom: 25px;
  right: 21px;
  width: 180px;
  height: 180px;
  position: absolute;
}

.bg-inset {
  width: calc(100% + 10px);
  position: absolute;
  z-index: 1;
  left: -5px;
  overflow: hidden; 
}
.bg-inset::after {
  position: absolute;
  content: "";
  width: 100%;
  border-radius: 999px;background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,87,29,1) 0%, rgba(252,166,44,1) 100%);
}
.bg-inset.red {
  height: 55%;
  top: -5px;
}
.bg-inset.red::after {
  height: 250%;
 background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,87,29,1) 0%, rgba(252,166,44,1) 100%);
  top: 0;
}
.bg-inset.blue {
  height: 43%;
  bottom: -5px;
}
.bg-inset.blue::after {
  height: 250%;

  bottom: 0;background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,87,29,1) 0%, rgba(252,166,44,1) 100%);
}

.picture-inset {
  z-index: 2;
  border: 4px solid #ffff;
  background-color: #f8f8ee;
  border-radius: 999px;
  width: 100%;
  height: 100%;
  position: absolute;
  background-position: center center;
  background-size: cover;
  background-image: url("https://i.imgur.com/tI21y49.png");
}

.text-inset {
  width: 50%;
}

.player-name {
  text-transform: uppercase;
  font-style: normal;
  color: #ff6406;

  font-size: 1rem;

  line-height: 1;
  font-family: 'pine-bold', sans-serif;
}

.player-position {
  text-transform: uppercase;
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.player-team-name {
  padding-top: 5px;

  padding-left: 0.6rem;
  text-transform: uppercase;
  color: white;
font-family: 'pine-bold', sans-serif;-webkit-font-smoothing: antialiased;


  font-size: 0.9rem;background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,87,29,1) 0%, rgba(252,166,44,1) 100%);
 
  line-height: 1;
}

.big-player-name {
  padding-top: 0.5rem;
  margin: 1rem auto;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.05em;
  word-spacing: 0.3em;
  font-size: 1.5rem;
  color: #07554d;
  font-family: "Heebo", sans-serif;
}

.back-details {
  display: inline-block;
  min-height: 2rem;
  margin: 0 1.5rem 1rem;
  padding: 1rem 0;
  background-color: #ca846f;
}
.back-details p {
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3f4b3c;
}

.border-6 {
  border-width: 6px;background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,87,29,1) 0%, rgba(252,166,44,1) 100%);
}

main {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background: #80e8ff;
}

