@font-face {
  font-family: OpenSans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/OpenSans700.woff2') format('woff2');
}

@font-face {
  font-family: OpenSans;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/OpenSans400italic.woff2') format('woff2');
}

@font-face {
  font-family: OpenSans;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/OpenSans700italic.woff2') format('woff2');
}

html {
  background: #ebd557;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  user-select: none;
  color: #3e3e3e;
}

* {
  font-family: OpenSans, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.wrapper {
  margin: 1rem 0;
  padding: 30px;
  width: 400px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, .2);
}

header {
  font-size: 1.5rem;
  color: #3e3e3e;
  padding: 1rem;
  text-align: right;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 0;
  color: #aa5e07;
}

.coin {
  height: 200px;
  width: 200px;
  position: relative;
  margin: 25px auto 50px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.coin img {
  width: 100%;
}

.heads,
.tails {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tails {
  transform: rotateX(180deg);
}

button {
  background: #aa5e07;
  width: 100%;
  padding: 15px 0;
  border: none;
  font-size: 1rem;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  background: #b7690f;
}

button:disabled {
  background: #cccccc;
}

@keyframes spin-tails {
  0% {
    transform: rotateX(0);
  }

  100% {
    transform: rotateX(900deg);
  }
}

@keyframes spin-heads {
  0% {
    transform: rotateX(0);
  }

  100% {
    transform: rotateX(1080deg);
  }
}
