:root {
  --primary-color: #5A29E4;
  --primary-shadow-color: #5b29e45d;
  --secondary-color: #D442C6;
  --fg-color: #1f1c24;
  --margin: 60px;
  --font-sans: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
  font-size: 5px;
}

@media screen and (min-width: 370px) {
  :root {
    font-size: 7px;
  }
}
@media screen and (min-width: 500px) {
  :root {
    font-size: 10px;
  }
}
@media screen and (min-width: 1000px) {
  :root {
    --margin: 25vw;
  }

  .code-preview {
    display: block !important;
  }

  section#hero div.content {
    width: 60% !important;
  }
}
body {
  margin: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  color: var(--fg-color);
  font-family: var(--font-sans);
}

header {
  position: fixed;
  padding-top: 2rem;
  left: calc(var(--margin) / 2);
  width: calc(100vw - var(--margin));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffffd0;
  backdrop-filter: blur(2px);
  z-index: 1;
}
header a.button {
  margin-right: 0 !important;
}

a.button {
  font-size: 1.8rem;
  font-weight: var(--fw-regular);
  text-decoration: none;
  color: var(--primary-color);
  padding: 1.35rem 4.136rem;
  box-shadow: 0px 1rem 3rem rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  transition-duration: 200ms;
  margin: 1.5rem;
}
a.button.primary {
  box-shadow: 0px 1rem 3rem var(--primary-shadow-color);
  background: var(--primary-color);
  color: #fff;
}
a.button.primary:hover {
  color: #fff;
}
a.button:hover {
  transform: scale(0.98);
  opacity: 0.9;
  color: var(--secondary-color);
}

main {
  margin-left: calc(var(--margin) / 2);
  width: calc(100vw - var(--margin));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

section#hero {
  /*  height: calc(100vh - 200px);*/
  width: 100%;
  flex: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-flow: row nowrap;
}
section#hero div.content {
  width: 100%;
}
section#hero div.content h1 {
  font-size: 4.8rem;
  color: var(--fg-color);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}
section#hero div.content p {
  font-size: 2.4rem;
  font-weight: var(--fw-light);
  margin-bottom: 3.8rem;
}
section#hero div.content .buttons {
  margin-left: -1.5rem;
}

.code-preview {
  font-size: 18px;
  padding: 2rem 4rem;
  border-radius: 10px;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.1);
  display: none;
  max-width: 343px;
  width: 100%;
  height: 157px;
}
.code-preview pre {
  display: inline;
}
.code-preview span {
  font-family: var(--font-mono);
}
.code-preview span.p {
  font-weight: var(--fw-bold);
  color: var(--primary-color);
}
.code-preview span.s {
  color: var(--secondary-color);
}
.code-preview span.i {
  font-style: italic;
}

footer {
  width: 100vw;
  padding: 40px calc(var(--margin) / 2);
  background: #f2edf5;
  color: #000;
  font-weight: 300;
  font-size: 13.5px;
}
footer table {
  width: 100%;
  margin-bottom: 40px;
}
footer table td,
footer table th {
  text-align: left;
}
footer .row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

html[dir=rtl] main {
  margin-right: calc(var(--margin) / 2);
  margin-left: unset;
}
html[dir=rtl] .code-preview {
  direction: ltr;
}
html[dir=rtl] header a.button {
  margin-left: 0 !important;
}
html[dir=rtl] footer table td,
html[dir=rtl] footer table th {
  text-align: unset;
}

#sponsors .splide {
  padding: 0 40px;
  margin: 0 -50px;
}

li.sponsor-card {
  margin-bottom: 20px;
  padding: 10px;
}
li.sponsor-card:hover {
  opacity: 1;
}
li.sponsor-card > a {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding-left: 0.5rem;
}
li.sponsor-card .caption {
  font-size: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.5rem;
}
li.sponsor-card img + .caption {
  font-size: 1.5rem;
}
li.sponsor-card img {
  max-width: 100%;
  max-height: 7rem;
  position: relative;
}

li.sponsor-card[data-is-active=yes] {
  opacity: 1;
}

/*.splide {
  .splide__arrows {
    opacity: 0.5;
    transition-duration: 200ms;
  }

  &:hover {
    .splide__arrows {
      opacity: 1;
    }
  }
}*/
.tippy-box {
  background-color: var(--primary-color);
  pointer-events: all;
}
.tippy-box * {
  color: white;
}
.tippy-box .tippy-arrow {
  color: var(--primary-color);
}
.tippy-box .tier {
  font-size: 0.75rem;
}
.tippy-box .description {
  word-break: break-word;
}
.tippy-box .links {
  padding: 5px 0px;
}
.tippy-box .links a:not(:first-child):before {
  content: "|";
  padding: 0 10px 0 5px;
}
.tippy-box .caption {
  display: flex;
  align-items: center;
}
.tippy-box .sponsor-icon {
  padding-right: 3px;
}
.tippy-box .social {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tippy-box .social > a {
  margin: 0.4rem 1rem 0 1rem;
}
.tippy-box .social .icon {
  max-width: 3rem;
  max-height: 3rem;
}

.opacity_100 {
  opacity: 1;
}

.opacity_75 {
  opacity: 0.75;
}

.opacity_50 {
  opacity: 0.5;
}

.opacity_25 {
  opacity: 0.25;
}

.become_sponsor > a {
  justify-content: center;
  box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 1000px) {
  li.sponsor-card img + .caption {
    display: none;
  }
}