/* 공통스타일링 */
@font-face {
  font-family: "jalnan";
  src: url("./JALNAN.TTF");
}
@font-face {
  font-family: "nanum";
  src: url("./NanumSquareEB.ttf");
}
@font-face {
  font-family: "preFont";
  src: url("./NanumSquare_acR.ttf");
}

body {
  padding-bottom: 25rem;
}

.bannerImg {
    width: 100%;
    padding: 1.5rem 0;
}
.bannerImg a {
    width: 100%;
}
.bannerImg a img {
    width: 100%;
}

.innerWrapper {
  padding: 2rem 1.5rem;
}
.homeinnerWrapper{
  padding: 0rem 1.5rem 1.5rem 1.5rem;
}
.contentHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  border-bottom: 0.2rem solid #f7f7f7;
}

.contentHeader button {
border: none;
background-color: transparent;
cursor: pointer;
margin-right: 10px;
display: flex;
align-items: center;
}
.contentHeader h1 {
text-align: center;
margin: 0;
font-size: 1.8rem;
font-weight: 700;
font-family: nanum;
}
.contentHeader img {
width: 1rem;
position: absolute;
left: 3%;
}

img {
  width: 100%
}

/* index 영역 */
.indexBackgroundImage {
  background: url(../img/index.png);
  background-size: cover;
  position: relative;
  min-height: 100vh;
  }
  .indexText {
  width: 30%;
  top: 15%;
  margin: 0 auto;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  }


/* banner 구현 */
.banner {
  padding: 2rem 1rem 3rem 1rem;
  border-radius: 1rem;
  background-color: #f8f4ea;
  position: relative;
  display: block;
  margin-bottom: 2rem;
}
.ban_tit {
  font-size: 1.4rem;
  color: #614780;
  font-family: nanum;
  margin-bottom: 1rem;
  letter-spacing: -1px;
} 
.ban_con {
  font-size: 2rem;
  color: #569ab1;
  margin-bottom: 1rem;
  font-family: jalnan;
} 
.bannerBtn {
  width: 7rem;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
}
.calculBox {
  background-color: #fcfbca;
}
.ban_coni {
  color: #736eb2;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: jalnan;
}
.ban_cocal {
  color: #fd8084;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: jalnan;
}
.calcul {
  position: absolute;
  width: 5rem;
  bottom: 0.5rem;
  right: 9rem;
  z-index: 1;
}
.coin {
  position: absolute;
  width: 8rem;
  bottom: 0.5rem;
  right: 5rem;
}
/* 홈영역 */
.backgroundcolorwrapper {
  margin: 0;
  padding: 0;
}
.homeHeader {
  padding: 0.5rem 1rem;
  background-color: #fcfbca;
  border-bottom: #f5f4d6 0.1rem solid;
}
.homeHeaderimg {
  width: 12%;
}
.homeHeaderimg img {
  width: 100%;
}
h2 {
  font-size: 1.7rem;
  font-family: nanum;
  line-height: 1.6;
  color: #9c9fd3;
}
pre {
  font-size: 1.6rem;
  font-family: preFont;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #575656;
}
.homeBG1 {
  background: url(../img/img_1.png) no-repeat;
  background-size: 10rem;
  background-position: center right;
}
.homeBG2 {
  background: url(../img/img_2.png) no-repeat;
  background-size: 10rem;
  background-position: center right;
}
.homeBG3 {
  background: url(../img/img_3.png) no-repeat;
  background-size: 10rem;
  background-position: center right;
}

/* calculator 영역 */
#wrap {
  padding: 3rem;
}
main .input_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 48%;
}
main .input_wrap .item {
  position: relative;
}
main .input_wrap .item label {
  font-size: 1.7rem;
  white-space: nowrap;
  font-weight: 600;
  color: #767474;
}
main .input_wrap .item input {
  width: 100%;
  flex-grow: 1;
  padding: 1rem;
  outline: none;
  font-size: 1.8rem;
  color: #aaabab;
  margin-top: 1rem;
  background-color: #efefef;
}
main .input_wrap .item .unit {
  position: absolute;
  top: 56%;
  right: 5%;
  font-size: 1.8rem;
  font-weight: 600;
  color: #999;
}

main #calculateBtn,
main #calc {
  width: 100%;
  font-size: 1.8rem;
  height: 85%;
  color: #fff;
  border-radius: 1rem;
  background: #9ea1d4;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
main #calculateBtn:disabled,
main #calc:disabled {
  background: #bbb;
}
.flexDiv {
  display: flex;
  justify-content: space-between;
}
.buttons {
  width: 48%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container h2 {
  font-size: 2rem;
  font-family: nanum;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #828181;
}
.violet {
  font-size: 2rem;
  font-family: nanum;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #46296d;
}
.container {
  background-color: #f9f5eb;
  padding: 3rem;
}
.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.result-item div, em {
  font-size: 1.6rem;
  color: #837f7b;
}
.result-item .violetResult {
  font-size: 2.5rem;
  color: #00004f;
  font-family: nanum;
}
.cuteBtn {
  width: 3rem;
  display: block;
  margin: 0 auto;
}