@value small-tablet-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';
@value small-tablet-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';
@value medium-tablet-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';
@value large-tablet-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';
@value large-desktop-breakpoint-max-query from '~diem-docusaurus-components/src/variables.module.css';

/*
 * The nature of this component is that, due to how it is designed,
 * it is very fragile. For this reason, we've added a couple of extra
 * breakpoints for more precise styling
 */
@value custom-bp-small: 900px;
@value custom-bp-large: 1200px;


.root {
  --root-horizontal-padding: 60px;
  --content-font-size: 18px;
  --content-width: 231px;
  --content-horizontal-padding: 0;
  --width-variant: 100vw;
  display: flex;
  margin: 60px 0;
}

.content {
  background-color: transparent;
  padding: 0 var(--content-horizontal-padding);
  display: flex;
  font-size: var(--content-font-size);
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding-top: 5px;
}

.content p {
  max-width: 90%;
}

.title {
    font-size: 3.75rem !important;
    line-height: 1 !important;
}

.cta {
  align-items: center;
  display: flex;
  transition: .2s;
}

.cta:hover, .cta:hover * {
  background-color: white;
  text-decoration: none !important;
  color: var(--brand-color) !important;
}

.join {
  color: black;
  margin-right: auto;
}

.button {
  padding: 12px 20px;
  text-align: center;
  align-items: center;
  background-color: var(--brand-color);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.root img {
  object-fit: contain;
  width: 50%;
}

@media medium-tablet-breakpoint-max-query {
  .root {
    --root-horizontal-padding: 20px;
  }
}

@media
small-tablet-breakpoint-max-query,
large-tablet-breakpoint-query and (max-width: calc(custom-bp-large - 1px)) {
  .root {
    --content-width: auto;
  }
}

@media
small-tablet-breakpoint-query and (max-width: calc(custom-bp-small - 1px)) {
  .root {
    --width-variant: calc(100vw + 570px);
  }
}

@media
small-tablet-breakpoint-query and (max-width: calc( custom-bp-small - 1px)),
(min-width: custom-bp-large) and large-desktop-breakpoint-max-query {
  .root {
    --content-font-size: calc(var(--width-variant)/60 - 6px);
    --content-width: calc(200px + (var(--width-variant) - 1200px)/8);
    --content-horizontal-padding: calc(15px - (var(--width-variant) - 1200px)/16);
    --root-horizontal-padding: calc(var(--width-variant)/8 - 117px);
  }
}

@media
small-tablet-breakpoint-max-query,
large-tablet-breakpoint-query and (max-width: calc( custom-bp-large - 1px )) {
  .cta {
    padding-top: 12px;
    padding-bottom: 12px;
    width: 100%;
  }
}

@media
small-tablet-breakpoint-max-query and (max-width: calc( custom-bp-small - 1px )) {
  .root img {
    width: 0;
    display: none;
  }
}

html[data-theme="dark"] .root {
  background-color: var(--default-background-color);
}
