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

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

@font-face {
  font-family: "SVN-Gilroy";
  src: url("../fonts/SVN-Gilroy\ Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "SVN-Gilroy";
  src: url("../fonts/SVN-Gilroy\ XBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Playfair";
  src: url("../fonts/PlayfairDisplay-Regular.ttf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

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

@font-face {
  font-family: "Playfair";
  src: url("../fonts/PlayfairDisplay-Bold.ttf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SVN-Gilroy", sans-serif;
}
html {
  /* 1rem will now equal exactly 1rem at a 1440rem screen width */
  font-size: calc(100vw / 1440);
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  /* background: url("../images/main-bg.webp") top center no-repeat; */
  /* background-size: cover; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0b0a12;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
main::before {
  content: "";
  position: absolute;

  /* The Magic: Push the top down by 200px, but keep sides/bottom at 0 */
  top: 668.26rem;
  bottom: 0;
  left: 0;
  right: 0;

  /* Apply your background styles here */
  background: url("../images/main-bg.webp") top center no-repeat;
  background-size: cover;
  background-color: #0b0a12;
  height: 3426rem;
  /* Safely sends the image behind your text layers */
  z-index: -1;
}
main {
  flex: 1;
  min-height: 100vh;
  font-size: 16rem;
  line-height: 20rem;
  color: #ddd8cd;
  position: relative;
  overflow: hidden;
}
.gradient-text {
  color: transparent;
  display: inline-block;
  background: linear-gradient(90deg, #f74749 0%, #ffae6c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scroll-top-btn {
  position: fixed;
  border-radius: 50%;
  border: none;
  right: 37rem;
  bottom: 15rem;
  width: 44rem;
  height: 44rem;
  background: url("../svgs/back-to-top.svg") top center no-repeat;
  background-size: cover;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(12rem);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  scale: 1.1;
}

.scroll-top-btn:active {
  transform: translateY(0) scale(0.96);
}
@media screen and (min-width: 1921px) {
  html {
    font-size: 1.3333333px;
  }
}
@media screen and (max-width: 768px) {
  main::before {
    top: 272rem;
    background: url("../images/main-bg-mb.webp") top center no-repeat;
    background-size: cover;
    background-color: #0b0a12;
    height: 5819rem;
  }

  main {
    width: 402rem;
    background-size: unset;
  }
  main.huong-dan {
    min-height: unset;
  }
  html {
    /* 1rem will now equal exactly 1rem at a 1440rem screen width */
    font-size: calc(100vw / 402);
  }
}
