@font-face {
  font-family: "OTEnjoystoriesBA";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/OTEnjoystoriesBA.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GmarketSansBold";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 400;
  src: url("https://fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.woff2")
      format("woff2"),
    url("https://fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.woff")
      format("woff"),
    url("https://fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.otf")
      format("opentype");
}

/* 기본 스타일 */
body {
  background-color: #5b2386;
  text-align: center;
  padding: 5rem;
  height: 100%;
}

/* 버튼 호버 효과 */
button:hover {
  cursor: pointer;
}

/* 헤더 스타일 */
#header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20rem;
}

.headerImgContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16rem;
  height: 100%;
  background: url(../img/clock.png) no-repeat center;
  background-size: contain;
}

.headerImg {
  height: auto;
  width: 35rem;
}

/* 메인 컨텐츠 스타일 */
#main {
  padding-top: 2rem;
  display: flex;
  flex-flow: column wrap;
}

/* 첫 번째 텍스트 스타일 */
.text1 {
  font-family: "OTEnjoystoriesBA";
  font-size: 2.3rem;
  color: #fcee21;
}

/* 인용문 스타일 */
.quotesContainer {
  margin: 8rem auto 0 auto;
  max-width: 32rem;
}

.quotesContainer p {
  line-height: 1.5;
}

.quotesImgWrapper {
  background: url(../img/quotes.png) no-repeat center;
  background-size: contain;
}

.quotesText {
  color: white;
  font-size: 1.3rem;
}

.quotesText strong {
  font-weight: 800;
  font-size: 1.5rem;
}

/* 입력 폼 스타일 */
.inputForm {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  margin-top: 4rem;
}

.inputContainer p {
  font-size: 1.3rem;
  line-height: 3;
  display: flex;
  align-items: center;
  color: white;
  flex-wrap: wrap;
  justify-content: center;
}

.inputContainer input {
  height: 3rem;
  width: 12rem;
  margin: 0 0.5rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
}

.inputContainer input::placeholder {
  color: #babcbe;
}

.submitBtnContainer {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  height: 6rem;
}

.submitBtn {
  border-radius: 56px;
  border: none;
  font-size: 1.5rem;
  padding: 1.3rem 3rem;
  background-color: #fcee21;
  color: #5b2386;
  font-weight: 700;
}

.clickImg {
  align-self: flex-end;
}

/* 모달 스타일 */
.cheerModal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  align-content: center;
}

.cheerModal.on {
  display: block;
}

.modalPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40rem;
  width: 40rem;
  background-color: white;
  border-radius: 2rem;
  padding: 5rem;
  align-content: center;
}

.cheerText1,
.cheerText2 {
  font-weight: 700;
  font-family: "OTEnjoystoriesBA";
  line-height: 1.3;
  color: #5b2386;
}

.cheerText1 {
  font-size: 6rem;
}
.cheerText1::after {
  content: "♥♥♥";
}

.cheerText2 {
  font-size: 2.5rem;
}

.closeBtn {
  border-radius: 56px;
  color: #5b2386;
  background-color: #fcee21;
  font-size: 1.3rem;
  padding: 1.3rem 3rem;
  margin-top: 3rem;
  text-align: center;
}

/* 결과 표시 스타일 */
.formResult {
  margin-top: 2rem;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}

.formResult p {
  font-size: 1.3rem;
  line-height: 1.3;
  color: white;
  word-break: keep-all;
}

.formResult strong {
  font-weight: 700;
  font-size: 4rem;
  margin: 0 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* 모달 및 공유 버튼 스타일 */
.mainBtnWrapper {
  margin: 3rem 0;
}

.modalBtn,
.shareBtn {
  border: none;
  border-radius: 56px;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.3rem 3rem;
}

.modalBtn {
  color: #5b2386;
  margin-right: 1rem;
  background-color: #fcee21;
}

.shareBtn {
  color: #5b2386;
  background-color: white;
}

/* 푸터 스타일 */
#footer {
  word-break: break-all;
}

.footerText {
  margin-top: 1rem;
  white-space: pre-line;
  font-size: 0.7rem;
  color: white;
}

/* 미디어 쿼리 */
@media (max-width: 360px) {
  body {
    padding: 1rem;
  }

  /* 헤더 스타일 */
  #header {
    height: 10rem;
  }

  .headerImgContainer {
    width: 8rem;
    background-size: contain;
  }

  .headerImg {
    width: 18rem;
  }

  /* 메인 스타일 */
  .text1 {
    font-size: 1.3rem;
  }

  .quotesContainer {
    margin-top: 4rem;
    width: 20rem;
  }

  .quotesImgWrapper {
    background-position: center;
  }

  .quotesText {
    font-size: 1rem;
    line-height: 2;
  }

  .inputForm {
    padding: 0 0.5rem;
  }

  .inputContainer p {
    font-size: 0.8rem;
  }

  .inputContainer input {
    height: 2rem;
    width: 10rem;
    font-size: 1rem;
  }

  .submitBtn {
    font-size: 1rem;
    border-radius: 13px;
    word-break: keep-all;
    padding: 1rem 2rem;
    margin: auto 1rem;
  }

  .clickImg {
    width: 2.6rem;
  }

  .formResult > strong {
    font-size: 1.5rem;
  }

  .formResult p {
    font-size: 0.8rem;
  }

  .formResult strong {
    font-size: 1.3rem;
    margin: 0 0.2rem;
  }

  .modalBtn,
  .shareBtn {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
  }

  /* 모달 스타일 */
  .modalPopup {
    height: 28rem;
    width: 15rem;
    padding: 1rem 3rem;
    margin-bottom: 2rem;
  }

  .cheerText1,
  .cheerText2 {
    line-height: 1;
  }

  .cheerText1 {
    font-size: 4rem;
  }
  .cheerText1::after {
    content: "";
  }

  .cheerText2 {
    font-size: 2.3rem;
  }

  .closeBtn {
    border-radius: 13px;
    font-size: 0.8rem;
    padding: 1rem 2rem;
    margin: 1rem 1rem;
    word-break: keep-all;
  }

  .closeBtn span {
    display: block;
  }

  #footer {
    margin-top: 3rem;
  }

  /* 푸터 스타일 */
  .footerText {
    line-height: 1.3;
    font-size: 0.6rem;
    opacity: 0.7;
  }
}
