@import url("./buttons.css");

.overlay {
  opacity: 1;
  width: 100vw;
  height: 100vh;
  background-color: var(--core-dark-transparent);
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay__container {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.overlay__guide {
  width: 70.9375rem;
  padding: 5rem;
  border-radius: 1rem;
  background: var(--coreneutral-101);
  z-index: 4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
}

.overlay__guide--center {
  text-align: center;
}

.overlay__panel--intro {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  z-index: 6;
  position: relative;
}

.overlay__graphic {
  width: 70%;
  position: relative;
}

.overlay__content {
  width: 100%;
  display: block;
}

.overlay__content--center {
  text-align: center;
}

.overlay__title {
  font-family: var(--gotham-narrow);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.5rem;
  letter-spacing: 0.0625rem;
  word-wrap: break-word;
  color: var(--core-red);
}

.overlay__description, .overlay__demo-replay-text {
  color: var(--core-dark);
  font-size: 1.25rem;
  font-family: var(--gotham);
  font-weight: 325;
  line-height: 1.75rem;
  word-wrap: break-word;
  margin-top: 1.25rem;
}

.overlay__description--large {
  font-size: 1.5rem;
}

.overlay__demo-options {
  margin-top: 2.25rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
}

.overlay__demo-options--center {
  justify-content: center !important;
}

.overlay__btn--card {
  display: flex;
  flex-direction: column;
  align-items: start;
  background: linear-gradient(90deg, #e5e5ec 0%, rgba(239, 240, 241, 0.5) 100%);
  border: none;
  padding: 1.1875rem;
  width: 11.625rem;
}

.overlay__btn--card:hover,
.overlay__btn--card--large:hover {
  background: linear-gradient(
    89deg,
    var(--core-red) 0%,
    #d6311b 48%,
    #d84332 100%
  );
  cursor: pointer;
}

.overlay__text-content {
  width: 35rem;
}

.overlay__text-content--full {
  width: 100% !important;
}

.overlay__btn--icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.875rem;
}

.overlay__btn--card:hover .overlay__btn--icon path,
.overlay__btn--card--large:hover .overlay__btn--icon--large path {
  fill: var(--coreneutral-101) !important;
}

.overlay__btn--title {
  color: var(--core-dark);
  font-size: 1.16rem;
  font-family: var(--gotham-narrow);
  font-weight: 800;
  letter-spacing: 0.0362rem;
  word-wrap: break-word;
  margin-bottom: 0.4375rem;
}

.overlay__btn--card:hover .overlay__btn--title,
.overlay__btn--card--large:hover .overlay__btn--title--large {
  color: var(--coreneutral-101);
}

.overlay__btn--subtitle {
  color: var(--core-dark);
  font-size: 0.75rem;
  font-weight: 325;
  font-family: var(--gotham);
  line-height: 0.8125rem;
  word-wrap: break-word;
  text-transform: capitalize;
}

.overlay__btn--card:hover .overlay__btn--subtitle,
.overlay__btn--card--large:hover .overlay__btn--subtitle--large {
  color: var(--coreneutral-101);
}

.overlay__graphic--dotgrid {
  position: fixed;
  bottom: 4.5625rem;
  left: 0.6875rem;
  width: 23.875rem;
  height: 22.375rem;
}

.overlay__graphic--asset {
  width: 21.5rem;
  height: 21.5rem;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

outro-overlay {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

outro-overlay.visible {
  visibility: visible !important;
  opacity: 1;
}

.overlay__demo-options--large {
  display: inline-flex;
  justify-content: flex-start;
  gap: 1.75rem;
  width: 100%;
  margin: 2.25rem auto 0 auto;
}

.overlay__btn--card--large {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  align-items: start;
  background: linear-gradient(90deg, #e5e5ec 0%, rgb(239, 240, 241) 100%);
  border: none;
  padding: 1.7188rem;
}

.overlay__btn--icon--large {
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 1.25rem;
}

.overlay__btn--title--large {
  color: var(--core-dark);
  font-size: 2rem;
  font-family: var(--gotham-narrow);
  font-weight: 800;
  letter-spacing: 0.0625rem;
  word-wrap: break-word;
  margin-bottom: 0.625rem;
}

.overlay__flow-map-button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  margin-top: 2rem;
}

.overlay__flow-map-button button {
  all: unset;
  color: var(--core-red);
  text-decoration: underline;
  cursor: pointer;
}

.overlay__btn--subtitle--large {
  color: var(--core-dark);
  font-size: 1rem;
  font-weight: 325;
  font-family: var(--gotham);
  line-height: 1.375rem;
  word-wrap: break-word;
  text-transform: capitalize;
}

.overlay__background--square-dot-grid {
  position: fixed;
  top: 1.6875rem;
  left: 2.6875rem;
  width: 23.875rem;
  height: 22.375rem;
  z-index: 5;
}

.absolute {
  position: absolute;
}

/* hide start buttons for registration, authentication,
   or magic link flows depending on completed demo */
.registration #start-registration-flow {
  display: none;
}

.authentication #start-auth-fido-flow {
  display: none;
}

.magic-link #start-magic-link-flow {
  display: none;
}

.overlay__cta-banner {
  position: absolute;
  bottom: 0;
  z-index: 1; /* display above grid background */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.25rem;
  width: 50%;
  align-items: center;
  margin: 0 auto;
  margin-top: 2.5rem;
  padding: 1.5625rem;
  background: linear-gradient(to top right, var(--core-red), var(--core-red-light));
  transform: translateY(100%);
  opacity: 0;
  color: var(--coreneutral-101);
}

.overlay__cta-banner h2 {
  margin: 0 0 0.25rem;
}

.overlay__cta-banner p {
  margin: 0;
}

.overlay__cta-banner a {
  display: inline-block;
  margin: 0.25rem;
}

.guide-overlay {
  opacity: 0;
  width: 100%;
  max-width: 31.25rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.0625rem 0.25rem 0.0625rem rgba(121, 128, 135, 0.35);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 1rem;
}
