@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap");

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  color: #1f2d3a;
}
button {
  font: inherit;
  cursor: pointer;
}
.send {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}
.send input {
  flex: 1 1 180px;
  padding: 12px 14px;
  border: 2px solid #e3e8ee;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
}
.send button {
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #2b6cd1;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.send button:disabled {
  opacity: 0.6;
}
.send-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: #5b6b7a;
}

body {
  background: #20304a;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
}
main {
  width: min(520px, 100%);
}
h1 {
  margin: 0;
}
.hint {
  opacity: 0.7;
}
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 0;
  background: none;
  perspective: 1000px;
  padding: 0;
}
.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 22px;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 800;
  backface-visibility: hidden;
  transition: transform 0.5s;
}
.front {
  background: #ffd45c;
  color: #20304a;
}
.back {
  background: #fff;
  color: #20304a;
  transform: rotateY(180deg);
}
.card.flipped .front {
  transform: rotateY(-180deg);
}
.card.flipped .back {
  transform: rotateY(0);
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.controls button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  font-size: 22px;
  background: #ffffff22;
  color: #fff;
}
.link {
  margin-top: 16px;
  background: none;
  border: 0;
  color: #ffd45c;
  text-decoration: underline;
}
