@font-face {
  font-family: AlegreyaSC;
  src: url("../resources/fonts/AlegreyaSC-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: AlegreyaSC;
  src: url("../resources/fonts/AlegreyaSC-Bold.ttf");
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: Inter;
  src: url("../resources/fonts/Inter.ttf");
  font-style: normal;
}

@font-face {
  font-family: Inter;
  src: url("../resources/fonts/Inter-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: Minecraft;
  src: url("../resources/fonts/minecraft-ten.otf");
}

@font-face {
  font-family: Faithful;
  src: url("../resources/fonts/faithful-32x-sga.otf");
}

:root {
  --color-dark: #222831;
  --color-darken: #171c22;
  --color-soft-dark: #393e46;

  --color-primary: #3282b8;
  --color-primary-darken: #286893;
  --color-primary-lighten: #468ebf;

  --color-secondary: #0f4c75;
  --color-secondary-darken: #0c3c5d;
  --color-secondary-lighten: #265d82;

  --color-brand: #fbaf4e;
  --color-brand-darken: #c88c3e;
  --color-brand-lighten: #fbb75f;

  --color-light: #eeeeee;
  --color-gray: #b1b1b1;

  --portal-width: 440px;
}

@media (max-width: 1200px) {
  :root {
    --portal-width: 400px;
  }
}

@media (max-width: 720px) {
  :root {
    --portal-width: 340px;
  }
}

@media (max-width: 360px) {
  :root {
    --portal-width: 280px;
  }
}

@media (max-width: 300px) {
  :root {
    --portal-width: 220px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

@media (max-width: 1200px) {
  html {
    scroll-padding-top: 6rem;
  }
}

body {
  background: var(--color-dark);
  color: var(--color-light);
  font-family: Inter;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: AlegreyaSC;
  font-weight: bold;
  margin: 0;
}

h1 {
  font-size: 48px;
  line-height: 1.15;
}

h2 {
  font-size: 40px;
  line-height: 1.2;
}

h3 {
  font-size: 32px;
  line-height: 1.25;
}

h4 {
  font-size: 24px;
  line-height: 1.3;
}

h5 {
  font-size: 20px;
  line-height: 1.4;
}

h6 {
  font-weight: normal;
  font-size: 18px;
  line-height: 1.45;
}

p {
  margin: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 0%;
  border-bottom: 1px solid var(--color-light);
  transition:
    width 0.25s,
    left 0.25s;
}

a:hover,
a:focus,
a[data-active] {
  color: var(--color-light);
}

a:hover::after,
a:focus::after,
a[data-active]::after {
  width: 100%;
  left: 0%;
}

a:active {
  color: var(--color-primary);
}

section {
  margin: 10rem auto;
}

@media (max-width: 1100px) {
  section {
    margin: 7rem auto;
  }
}

ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style-type: "❖";
  padding: 0;
  padding-left: 2rem;
  margin: 0;
}

li {
  padding-left: 1rem;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}

.flex-row--reverse {
  flex-direction: row-reverse;
}

@media (max-width: 1100px) {
  .flex-row {
    flex-direction: column;
  }
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

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

.description {
  font-size: 16px;
  color: var(--color-gray);
  font-style: italic;
}

.arrow {
    position: relative;
    width: 2rem;
    height: 2rem;
}

.arrow div {
    position: relative;
    top: calc(50% - 2px);
    width: calc(100% - 4px);
    height: 4px;
    background-color: var(--color-gray);
    left:0;
    display: block;
}

.arrow div::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    top: -4px;
    right: -4px;
    background-color: var(--color-gray);
    transform: rotate(45deg);
}

.arrow div::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -4px;
    right: -4px;
    background-color: var(--color-gray);
    transform: rotate(-45deg);
}

.header {
  width: 100%;
  padding: 1rem 0;
  box-sizing: border-box;
  background: linear-gradient(180deg,
      rgba(34, 40, 49, 1) 0%,
      rgba(34, 40, 49, 0.85) 60%,
      rgba(34, 40, 49, 0) 100%);
  position: sticky;
  left: 0;
  top: 0;
  z-index: 99;
}

.navigation {
  font-family: AlegreyaSC;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  gap: 1rem;
  background-color: rgba(28, 33, 40, 0.75);
  box-shadow:
    rgba(0, 0, 0, 0.12) 0px 1px 3px,
    rgba(0, 0, 0, 0.24) 0px 1px 2px;
  backdrop-filter: blur(4px);
  border-radius: 40px;
  padding: 1rem 2.5rem;
}

.navigation>span {
  color: var(--color-soft-dark);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  align-items: center;
}

.mobile-header {
  display: none;
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 70;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-darken);
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  box-sizing: border-box;
  user-select: none;
}

.mobile-header .brand {
  font-size: 28px;
}

.hide-menu-button,
.show-menu-button {
  background: none;
  border: none;
  font-size: 44px;
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.show-menu-button {
  margin-top: 4px;
}

.hide-menu-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: none;
}

@media (max-width: 1100px) {
  .mobile-header {
    display: flex;
  }

  .hide-menu-button {
    display: block
  }

  .header {
    left: unset;
    right: -100%;
    position: fixed;
    background: var(--color-dark);
    width: 100%;
    max-width: 320px;
    min-height: 100vh;
    padding: 10vh 0;
    transition: right .25s;
    z-index: 99;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  }

  .header--shown-mobile {
    right: 0;
  }

  .dark-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    background: rgba(0, 0, 0, 0);
    transition: background-color .45s;
  }

  .dark-overlay--shown {
    background: rgba(0, 0, 0, .45);
    pointer-events: auto;
  }

  .header__content {
    flex-direction: column;
    gap: 2rem;
    padding: 0 !important;
    background-color: var(--color-dark);
  }

  .navigation {
    flex-direction: column;
    text-align: center;
    width: 100%;
    border-radius: 0;
    align-items: center;
    box-sizing: border-box;
  }

  .navigation>span {
    display: none;
  }
}

@media (max-width: 420px) {
  .header {
    max-width: none;
  }
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.brand {
  font-family: Minecraft;
  font-size: 40px;
  line-height: 1.5;
  display: flex;
  gap: 4px;
  transition: color 0.25s;
  margin-top: -8px;
  transition: transform 0.25s;
  will-change: transform;
}

.brand:hover {
  transform: scale(1.025);
}

.brand::after {
  content: none;
}

.brand__ll,
.brand__rift {
  --logotype-color: var(--color-brand);

  color: var(--logotype-color);
  text-shadow:
    1px 1px 0 color-mix(in srgb, var(--logotype-color) 70%, black),
    2px 2px 0 color-mix(in srgb, var(--logotype-color) 60%, black),
    3px 3px 0 color-mix(in srgb, var(--logotype-color) 50%, black),
    4px 4px 0 color-mix(in srgb, var(--logotype-color) 40%, black),
    5px 5px 0 color-mix(in srgb, var(--logotype-color) 30%, black),
    10px 10px 15px rgb(0 0 0 / 45%);
}

.brand__rift {
  --logotype-color: var(--color-primary);
}

.button {
  --button-bg-color: var(--color-light);
  --button-text-color: var(--color-soft-dark);

  font-family: Minecraft;
  font-size: 20px;
  padding: 12px 16px;
  border-radius: 2px;
  text-transform: uppercase;
  transition:
    transform 0.25s,
    background-color 0.25s,
    box-shadow 0.25s;
  will-change: transform;
  font-weight: 900;
  text-align: center;
  display: inline-block;

  background-color: var(--button-bg-color);
  color: var(--button-text-color) !important;

  text-shadow: 4px 4px 0 color-mix(in srgb, var(--button-text-color) 20%, black);

  box-shadow:
    1px 1px 0 color-mix(in srgb, var(--button-bg-color) 70%, black),
    2px 2px 0 color-mix(in srgb, var(--button-bg-color) 60%, black),
    3px 3px 0 color-mix(in srgb, var(--button-bg-color) 50%, black),
    4px 4px 0 color-mix(in srgb, var(--button-bg-color) 40%, black),
    10px 10px 15px rgb(0 0 0 / 45%);

  margin-right: 4px;
}

.button:hover {
  transform: scale(1.025);
}

.button--primary {
  --button-bg-color: var(--color-primary);
  --button-text-color: var(--color-light);
}

.button--primary:hover {
  --button-bg-color: var(--color-primary-darken);
}

.button--primary:active {
  --button-bg-color: var(--color-primary);
}

.button--curseforge,
.button--modrinth,
.button--telegram {
  cursor: default;
  user-select: none;
}

.button--curseforge i,
.button--modrinth i,
.button--telegram i {
  font-size: 24px;
  margin-right: 4px;
}

.button--curseforge {
  --button-bg-color: #aa7e6c;
  --button-text-color: #eeeeee;
}

.button--curseforge:hover {
  --button-bg-color: #aa7e6c;
  --button-text-color: #eeeeee;
  transform: none;
}

.button--curseforge:active {
  --button-bg-color: #aa7e6c;
  --button-text-color: #eeeeee;
}

.button--modrinth {
  --button-bg-color: #406f59;
  --button-text-color: #eeeeee;
}

.button--modrinth:hover {
  --button-bg-color: #406f59;
  --button-text-color: #eeeeee;
  transform: none;
}

.button--modrinth:active {
  --button-bg-color: #406f59;
  --button-text-color: #eeeeee;
}

.button--telegram {
  --button-bg-color: #0088CC;
  --button-text-color: #e1e1e1;
  cursor: pointer;
}

.button--telegram:hover {
  --button-bg-color: #24A1DE;
  --button-text-color: #eeeeee;
}

.button--telegram:active {
  --button-bg-color: #0088CC;
  --button-text-color: #e1e1e1;
}

.button::after {
  content: none;
}

.download-button {
  font-family: Faithful;
  padding-top: 12px;
  width: 140px;
  letter-spacing: 2px;
}

.main-section {
  margin: 8rem auto 12rem auto;
}

@media (max-width: 1100px) {
  .main-section {
    margin: .75rem auto 5rem auto;
  }
}

.about-project {
  min-height: 60vh;
}

.about-project__render {
  max-width: 480px;
  width: 100%;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 720px) {
  .about-project__render {
    max-width: 400px;
  }
}

.about-project__text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-project__accent {
  font-size: 20px;
}

.about-project__afterword {
  font-style: italic;
  color: var(--color-gray);
}

@keyframes hearth {
  0% {
    transform: scale(1);
    filter: drop-shadow(0px 0px 60px rgba(234, 242, 247, 0.75));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 48px rgba(193, 217, 233, 0.75));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0px 0px 60px rgba(234, 242, 247, 0.75));
  }
}

.portal {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: var(--portal-width);
  height: var(--portal-width);
  user-select: none;
  pointer-events: none;
}

.portal__border {
  position: relative;
  height: var(--portal-width);
  animation: hearth 4s infinite;
}

.portal__background,
.portal__overlay {
  position: absolute;
  height: calc(var(--portal-width) + 40px);
  width: calc(var(--portal-width) + 40px);
  background-image: url("../resources/portal_background.webp");
  background-position: 25% 50%;
  background-repeat: no-repeat;
  background-size: calc(var(--portal-width) - 60px);
  mask-image: url("../resources/portal_mask.png");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: calc(var(--portal-width) + 32px);
  transition: opacity 4.55s;
}

.portal__overlay {
  background-position: 50% 50%;
  background-size: calc(var(--portal-width) - 100px);
}

.portal__overlay--hidden {
  opacity: 0;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .info-block__title {
    text-align: center;
  }
}

.features-list {
  font-size: 24px;
  gap: 2rem;
}

.features-list__title {
  margin-bottom: 0.5rem;
}

.features-list__description {
  font-size: 18px;
}

.guide {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  justify-content: center;
  width: 100%;
}

.guide:last-child {
  margin-bottom: 0;
}

.guide-block {
  width: calc(50% - 1rem);
  aspect-ratio: 2.4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

@media (max-width: 1100px) {
  .guide-block {
    width: 100%;
    aspect-ratio: 3;
    max-height: 200px;
  }
}

@media (max-width: 720px) {
  .guide-block {
    width: 100%;
    aspect-ratio: unset;
    max-height: 240px;
  }
}

@media (max-width: 520px) {
  .guide-block {
    width: 100%;
    aspect-ratio: unset;
    max-height: 280px;
  }
}

.guide-block__content {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;

  width: calc(100% + 8px);
  height: calc(100% + 8px);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;

  background: rgba(0, 0, 0, .75);
  margin: -4px;
  padding: 1rem 3rem;
  box-sizing: border-box;
}

.guide-block__content--light {
  background: rgba(0, 0, 0, .60);
}

@media (max-width: 720px) {
  .guide-block__content {
    padding: 1rem;
  }
}

.guide-block__title {
  text-transform: uppercase;
  font-size: 28px;
}

.guide-block__description {
  font-style: italic;
}

.guide-block__background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: width .45s, height .45s, margin .45s;
  user-select: none;
}

.progression__profession-image {
  max-width: 480px;
  width: 100%;
  user-select: none;
}

@media (max-width: 1100px) {
  .progression__profession-image {
    max-width: 400px;
  }
}

.castle-image {
  width: 480px;
  user-select: none;
}

@media (max-width: 720px) {
  .castle-image {
    width: 400px;
  }
}

@media (max-width: 420px) {
  .castle-image {
    width: 380px;
  }
}

.camp-image,
.final-image {
  width: 360px;
  user-select: none;
}

.dev-image {
  width: 320px;
  user-select: none;
}

@media (max-width: 1100px) {
  .dev-image {
    position: unset;
  }
}

.roadmap-wrapper {
  margin: 3rem auto;
}

.roadmap {
  text-align: left;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  margin-top: 1rem;
}

.roadmap__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--color-gray);
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
}

.roadmap__item:last-child {
  padding-bottom: 28px;
}

.roadmap__release {
  position: absolute;
  left: -4px;
  top: calc(50% - 1rem);
}

.roadmap__end {
  position: absolute;
  left: calc(-1rem - 2px);
  bottom: -1rem;
  transform: rotate(90deg);
}

.roadmap__text {
  margin-top: 12px;
}

.roadmap__text p {
  font-style: italic;
  color: var(--color-gray);
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
}

.separator {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 20px;
  user-select: none;
  padding: 0 2rem;
  box-sizing: border-box;
}

.separator>* {
  flex: 1;
}

footer {
  margin-top: -8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
  background: linear-gradient(0deg,
      var(--color-darken) 0%,
      var(--color-dark) 100%);
}

@media (max-width: 1100px) {
  footer {
    margin-top: -6rem;
    text-align: center;
  }
}

footer .flex-row {
  width: 100%;
  justify-content: space-between;
}

.social-links {
  display: flex;
  gap: calc(.5rem - 8px);
  font-size: 24px;
  margin: -8px;
}

.social-links a {
  padding: 8px;
  color: var(--color-gray);
}

.social-links a::after {
  content: none;
}

.social-links a:hover {
  color: var(--color-light);
}

.copyright {
  font-size: 18px;
}

.copyright__description {
  color: var(--color-gray);
  font-size: 14px;
}

.copyright__models-warning {
  color: var(--color-gray);
  font-size: 14px;
  line-height: 16px;
  margin-top: 12px;
  font-style: italic;
}