@font-face {
  font-family: "Abolition";
  src: url("assets/abolition-round-oblique.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-green-400: #00843D;
  --color-green-600: #006830;

  --color-gray-900: #323232;
  --color-gray-300: #E7E7E7;
}

html {
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", sans-serif;
}

body:has([popover]:popover-open) {
  overflow: hidden;
}

section {
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 1rem;
  }
}

.container {
  max-width: 865px;
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Abolition", sans-serif;
  letter-spacing: 1px;
  line-height: 1;
  text-wrap: pretty;
}

h1 {
  font-size: 3rem;
}

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

h2 {
  font-size: 36px;
}

p {
  font-size: 1rem;
  line-height: 1.625;
  color: #323232;
}

@media (min-width: 768px) {
  p {
    font-size: 1.25rem;
  }
}

button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: var(--color-green-400);
  color: white;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--color-green-400);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

button:hover {
  background-color: var(--color-green-600);
  border: 1px solid var(--color-green-600);
}

button:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.button-outline-white {
 padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button-outline-white:hover {
  background-color: white;
  color: black;
}

.button-outline-white:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.button-outline-white:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}


.button-outline-green {
 padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--color-green-400);
  border: 1px solid var(--color-green-400);
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button-outline-green:hover {
  background-color: var(--color-green-400);
  color: white;
}

.button-outline-green:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.button-outline-green:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

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

h3 {
  font-size: 24px;
}

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

/* Popover Styles */
#swish-popover,
#confirmation-popover {
  max-width: 28rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#swish-popover::backdrop,
#confirmation-popover::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

#swish-popover .popover-content,
#confirmation-popover .popover-content {
  position: relative;
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
}

#swish-popover .close-button,
#confirmation-popover .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #9ca3af;
  transition: color 0.15s ease-in-out;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#swish-popover .close-button:hover,
#confirmation-popover .close-button:hover {
  color: #4b5563;
  background: none;
  box-shadow: none;
}

#swish-popover .close-button svg,
#confirmation-popover .close-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

#swish-popover .popover-inner,
#confirmation-popover .popover-inner {
  text-align: center;
}

#swish-popover h3,
#confirmation-popover h3 {
  margin-bottom: 1rem;
  color: #111827;
}

#swish-popover .image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#swish-popover .image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
