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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

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

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(228, 29%, 97%);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem; /* 40px */
}

h2 {
  font-size: 2.125rem; /* 34px */
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.375rem; /* 22px */
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: #d3b703;
}

a:hover {
    color:hsl(228, 29%, 97%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 64px);
}

/* -------------------------------- 

Buttons 

-------------------------------- */

.cd-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.2rem 0.2rem;
  border-radius: 0.375em;
  font-size: 1em;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s;
  will-change: transform;
  margin: 5px;
}

.cd-btn:focus-visible {
  outline: none;
}

.cd-btn:active {
  transform: translateY(2px);
}

.cd-btn--primary {
  background: hsl(250, 84%, 54%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 3px hsla(250, 84%, 38%, 0.25), 
              0 2px 6px hsla(250, 84%, 38%, 0.1), 
              0 6px 10px -2px hsla(250, 84%, 38%, 0.25);
  color: hsl(0, 0%, 100%);
}

.cd-btn--primary:hover {
  background: hsl(250, 84%, 60%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsla(250, 84%, 38%, 0.25), 
              0 1px 4px hsla(250, 84%, 38%, 0.1), 
              0 3px 6px -2px hsla(250, 84%, 38%, 0.25);
}

.cd-btn--primary:focus-visible {
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsla(250, 84%, 38%, 0.25), 
              0 1px 4px hsla(250, 84%, 38%, 0.1), 
              0 3px 6px -2px hsla(250, 84%, 38%, 0.25), 
              0 0 0 2px hsl(0, 0%, 100%), 
              0 0 0 4px hsl(250, 84%, 54%);
}

.cd-btn--subtle {
  background: #d3b703;
  color: #fff8d6;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.1), 
              0 0 0 1px hsla(230, 13%, 9%, 0.02), 
              0 0.3px 0.4px hsla(230, 13%, 9%, 0.025),
              0 1px 3px -1px hsla(230, 13%, 9%, 0.2), 
              0 3.5px 6px hsla(230, 13%, 9%, 0.12);
    border: none;
}

.cd-btn--subtle:hover {
  background: #d3b703;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.1), 
              0 0 0 1px hsla(230, 13%, 9%, 0.02), 
              0 0.1px 0.3px hsla(230, 13%, 9%, 0.06),
              0 1px 2px hsla(230, 13%, 9%, 0.12),
              0 1px 3px -1px hsla(230, 13%, 9%, 0.2);
}

.cd-btn--subtle:focus-visible {
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.1), 
              0 0 0 1px hsla(230, 13%, 9%, 0.02), 
              0 0.3px 0.4px hsla(230, 13%, 9%, 0.025),
              0 1px 3px -1px hsla(230, 13%, 9%, 0.2), 
              0 3.5px 6px hsla(230, 13%, 9%, 0.12), 
              0 0 0 2px hsl(0, 0%, 100%), 
              0 0 0 4px hsl(230, 7%, 23%);
}

.cd-btn--accent {
  background: hsl(342, 89%, 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 3px hsla(342, 89%, 38%, 0.25), 
              0 2px 6px hsla(342, 89%, 38%, 0.1), 
              0 6px 10px -2px hsla(342, 89%, 38%, 0.25);
}

.cd-btn--accent:hover {
  background: hsl(342, 89%, 56%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsla(342, 89%, 38%, 0.25), 
              0 1px 4px hsla(342, 89%, 38%, 0.1), 
              0 3px 6px -2px hsla(342, 89%, 38%, 0.1);
}

.cd-btn--accent:focus-visible {
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsla(342, 89%, 38%, 0.25), 
              0 1px 4px hsla(342, 89%, 38%, 0.1), 
              0 3px 6px -2px hsla(342, 89%, 38%, 0.1), 
              0 0 0 2px hsl(0, 0%, 100%), 
              0 0 0 4px hsl(342, 89%, 48%);
}

.cd-btn--disabled, .cd-btn[disabled], .cd-btn[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------------------- 

Component 

-------------------------------- */

.dialog {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
}

.dialog__content {
    width: calc(100% - 3rem);
    max-width: 35rem;
  overflow: auto;
  font-weight: 600;
  text-align: center;
  padding: 0rem;
  background-color: #14192b;
  box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05),
              0 1.2px 1.9px -1px hsla(230, 13%, 9%, 0.01),
              0 3px 5px -1px hsla(230, 13%, 9%, 0.015),
              0 8px 15px -1px hsla(230, 13%, 9%, 0.05),
              0 28px 40px -1px hsla(230, 13%, 9%, 0.1);
  border-radius: 0.75em;
}

.dialog__title {
  color: hsl(230, 13%, 9%);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.dialog__description {
  color: hsl(240, 14%, 97%);
  font-size: 0.9375rem;
}

.dialog__footer_1 {
  display: flex;
  flex-wrap: wrap;
  color: hsl(240, 14%, 97%);
  font-size: 0.9375rem;
  gap: 0.75rem;
  justify-content: left;
}

.dialog__footer_2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color:hsl(240, 14%, 97%);
  justify-content: end;
}

.dialog--is-visible {
  opacity: 1;
  visibility: visible;
}

.dialog--sticky {
  align-items: flex-start;
}

.dialog--sticky .dialog__content {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dialog[data-animation=on] {
  transition: opacity 0.3s, visibility 0s 0.3s;
  perspective: 800px;
}
.dialog[data-animation=on] .dialog__content {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translateY(10%);
}

.dialog[data-animation=on].dialog--is-visible {
  transition: opacity 0.3s;
}

.dialog[data-animation=on].dialog--is-visible .dialog__content {
  transform: translateY(0);
}

.dialog[data-animation=on].dialog--sticky .dialog__content {
  transform: translateY(-100%);
}

.dialog[data-animation=on].dialog--sticky.dialog--is-visible {
  transition: none;
}

.dialog[data-animation=on].dialog--sticky.dialog--is-visible .dialog__content {
  transform: translateY(0);
}