body {
  font-family: "EuclidCircularA", sans-serif;
  margin: 0;
  background-color: #0a0817;
  overflow-x: hidden;
}

html,
body {
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

div {
  scroll-margin: 79px;
}

@view-transition {
  navigation: auto;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "EuclidCircularA";
  src: url("../fonts/EuclidCircularA-SemiboldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
}

#menu-toggle:checked ~ #dropdown-content {
  display: block;
}

.gradient-border-mask {
  display: inline-block;
  position: relative;
  width: 100%;
}

.gradient-border-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0)
    )
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.gradient-border-mask-no_rounded {
  display: inline-block;
  position: relative;
  width: 100%;
}

.gradient-border-mask-no_rounded::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0)
    )
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

/** Sticky Package **/
.sticky-package {
  align-items: center;
  background-color: rgba(12, 10, 29);
  border-color: rgba(255, 255, 255, 0.1) !important;
  padding: 8px 0;
}

.sticky-package .sticky-package_image {
  width: 44px;
  height: 44px;
  border-radius: 8px !important;
}

.sticky-package .sticky_package_title {
  font-size: 14px !important;
}

.sticky-package .sticky-package_url {
  font-size: 12px !important;
  flex-direction: row !important;
  display: flex;
  gap: 8px;
}

.sticky-package .sticky-package_url .sticky-package_github-url {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 8px;
}

.rain-image {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  animation: fall linear infinite;
  transform-origin: center;
  opacity: 0.8;
}

@keyframes fall {
  from {
    transform: translateY(-10vh) rotate(var(--fall-angle, 0deg));
  }
  to {
    transform: translateY(110vh) rotate(var(--fall-angle, 0deg));
  }
}

#rain-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

/** PACKAGE **/
.package--title {
  padding: 0 0 8px 0;
}

.font-h0 {
  font-size: 2.25rem !important; /* 36px */
}

h1 {
  font-size: 1.5rem !important; /* 24px */
}

h2 {
  font-size: 1.25rem !important; /* 20px */
}

h3 {
  font-size: 1.125rem !important; /* 18px */
}

h4 {
  font-size: 1rem !important; /* 16px */
}

h5 {
  font-size: 0.875rem !important; /* 14px */
}

h6 {
  font-size: 0.75rem !important; /* 12px */
}

/** Markdown **/
.markdown-content code:not(pre > code) {
  padding: 0.25rem;
  color: #fff;
  font-family: monospace;
  font-size: 14px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px;
  word-break: break-all;
}

.markdown-content p > a {
  text-decoration: underline;
}

.markdown-content > h2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.markdown-content > pre,
.pre-code {
  font-family: monospace;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.05) !important;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.markdown-content p {
  line-height: 24px;
}

@media (max-width: 1024px) {
  .toggle-mobile_version {
    position: absolute !important;
    z-index: 1000000 !important;
    width: 30px !important;
    height: 30px !important;
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    left: inherit !important;
    right: 0 !important;
    border-radius: 50px !important;
  }
}

/** Rank Leadboard **/
.leaderboard {
  counter-reset: rank;
}

.leaderboard--rank::before {
  counter-increment: rank;
  content: counter(rank);
}

.leaderboard--rank {
  background-color: rgb(111 76 255 / 0.5);
  border-color: rgb(139 112 255 / var(--tw-border-opacity, 1));
  color: #ffffff;
}

.leaderboard a:nth-child(1) .leaderboard--rank {
  background-color: #eab308;
  border-color: #fbbf24;
  color: #854d0e;
}

.leaderboard a:nth-child(2) .leaderboard--rank {
  background-color: #a8a29e;
  border-color: #d4d4d4;
  color: #292524;
}

.leaderboard a:nth-child(3) .leaderboard--rank {
  background-color: #f97316;
  border-color: #f59e0b;
  color: #7c3a0b;
}

.podium .podium--list {
  animation: expandHeight 1s ease-out forwards;
}

.podium .podium--list:nth-child(1) {
  order: 3;
  height: 302px;
  --target-height: 302px;
}

.podium .podium--list:nth-child(2) {
  order: 2;
  height: 240px;
  --target-height: 240px;
}

.podium .podium--list:nth-child(3) {
  order: 4;
  height: 180px;
  --target-height: 180px;
}

.podium .podium--list:nth-child(4) {
  order: 1;
  height: 120px;
  --target-height: 120px;
}

.podium .podium--list:nth-child(5) {
  order: 5;
  height: 60px;
  --target-height: 60px;
}

@keyframes expandHeight {
  from {
    height: 0;
  }
  to {
    height: var(--target-height);
  }
}

@media (min-width: 1080px) {
  .rotate-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
}

@media (max-width: 1380px) {
  .container {
    max-width: calc(100% - 32px) !important;
    padding-right: 0rem;
    padding-left: 0rem;
  }
}

/** MARQUEE **/
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
  gap: 32px;
}

.get-in-touch-slider {
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.4) !important;

  &:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
  }
}

.dropdown:focus-within .icon-menu {
  display: none;
}
.dropdown:focus-within .icon-logo {
  display: inline-block;
}
