* {
  box-sizing: border-box;
  transition: 0.5s ease-in-out;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

html, body {
  background-color: #1a1a18;
  height: 100%;
  overflow: hidden;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  margin: 0;
}

html h1, body h1 {
  font-size: 25px;
  font-weight: 600;
  color: #f5ecd7;
  line-height: 30px;
  margin-bottom: 10px;
}

html h2, body h2 {
  font-size: 15px;
  color: #d9a54a;
  font-weight: 400;
  margin: 0;
}

#wrapper {
  opacity: 0;
  display: table;
  height: 100%;
  width: 100%;
}

#wrapper.loaded {
  opacity: 1;
  transition: 2.5s ease-in-out;
}

#wrapper #content {
  display: table-cell;
  vertical-align: middle;
}

#card {
  height: 400px;
  width: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  perspective: 600px;
}

#card #front,
#card #back {
  border-radius: 10px;
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#card #front {
  transform: rotateY(0deg);
  overflow: hidden;
  z-index: 1;
}

#card #front #arrow {
  position: absolute;
  height: 50px;
  line-height: 50px;
  font-size: 30px;
  z-index: 10;
  bottom: 0;
  right: 50px;
  color: rgba(245, 236, 215, 0.5);
  animation: arrowWiggle 1s ease-in-out infinite;
}

#card #front #top-pic {
  height: 50%;
  width: 100%;
  background-image: url('./images/card-cover.webp');
  background-size: cover;
  background-position: center;
}

#card #front #avatar {
  width: 114px;
  height: 114px;
  top: 50%;
  left: 50%;
  margin: -77px 0 0 -57px;
  border-radius: 100%;
  box-shadow: 0 0 0 3px rgba(245, 236, 215, 0.8), 0 4px 5px rgba(26, 26, 24, 0.6), 0 0 50px 50px rgba(200, 136, 42, 0.2);
  background-image: url('../../../images/angler-fish-black-final-480.webp');
  background-size: cover;
  background-position: center;
  background-color: #faf3e8;
  position: absolute;
  z-index: 1;
}

#card #front #info-box {
  height: 50%;
  width: 100%;
  position: absolute;
  display: table;
  left: 0;
  bottom: 0;
  background: rgba(200, 136, 42, 0.88);
  padding: 50px;
}

#card #front #social-bar,
#card #back #social-bar {
  height: 50px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  line-height: 50px;
  font-size: 18px;
  text-align: center;
}

#card #front #social-bar a,
#card #front #social-bar button,
#card #back #social-bar a,
#card #back #social-bar button {
  display: inline-block;
  color: #3d2a0e;
  text-decoration: none;
  padding: 5px;
  line-height: 18px;
  border-radius: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}

#card #front #social-bar a:hover,
#card #front #social-bar button:hover {
  color: #1a1a18;
  background: rgba(245, 236, 215, 0.3);
  transition: 0.25s ease-in-out;
}

#card #back {
  transform: rotateY(180deg);
  background-color: rgba(245, 236, 215, 0.92);
  display: table;
  z-index: 2;
  font-size: 13px;
  line-height: 20px;
  padding: 50px;
  color: #1a1a18;
}

#card #back .back-info {
  text-align: justify;
  text-justify: inter-word;
}

#card #back #social-bar a:hover,
#card #back #social-bar button:hover {
  color: #1a1a18;
  background: rgba(200, 136, 42, 0.35);
  transition: 0.25s ease-in-out;
}

#card .info {
  display: table-cell;
  height: 100%;
  vertical-align: middle;
  text-align: center;
}

#card.flip #front {
  transform: rotateY(180deg);
}

#card.flip #back {
  transform: rotateY(360deg);
}

#background {
  position: fixed;
  background-color: #0e0e0c;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

#background #background-image {
  height: calc(100% + 60px);
  width: calc(100% + 60px);
  position: absolute;
  top: -30px;
  left: -30px;
  filter: blur(10px);
  background-image: url('./images/card-cover.webp');
  background-size: cover;
  background-position: center;
}

@keyframes arrowWiggle {
  0% { right: 50px; }
  50% { right: 35px; }
  100% { right: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
