:root {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #fff;
  font-size: 1.75em;
  line-height: 1.35;
}

.background,
.background::after {
  position: fixed;
  inset: 0;
}

.background {
  z-index: 0;
  background: url("assets/bg1.webp") center / cover no-repeat;
}

.background::after {
  content: "";
  background: rgba(255, 255, 255, 0.25);
}

.main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.chat {
  display: flex;
  width: 100%;
  max-width: 40rem;
  height: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  flex-direction: column;
  justify-content: flex-end;
}

.stage {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.stage.active {
  display: flex;
  animation: appear 220ms ease-out;
}

.bubble {
  max-width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}

.bubble.image {
  padding: 0.5rem;
}

.bubble img {
  display: block;
  width: auto;
  max-width: 20rem;
  max-height: min(34dvh, 32rem);
  border-radius: 0.75rem;
  object-fit: cover;
}

.question,
.congratulations {
  display: block;
  margin-bottom: 0.5rem;
  color: #593145;
  font-size: 1.6rem;
  font-weight: 700;
}

.congratulations {
  color: #000;
  font-size: 2rem;
}

.actions {
  display: flex;
  width: 100%;
  justify-content: center;
}

button,
.button {
  display: inline-flex;
  min-width: 10.5rem;
  height: 4.8rem;
  margin: 0 0.5rem;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 1rem;
  background: #422433;
  box-shadow: 0 12px 6px -10px rgba(0, 0, 0, 0.8);
  color: #fff;
  cursor: pointer;
  font: 700 1.4rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.secondary {
  opacity: 0.5;
}

.wide {
  min-width: 22rem;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 720px) {
  .chat {
    padding-bottom: 2.5rem;
  }

  .stage {
    gap: 0.75rem;
  }

  .bubble {
    padding: 0.75rem;
  }

  .bubble img {
    max-height: 18rem;
  }
}

@media (min-width: 360px) {
  :root { font-size: 75%; }
}

@media (min-width: 768px) {
  :root { font-size: 87.5%; }
}

@media (min-width: 1300px) {
  :root { font-size: 100%; }
}
