/* font */
@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");
}

/* animation */
@keyframes rotate {
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* reset */
* {
  word-break: keep-all;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.blind {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
}

body {
  background-color: #5b2386;
  font-family: "GmarketSansMedium";
  color: #ffffff;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin: 0 auto;
}

/* Components */

#header {
  margin-top: 50px;
  margin-bottom: 50px;
}

.title {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-img {
  position: absolute;
  width: 564px;
}

.clock-img {
  width: 265px;
  height: 265px;
}

.description {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin-bottom: 100px;
}

.quotes {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}
.quotes-img {
  position: absolute;
  padding-top: 20px;
}

.sub-title {
  font-family: "OTEnjoystoriesBA";
  font-size: 36px;
  color: #f5df4d;
  margin-bottom: 50px;
}

.description-txt {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

.description-txt strong {
  font-family: "GmarketSansBold";
  font-size: 20px;
}

.contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  margin-bottom: 80px;
}

.user-input p {
  margin-bottom: 17px;
}

.user-input__time {
  margin-bottom: initial;
}

.user-input input {
  padding: 15px 20px;
  margin: 0 15px;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-family: "GmarketSansMedium";
  width: 200px;
}

.user-input input::placeholder {
  color: #babcbe;
}

/* 버튼 공통 스타일 */
button {
  display: flex;
  align-items: center;
  font-family: "GmarketSansBold";
  font-size: 20px;
  color: #5b2386;
  background-color: #fcee21;
  border-radius: 30px;
  padding: 10px 40px;
}

.contents__btn-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 90px;
}

.click-img {
  position: absolute;
  right: 20px;
  bottom: -25px;
}

/* 결과 로딩 */
.result-loading {
  display: none;
  justify-content: center;
  margin-bottom: 80px;
}

.loading-img {
  height: auto;
  animation: rotate 1.1s infinite linear;
  width: 100px;
  height: 100px;
}

.result-modal {
  display: none;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  margin-bottom: 80px;
}

.result-modal .result-txt__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
}

.result-modal strong {
  padding: 0 20px;
  font-family: "GmarketSansBold";
  font-size: 70px;
}

.result-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.result-btn-wrap #share-btn {
  background-color: #fff;
  margin-left: 20px;
}

/* 저작권 */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
  left: 0;
  bottom: 0;
}

.copyright {
  font-size: 12px;
  line-height: 1.5;
  padding: 20px 0;
  text-align: center;
}

/* 모달창 */
#msg-modal {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 800px;
  z-index: 999;
}

.msg-modal__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 600px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}
.cheerup {
  font-family: "OTEnjoystoriesBA";
  color: #5b2386;
  text-align: center;
}

.cheerup strong {
  font-size: 80px;
}

.cheerup p {
  font-size: 36px;
}

.licat-img {
  margin-bottom: 20px;
}

#close-btn {
  box-shadow: 0px 6px 16px 0px rgb(0 0 0 / 15%),
    0px 5px 16px 0px rgb(0 0 0 / 15%);
  margin-bottom: 20px;
}

#close-btn + p {
  color: #747474;
  font-size: 13px;
  text-align: center;
}
