:root {
  font-family: "Roboto", system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(:root) {
  display: grid;
  height: 100%;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  position: relative;
}

#root {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: 1;
}

.container {
  perspective: 120px;
  animation: bounce 1s infinite;
}

.coin__outer {
  background-color: #fbbf24;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #f59e0b;
  border-radius: 9999px;
  width: 4rem;
  height: 4rem;
  animation: spin 0.75s linear infinite;
  transform-style: preserve-3d;
}

.coin__inner {
  background-color: #f59e0b;
  border-radius: 9999px;
  box-shadow: inset 0px 1px 3px rgba(30, 30, 30, 0.1);
  display: flex;
  justify-content: center;
  color: #fcd34d;
  align-items: center;
  width: 3.3rem;
  height: 3.3rem;
}

.coin__font {
  font-weight: 500;
  color: #fcd34d;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.base__line {
  height: 3px;
  width: 27px;
  border-radius: 9999999999px;
  color: rgba(0, 0, 0, 0);
  animation: shadow 1s infinite;
}

@keyframes spin {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(21deg) rotateX(12deg);
  }
  75% {
    transform: rotateY(-21deg) rotateX(-12deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-30%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes shadow {
  0%,
  100% {
    box-shadow: none;
    transform: rotateX(0deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: rotateX(25deg);
    box-shadow: 0px -6px 9px rgba(0, 0, 0, 0.1);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.author {
  font-size: 0.72rem;
  font-weight: 300;
  color: #94a3b8;
  padding: 1rem;
}

.author a {
  color: #94a3b8;
}

.author a:hover {
  text-decoration: none;
  color: #0f172a;
}
