@charset "utf-8";

@import "global.css";

/* TRBA 인트로 */
main section.trba-intro {
  width: 100%;
  height: auto;
  min-height: 100vh;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro {
    height: 100vh;
  }
}

main section.trba-intro div.box-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox에서 스크롤바 숨김 */
  -ms-overflow-style: none; /* IE/Edge에서 스크롤바 숨김 */
  position: relative;
}

/* Chrome/Safari/Opera에서 스크롤바 숨김 */
main section.trba-intro div.box-wrapper::-webkit-scrollbar {
  display: none;
}

/* 더 부드러운 스크롤링을 위한 전환 효과 */
main section.trba-intro div.box-wrapper.transitioning {
  scroll-behavior: auto !important;
}

/* 전환 중 클론 숨기기 */
main section.trba-intro div.box-wrapper.transitioning .box:first-child,
main section.trba-intro div.box-wrapper.transitioning .box:last-child {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper {
    height: 100%;
  }
}

main section.trba-intro div.box-wrapper div#trba-1 {
  background-image: url("../images/trba/trba-mobile-1.png");
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div#trba-1 {
    background-image: url("../images/trba/trba-desktop-1.png");
  }
}

main section.trba-intro div.box-wrapper div.box {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding-top: 100px;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  position: relative;
  scroll-snap-stop: always;
}

main section.trba-intro div.box-wrapper div.box div.tabs {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 100px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.tabs {
    width: var(--desktop-max-width);
    padding: 0;
  }
}

main section.trba-intro div.box-wrapper div.box div.tabs h1 {
  font-size: 36px;
  font-weight: 900;
  color: #6c68df;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.tabs h1 {
    font-size: 48px;
  }
}

main section.trba-intro div.box-wrapper div.box div.description {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.description {
    width: var(--desktop-max-width);
    margin-top: 100px;
    padding: 0;
  }
}

main section.trba-intro div.box-wrapper div.box div.description p {
  font-size: 14px;
  font-weight: 400;
  color: #404040;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.description p {
    font-size: 16px;
  }
}

main section.trba-intro div.box-wrapper div.box div.download {
  width: 100%;
  display: none;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.download {
    width: var(--desktop-max-width);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
  }
}

main section.trba-intro div.box-wrapper div.box div.download a {
  padding: 10px 50px;
  border-radius: 20px;
  background-color: #404040;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.download a {
    font-size: 16px;
  }
}

main section.trba-intro div.box-wrapper div.box div.contact {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.contact {
    width: var(--desktop-max-width);
    gap: 10px;
    padding: 0;
  }
}

main section.trba-intro div.box-wrapper div.box div.contact a {
  padding: 10px 50px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

@media only screen and (min-width: 1280px) {
  main section.trba-intro div.box-wrapper div.box div.contact a {
    font-size: 16px;
  }
}

main section.trba-intro div.box-wrapper div.box div.contact a.kakao {
  background-color: #f7e600;
  color: #3a1d1d;
}

main section.trba-intro div.box-wrapper div.box div.contact a.discord {
  background-color: #5865f2;
  color: #ffffff;
}

/* TRBA 가이드 */
main section.trba-guide {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  margin-bottom: 20px;
}

@media only screen and (min-width: 1280px) {
  main section.trba-guide {
    margin-bottom: 0;
  }
}

main section.trba-guide div.image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

@media only screen and (min-width: 1280px) {
  main section.trba-guide div.image-wrapper {
    width: var(--desktop-max-width);
  }
}
