@font-face {
  font-family: "SB Aggro Light";
  src: url("./fonts/SB 어그로 L.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "SB Aggro Medium";
  src: url("./fonts/SB 어그로 M.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "SB Aggro Bold";
  src: url("./fonts/SB 어그로 B.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

.sb-medium {
  font-family: "SB Aggro Medium", sans-serif;
}
.sb-light {
  font-family: "SB Aggro Light", sans-serif;
}
.sb-bold {
  font-family: "SB Aggro Bold", sans-serif;
}
.white {
  color: #ffffff;
}
.orange {
  color: #f28500;
}
.purple {
  color: #a970ff;
}
.bottom-line {
  display: inline-block; /* 글자 길이에 맞게 배경 제한 */
  position: relative;
  z-index: 999;
}
.bottom-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 100%;
  height: 1.3rem; /* 언더라인 두께 */
  background-color: rgba(255, 255, 255, 0.6); /* 반투명 흰색 */
}
.bottom-line-black {
  display: inline-block; /* 글자 길이에 맞게 배경 제한 */
  position: relative;
  z-index: 999;
}
.bottom-line-black::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 100%;
  height: 1.2rem; /* 언더라인 두께 */
  background-color: rgba(51, 51, 51, 0.6); /* 반투명 흰색 */
}
html {
  font-size: 10px;
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* 가로 스크롤 제거 */
}

body {
  font-family: "Pretendard", sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* 가로 스크롤 제거 */
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0px #ff7f00, 0 0 10px #ff7f00;
  }
  50% {
    box-shadow: 0 0 5px #ffae42, 0 0 25px #ff7f00;
  }
  100% {
    box-shadow: 0 0 0px #ff7f00, 0 0 10px #ff7f00;
  }
}
p {
  color: #333;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #001f3f; /* 진한 블루톤 배경 */
  z-index: -1;
}

/* 🔥 하단 TOP 버튼 스타일 */
.top-button {
  position: fixed;
  bottom: 0rem; /* 하단 여백 (20px) */
  background: white;
  width: 75rem;
  height: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem; /* 글자 크기 */
  cursor: pointer;
  box-shadow: 0.7rem 0rem 1rem rgba(0, 0, 0, 0.4);
  visibility: hidden;
  z-index: 3000;
  user-select: none;
}

/* 🔥 버튼이 나타나는 상태 */
.top-button.show {
  opacity: 1;
  visibility: visible;
}

/* 마우스 올렸을 때 */
.top-button:hover {
  color: #ff7f00;
}

section {
  position: relative;
  width: 75rem;
  /* 부드러운 퍼플 네이비 */
  box-shadow: 8px 8px 18px rgba(80, 40, 120, 0.5);
  overflow: hidden;
}

nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 75rem;
  height: 8rem;
  top: -14rem; /* 처음에는 화면 위로 숨김 */
  background-color: #fff;
  z-index: 3000;
  /* 부드러운 퍼플 네이비 */
  box-shadow: 8px 8px 18px rgba(80, 40, 120, 0.5);
  animation: glow 2s infinite alternate;
}
nav img {
  position: absolute;
  width: 5.5rem;
  top: 0.7rem;
  left: 7rem;
}
nav h1 {
  font-size: 3rem;
  color: #272727;
}
.user-text {
  position: absolute;
  top: 0rem;
  right: 5rem;
  color: #444444;
  font-size: 1.5rem;
}
.login {
  position: absolute;
  top: 2.4rem;
  right: 5.5rem;
  font-size: 1.5rem;
  color: white;
  padding: 0.5rem 2rem;
  background-color: #ff7f00;
  border-radius: 4rem;
  text-decoration: none;
}
.logout {
  position: absolute;
  top: 3.8rem;
  right: 5.5rem;
  font-size: 1.5rem;
  color: white;
  padding: 0.5rem 2rem;
  background-color: #ff7f00;
  border-radius: 4rem;
  text-decoration: none;
}
.logout:hover {
  background-color: #ffae42;
}
.logo-two {
  top: 1rem;
  left: 6.5rem;
  width: 6.5rem;
  position: absolute;
  z-index: 1000;
  filter: drop-shadow(2px 1px 1px rgba(61, 61, 61, 0.9));
}

/* 첫 번째 섹션 스타일 */
.dealer1 {
  width: 100%;
  height: 110rem;
  background-image: url(./images/나는딜러다\ 메인\ 이미지.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
}
.dealer1 h1 {
  text-align: center;
  position: absolute;
  top: 9.5rem;
  font-size: 6.5rem;
  color: aliceblue;
  text-shadow: 8px 8px 18px rgba(80, 40, 120, 0.5);
  animation: float 3s ease-in-out infinite;
  user-select: none;
}

/* 두 번째 섹션 스타일 */
.dealer2 {
  position: relative;
  width: 100%;
  height: 170rem;
  background-image: url(./images/나는\ 딜러다\ 이미지\ 1.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

.dealer2-text {
  position: absolute;
  top: 14.5rem;
  left: 7rem;
}
.dealer2-text p {
  color: #ffffff;
  font-size: 4rem;
}
.size-up {
  font-size: 4.5rem !important;
}

.dealer2-text2 {
  position: absolute;
  top: 85.5rem;
  left: 9.5rem;
}

.dealer2-text2 p {
  color: #ffffff;
  font-size: 4.7rem;
  text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.5);
}
.size-up2 {
  font-size: 5.3rem !important;
}

/* 자동차 이미지 */
.img-car {
  width: 70rem;
  position: absolute;
  top: 5rem;
  left: 30rem;
  transform: translate(200px, 150px); /* 처음엔 아래쪽에 위치 */
  transition: opacity 0.8s ease-out, transform 1s ease-out;
}
.img-car .show {
  opacity: 1;
  transform: translateY(0); /* 원래 자리로 이동 */
}
.img-car .hide {
  opacity: 0;
  transform: translate(200px, 150px); /* 다시 아래로 사라지게 */
}

/* 딜러킹 이미지 애니메이션 */
#dealer-king {
  width: 75rem;
  height: 75rem;
  bottom: 5rem;
  position: absolute; /* 요소 위치 조정 */
  right: -25rem; /* 시작 위치: 화면 오른쪽 밖 */
  opacity: 0; /* 처음에는 안 보이게 */
  transform: translateX(100px); /* 오른쪽에서 등장할 준비 */
  transition: all 1.2s ease-in-out; /* 부드럽게 등장! */
  z-index: 1000;
}

#dealer-king.show {
  opacity: 1; /* 보이게 */
  transform: translateX(0); /* 원래 위치로 */
}

/* 세 번째 섹션 스타일 */
.dealer3 {
  background-image: url(./images/나는\ 딜러다\ 이미지\ 2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  width: 100%;
  height: 240rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}
.dealer3-text {
  height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  top: 12rem;
  left: 30rem;
  font-size: 5.5rem;
  text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.5);
}
.dealer3-text p {
  margin: 1rem;
}

.car-manager {
  position: absolute;
  top: 50rem;

  width: 75rem;
}

.dealer3-image1 {
  width: 28rem;
  position: absolute;
  top: 15rem;
  left: 2rem;
  opacity: 0; /* 처음엔 안 보이게 설정 */
  transform: translate(-100px, -70px); /* 왼쪽 위로 이동 */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  animation: float 3s ease-in-out infinite;
}

.dealer3-image1.show {
  opacity: 1;
  transform: translate(0, 0); /* 원래 자리로 이동 */
  top: 15rem;
  left: 2rem;
}

.dealer3-image1.hide {
  opacity: 0;
  transform: translate(-100px, -70px); /* 다시 왼쪽 위로 사라짐 */
}

.dealer3-text2 {
  position: absolute;
  top: 155rem;
  left: 14rem;
  font-size: 2.5rem;
}
.dealer3-text2 p {
  color: #333;
}

.dealer3-image2 {
  width: 50rem;
  position: absolute;
  top: 105rem;
  left: 13rem;
}

.dealer3-text3 {
  position: absolute;
  top: 145rem;
  left: 21rem;
  font-size: 1.5rem;
  color: #666;
}

/* 네 번째 섹션 스타일 */

.dealer4 {
  background-image: url(./images/나는\ 딜러다\ 이미지\ 3.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 180rem;
  position: relative;
  overflow: hidden;
}

.dealer4 img {
  position: absolute;
  top: 4rem;
  width: 55rem;
  left: 20rem;
}
.dealer4-text {
  position: absolute;
  top: 45rem;
  font-size: 6rem;
  left: 14rem;
  text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.5);
}
.dealer4-text2 {
  position: absolute;
  top: 65rem;
  font-size: 3rem;
  left: 11rem;
}
.size-up3 {
  font-size: 3.5rem;
}

.dealer4-text2 span {
  font-size: 3.8rem;
}

/* 다섯 번째 섹션 스타일 */

.dealer5 {
  position: relative;
  background-image: url(./images/나는\ 딜러다\ 이미지\ 4.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 160rem;
  overflow: hidden;
}

.dealer5 img:first-of-type {
  position: absolute;
  width: 35rem;
  top: 115rem;
  right: 3rem;
}
.dealer5 img:last-of-type {
  position: absolute;
  width: 32rem;
  top: 113rem;
  left: 3rem;
}
.dealer5-text {
  position: absolute;
  top: 41rem;
  left: 19rem;
  font-size: 6rem;
  text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.5);
}
.dealer5-text2 {
  position: absolute;
  top: 60rem;
  left: 7rem;
  font-size: 3rem;
}
.dealer5-text2 span {
  font-size: 3.5rem;
}

/* 회원 가입 말풍선 */
.speech-bubble {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background: #007bff;
  padding: 1rem 1rem;
  border-radius: 1rem;
  font-size: 1.8rem;
  font-weight: bold;
  width: 25rem;
  height: 5rem;
  text-align: center;
  bottom: 37rem;
  left: 41rem;
  z-index: 999;
  animation: float 3s ease-in-out infinite;
  user-select: none;
}
.speech-bubble p {
  color: white;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-width: 1.5rem;
  border-style: solid;
  border-color: #007bff transparent transparent transparent;
}
.speech-bubble span {
  font-size: 2rem;
}

/* 견적 내기 */
.estimate {
  left: 6.5rem;
  bottom: 9rem;
}

/* 애니메이션 왼쪽 - 오른쪽 */
.slide-right,
.slide-left {
  opacity: 0; /* 보이지 않게 */
  transition: all 1.2s ease-in-out; /* 부드러운 애니메이션 */
}

.slide-right {
  transform: translateX(100px); /* 오른쪽 바깥에서 시작 */
}

.slide-left {
  transform: translateX(-100px); /* 왼쪽 바깥에서 시작 */
}

.show {
  opacity: 1;
  transform: translateX(0); /* 원래 위치로 */
}

/* 애니메이션 제자리 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 0.5s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* 확대 효과 */
.zoom {
  transition: transform 0.5s ease-out; /* 부드러운 확대 효과 */
}

.zoom:hover {
  transform: scale(1.1); /* 마우스 올리면 10% 확대 */
}

.zoom-low {
  transition: transform 0.5s ease-out; /* 부드러운 확대 효과 */
}

.zoom-low:hover {
  transform: scale(1.03); /* 마우스 올리면 10% 확대 */
}

/* 마우스 효과 */
.custom-cursor {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 4000;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 푸터 스타일 */

.footer {
  width: 73rem;
  height: 42rem;
  background: #2b2b2b;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
}
.footer-container p {
  color: #e6e6e6;
  font-size: 1.6rem;
}

.footer-logo,
.footer-info,
.footer-contact {
  flex: 1;
  min-width: 250px;
  margin: 0.5rem 0;
}

.footer h2 {
  color: #f28500; /* 주황색 포인트 */
}

.footer a {
  color: #a970ff; /* 보라색 포인트 */
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 800px) {
  html {
    font-size: 1.31vw;
  }
  nav {
    width: 100%;
    height: 13rem;
    box-shadow: none;
    animation: glow 2s infinite alternate;
  }
  nav img {
    width: 8rem;
  }
  section {
    box-shadow: none;
  }
  .user-text {
    top: 1rem;
    right: 4rem;
    font-size: 2rem;
  }
  .login {
    top: 4.4rem;
    right: 5.5rem;
    font-size: 2rem;
  }
  .logout {
    top: 5.8rem;
    right: 5.5rem;
    font-size: 2rem;
  }
}
@media (max-width: 630px) {
  .top-button {
    height: 8rem;
    font-size: 2rem;
  }
  .footer {
    height: 46rem;
  }

  .footer-container p {
    font-size: 1.7rem;
  }
}
@media (max-width: 500px) {
  .top-button {
    height: 10rem;
    font-size: 2.5rem;
  }
  @keyframes glow {
    0% {
      box-shadow: 0 0 0px #ff7f00, 0 0 25px #ff7f00;
    }
    50% {
      box-shadow: 0 0 5px #ffae42, 0 0 65px #ff7f00;
    }
    100% {
      box-shadow: 0 0 0px #ff7f00, 0 0 25px #ff7f00;
    }
  }
  .footer {
    height: 57rem;
  }

  .footer-container p {
    font-size: 2.2rem;
  }
}
@media (max-width: 450px) {
  .footer {
    height: 64rem;
  }
  .footer-container h2 {
    font-size: 2.9rem;
  }
  .footer-container p {
    font-size: 2.5rem;
  }
}
