/* fonts */

@font-face {
  font-family: 'Bellmore';
  src: url('../fonts/bellmore.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* vars */

:root {
  --dark-blue: #173762;
  --light-blue: #c6e9ff;
  --light-blue-2: #f0f7fd;
  --body-text: var(--dark-blue);
  --background-color: var(--light-blue-2);
}

/* animations */

@view-transition {
  navigation: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
      opacity: 1;
      transform: scale(1);
  }
  50% {
      opacity: 0.7;
      transform: scale(3);
  }
  100% {
      opacity: 0;
      transform: scale(1);
  }
}

/* reset */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

/* base */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bellmore', sans-serif;
  text-wrap: balance;
}
h1, .text-h1 {
  font-size: 2em;
  font-weight: bold;
}
h2, .text-h2 {
  font-size: 2em;
  font-weight: bold;
}
h3, .text-h3 {
  font-size: 1.5em;
  font-weight: bold;
}

body {
  background-color: var(--background-color);
  color: var(--body-text);
  font-family: 'Bellmore', sans-serif;
  height: 100vh;
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  @media (min-width: 500px) {
    font-size: 28px;
  }

  @media (min-width: 768px) {
    font-size: 32px;
  }
}

main {
  height: 100%;
  position: relative;
}

section {
  width: 100%;
}

button, .btn {
  background: radial-gradient(ellipse, var(--light-blue), var(--dark-blue) 80%);
  border: none;
  border-radius: 50px;
  color: var(--light-blue-2);
  cursor: pointer;
  font-family: 'Bellmore', sans-serif;
  font-size: 1em;
  font-weight: bold;
  padding: .5rem 2rem;
  text-decoration: none;
  text-shadow: var(--dark-blue) 2px 2px 2px;
}

.btn:not([hidden]) {
  display: inline-block;
}

form-wizard {
  left: 0;
  padding: 2rem;
  position: absolute;
  text-align: center;
  top: 0;
}

form-wizard.animate {
  animation: fadeIn 0.5s ease-in-out;
}

form-wizard[step="1"] button[data-form-navigation="previous"] {
  display: none;
}

form-wizard fieldset {
  border: 0;
  padding: 1rem 0;
  
  @media (min-width: 768px) {
    padding: 2rem 0;
  }
}

form-wizard form-wizard-choices {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

form-wizard .join-link-container {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

form-wizard .join-link {
  background: radial-gradient(ellipse, var(--light-blue), var(--dark-blue) 80%);
  border: none;
  border-radius: 50px;
  color: var(--light-blue-2);
  cursor: pointer;
  font-family: 'Bellmore', sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  padding: .5rem 2rem;
  text-decoration: none;
  text-shadow: var(--dark-blue) 2px 2px 2px;
}

form-wizard .join-link__secondary {
  background: radial-gradient(ellipse, var(--light-blue), var(--light-blue-2) 50%);
  border: 4px solid var(--dark-blue);
  border-radius: 50px;
  color: var(--dark-blue);
  cursor: pointer;
  font-family: 'Bellmore', sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  padding: .5rem 2rem;
  text-shadow: var(--light-blue) 2px 2px 2px;
}

main:has(form-wizard.last-step) {
 display: flex;
} 

form-wizard.last-step {
  left: inherit !important;
  margin: auto;
  position: relative;
  top: inherit !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.trail {
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url('../images/sparkle.png'); /* Path to your star image */
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  animation: pulse 0.5s ease-out;
}