/* html{
    font-size: 32px;
} */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

@font-face {
  font-family: "Cafe24Ssurround";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
}

.main-container {
  width: 100vw;
  min-width: 1200px;
}

/* 네비바 */

html {
  width: 100vw;
  font-size: 16px;
}

nav {
  background-color: #ffffff;
  padding: 2rem 3rem;
  /* display: flex; */
}

nav .contents {
  width: 100%;
  max-width: 1400px;
  background-color: #ffffff;
  margin: auto;
  display: flex;
  margin: 0 auto;
}

nav .logo {
  margin-right: 10px;
}

nav h4 {
  font-size: 1.3rem;
  font-weight: 600;
}

nav li {
  text-decoration: none;
  list-style: none;
  margin-left: 2rem;
  color: gray;
}

nav li:hover {
  cursor: pointer;
}

/* 배너 */

.banner {
  width: 100vw;
  background-color: #ffffff;
  /* background-image: url('./images/banner-background.jpg') */
}

.banner .content {
  /* width: 1400px; */
  margin: 0 auto;
  max-width: 1500px;
  max-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner .text-box {
  margin: 0 0 0 5rem;
  min-width: 420px;
}

.banner h1 {
  font-size: 4.2rem;
  font-weight: 700;
  font-family: "Cafe24Ssurround";
}

.banner h4 {
  font-size: 1.3rem;
  margin-left: 0.5rem;
  color: #4b4b4b;
}

.banner .img-box {
  /* padding: 3rem; */
  overflow: hidden;
  position: relative;
}

.banner .img-box .banner-icon {
  position: absolute;
  width: 800px;
  left: 140px;
  top: 80px;
}

.banner img {
  display: block;
  width: 1000px;
  margin: auto;
}

.banner button {
  padding: 1rem 2.2rem;
  border-radius: 20px;
  background-color: #fecb54;
  color: #2d2d2d;
  font-weight: bold;
  border: 0px solid black;
}

/* 인트로 */

.intro {
  margin-top: 15rem !important;
}

.intro .text-box {
  margin-bottom: 2rem !important;
}

.intro .text-box h2 {
  z-index: 10;
  position: relative;
}

.intro .text-box h5:nth-child(2) {
  padding-top: 1rem;
}

.intro .text-box h2::before {
  position: absolute;
  top: 35px;
  /* left: 330px; */
  width: 40rem;
  height: 1.5rem;
  background-color: #fecb54;
  content: "";
  z-index: -1;
}

.intro-box {
  background-color: #f5f5f5;
  max-width: 1000px;
  /* height: 350px; */
  margin: 0rem auto;
  border-radius: 30px;
  display: flex;
  /* flex-wrap: wrap; */
  padding: 3rem 0rem;
  justify-content: space-evenly;
  align-items: center;
}

.intro-box .items {
  padding: 0rem 6rem;
}

.intro-box .items img {
  width: 90px;
  margin-bottom: 30px;
}

.intro-box .divider {
  height: 250px;
  background-color: rgb(203, 203, 203);
  width: 1.5px;
  border-radius: 300px;
}

.intro-box h3 {
  font-weight: 700;
  text-align: center;
  line-height: 140%;
}

/* 기능소개카드 */

.card {
  margin-top: 10rem;
  border: 0px solid white !important;
}

.card > .text-box {
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
}

.card > .text-box > h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card > .text-box > h5 {
  color: rgb(124, 124, 124);
}

.card > .text-box > p {
  color: gray;
  margin-bottom: 0.4rem !important;
}

.card img {
  display: block;
  margin: auto;
}

/* 순서대로 기능소개 목업 */
.card .img-home {
  width: 600px;
}

.card .img-ai {
  width: 450px;
}

.card .img-analysis {
  width: 600px;
}

.card .img-simulation {
  width: 500px;
}

.card .img-smarthome {
  width: 300px;
}

/* 다운로드 파트 */

.download {
  margin-bottom: 12rem;
}

.download h4 {
  font-weight: 600;
  font-size: 1.5rem;
  color: rgb(124, 124, 124);
}

.download .button-group {
  margin: auto;
  display: flex;
}

.download > .button-group .button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 20px;
  background-color: black;
  color: white;
  border: 0px solid black;
  display: flex;
  margin: 0 1rem;
  justify-self: center;
  align-items: center;
}

.download .button img {
  width: 30px;
  margin-right: 15px;
}

.download .button p {
  margin: 0;
}

.download .button:hover {
  cursor: pointer;
  color: black;
  background-color: #fecb54;
}

/* 맨위로 버튼 */

.top-button {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 20px;

  margin: auto;
  border: 0px solid white;
  color: gray;
  margin-top: 6rem;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* 푸터 */

footer {
  background-color: #f1f1f1;
  padding: 2rem;
  font-size: 0.9rem;
  color: rgb(124, 124, 124);
  margin-top: 6rem;
}

footer p {
  margin: 0;
  margin-bottom: 0.7rem;
}

/* 이미지블러 */
.blur {
  filter: blur(2px);
}

/* 반응형 */
@media screen and (max-width: 768px) {

  html, body {
    font-size: 12px;
    min-width: 320px;
    /* overflow-x: hidden; */
  }

  nav {
    padding: 2rem 0rem;
  }

  .main-container {
    width: 100vw;
    min-width: 320px;
    padding: 0 20px;
  }

  .banner {
    margin-top: 50px;
  }

  .banner .content {
    /* width: 90%; */
    width: calc(100vw - 40px);
    text-align: center;
    flex-wrap: wrap;
    max-width: auto;
    max-height: auto;
    margin: 0;
  }

  .banner .text-box {
    margin: 0;
    min-width: 180px;
  }

  .banner h1 {
    font-size: 3.5rem;
  }

  .banner p {
    font-size: 1.1rem;
  }

  .banner .banner-img{
    display: block;
    width: 95%;
    margin: 0;
    overflow: hidden;
  }

  .banner .img-box .banner-icon {
    position: absolute;
    max-width: 85%;
    left: 10vw;
    top: 00px;
  }

  .banner button {
    font-size: 1.2rem;
  }

  .intro .text-box h2::before {
    position: absolute;
    top: 25px;
    /* left: 330px; */
    width: 20rem;
    height: 1.5rem;
    background-color: #f8dc5f;
    content: "";
    z-index: -1;
  }

  .intro {
    margin-top: 10rem !important;
  }

  .intro-box .items {
    padding: 0rem 7vw;
  }

  .intro-box .items h3 {
    font-size: 1.2rem;
  }

  .intro-box .items img {
    width: 10vw;
    margin-bottom: 30px;
  }

  .intro-box .divider {
    height: 100px;
  }

  .card .img-home {
    width: 70vw;
  }

  .card .img-ai {
    width: 70vw;
  }

  .card .img-analysis {
    width: 70vw;
  }

  .card .img-simulation {
    width: 70vw;
  }

  .card .img-smarthome {
    width: 30vw;
  }

  .download .button p {
    margin: 0;
  }
}
