/* 기본 공통 스타일 */


@font-face {
  font-family: 'DungGeunMo';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'Giants-Inline';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-1@1.1/Giants-Inline.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}



@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}




body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #FF498C;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: none;
  width: 100vw;
  height: 100vh;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.container:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button {
  padding: 16px 40px;
  margin-top: 30px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: 'GmarketSansMedium', sans-serif;

}

button:hover {
  transform: scale(1.05);
}

label {
  display: block;
  margin: 20px 0 10px;
  font-weight: bold;
  font-size: 24px;
}

input[type="time"], .time-select select {
  font-size: 22px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
}


.result-box {
  background: #fff;
  border-radius: 20px;
  padding: 20px 40px;
  margin: 20px auto;
  width: fit-content;
  font-size: 36px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-style: italic;
}






/* 페이지1: 첫 화면 */


.tile-deco {
  position: fixed;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0; /* 뒤로 깔리게 */
  pointer-events: none; /* 클릭 막기 (디코용일 때 필수) */
}

.tile-deco.top {
  top: 0;
}

.tile-deco.bottom {
  bottom: 0;
}


#titleBox {
  font-family: 'Giants-Inline', sans-serif;
  font-size: 42px;
  margin-bottom: 110px;
  color: black;
  background-color: white;
  padding: 20px 20px;
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 공통 스타일 */
.deco-svg {
  position: absolute;
  bottom: -15px;
  width: 80px;
  height: auto;
}

/* 왼쪽 */
.deco-left {
  left: -10%;
  transform: translateX(-50%);
}

/* 오른쪽 (좌우 반전) */
.deco-right {
  right: -10%;
  transform: translateX(50%) scaleX(-1);
}





#currentTime {
  background-color: white; /* 반투명 흰색 */
  padding: 40px 1080px;
  border-radius: 20px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px); /* 유리처럼 흐림 효과 (선택사항) */


  box-shadow: 0 0 0 20px #FF498C, /* 외부 첫번째 테두리 */
              0 0 0 40px #FFFFFF;       /* 바깥 두번째 테두리 */

  text-align: center;
  color: #black;
  margin-bottom: 40px;
  display: inline-block;
  margin-bottom: 80px;
}

.current-time-text {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 80px;
}


.help-icon {
  position: absolute;
  top: 80px;
  right: 30px;
  background-color: #fff;
  color: #333;
  font-family: 'DungGeunMo', sans-serif;
  font-weight: normal;
  font-style: normal;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  transition: transform 0.2s;
}

.help-icon:hover {
  transform: scale(1.1);
}

.tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
 
  border-radius: 6px;
  padding: 12px 20px;
  position: absolute;
  z-index: 1;
  top: 50px;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s;
  width: 300px;
  line-height: 1.4;
  text-align: left;

}

.tooltip p {
  margin: 0;
  margin-bottom: 10px;
}

.help-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}












/* 페이지2: 입력 화면 */
#page2 h1 {
  font-family: 'Giants-Inline', sans-serif;
  font-size: 40px;
  margin-bottom: 20px;
  color: #fff;
}

#page2 .nav-buttons {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
}


#page2 label {
  color: black;
}

/* 기본 버튼 스타일 */
button {
  padding: 16px 40px;
  margin-top: 30px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

/* Back 버튼 전용 스타일 */
.btn-back {
  background-color: #DEDEDE;  /* 밝은 회색 예시 */
  color: #333;
}

/* Next 버튼 전용 스타일 */
.btn-next {
  background-color: #ffffff;  /* 흰색 유지 */
  color: #000000;
}







/* 페이지3: 결과 화면 */
#page3 h1 {
  font-family: 'Giants-Inline', sans-serif;
  font-size: 40px;
  margin-bottom: 50px;
  color: #fff;
}

#page3 p {

  font-size: 24px;
  margin: 20px 0 10px;
  color: #black;
  font-weight: bold;
}

#page3 .nav-buttons {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
}


/* 기본 버튼 스타일 */
button {
  padding: 16px 40px;
  margin-top: 30px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

/* Back 버튼 전용 스타일 */
.btn-back {
  background-color: #DEDEDE;  /* 밝은 회색 예시 */
  color: #333;
}

/* Next 버튼 전용 스타일 */
.btn-next {
  background-color: #ffffff;  /* 흰색 유지 */
  color: #000000;
}













/* 페이지4: 타이머 화면 */
#page4 h2 {
  font-family: 'Giants-Inline', sans-serif;
  font-size: 58px;
  margin-bottom: 30px;
  color: #fff;
}

.circle {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle svg {
  width: 100%;
  height: 100%;
}

.time-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 58px;
  font-weight: bold;
  color: #fff;
}

#currentFastTime {
  margin-top: 20px;
  font-size: 28px;
  color: #fff;
  text-align: center;
}


#page4 .nav-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.fast-date {
  font-size: 18px;
  font-weight: normal;
  color: #fff;
}

.fast-time {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 30px;
  color: #fff;
}

.caption-text {
  font-size: 18px;
  color: #fff;
  margin-top: -20px;
  margin-bottom: 30px;
  text-align: center;
  opacity: 0.8;
}

/* Back 버튼 전용 스타일 */
.btn-back {
  background-color: #DEDEDE;  /* 밝은 회색 예시 */
  color: #333;
}

/* Next 버튼 전용 스타일 */
.btn-next {
  background-color: #ffffff;  /* 흰색 유지 */
  color: #000000;
}









/* 완료 화면 스타일 */
#page5 h1.finish-title {
  font-family: 'Giants-Inline', sans-serif;
  font-size: 50px;
  color: #fff;
  margin-bottom: 40px;
  text-align: center;
}

.finish-flag {
  width: 500px;
  height: auto;
  margin-bottom: 50px;
}


