body, html {
	font-family: 'Open Sans', sans-serif;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	color: #ffffff;
	font-weight: 400;
	width: 100% !important;
	height: 100% !important;
    margin: 0px;
    padding: 0px; /* padding도 0으로 설정 */
    background: linear-gradient(135deg, #a69fec, #958bf0);
    background-attachment: fixed;
    animation: waveAnimation 8s ease infinite;
}
.top_c{
    background: #2c3e4e00;

    padding: 19px;
}
h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left; /* 왼쪽 정렬 */
    background-image: url('img/icon2.webp');
    background-size: 34px 34px; /* 아이콘 크기 */
    background-repeat: no-repeat;
    background-position: left center; /* 텍스트 왼쪽에 아이콘 위치 */
    padding-left: 40px; /* 아이콘 옆에 여백 추가 */
}


@keyframes fadeInUp {
	from {
	  opacity: 0;
	  transform: translateY(20px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }

  /* 클래스 적용 */
  .fade-in-up {
	opacity: 0; /* 시작 시 투명도 0 */
	animation: fadeInUp 1s ease-out 0.7s forwards; /* 1초 동안 애니메이션, 1초 후 시작, 애니메이션 완료 후 상태 유지 */
  }
  .fade-in-up2 {
    opacity: 0; /* 시작 시 투명도 0 */
    animation: fadeInUp 1s ease-out 0.4s forwards; /* 1초 동안 애니메이션, 1초 후 시작, 애니메이션 완료 후 상태 유지 */
    }
    .fade-in-up3 {
      opacity: 0; /* 시작 시 투명도 0 */
      animation: fadeInUp 1s ease-out 1.8s forwards; /* 1초 동안 애니메이션, 1초 후 시작, 애니메이션 완료 후 상태 유지 */
      }
  /*quiz*/
#quiz1{
  
 
	padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 5px;
    border-radius: 0px;
    margin: 0px 0;
}
#quiz1 .section-title {
	margin-bottom: 20px;
	margin-top: 0px;
  text-align: center; 

}
.survey-section {
    background: linear-gradient(135deg, #cdebf500, #c6e1d200);

    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0px;
    padding-bottom: 20px;
    border-radius: 0px;
   
	margin-top: 0px;
	margin-bottom: 30px;

  }
  .survey-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
  }
  .progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
  }
  .progress-bar {
    width: 0;
    height: 100%;
    background-color: #64c1dd;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
  }
  .question-container {
    text-align: center;
  }
  .question-container h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
	text-align: left; 
	
  }
  .button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .survey-btn {
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 14px;
    background-color: #fff;
    color: #505050;
    cursor: pointer;
	box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
	7px 7px 20px 0px rgba(0,0,0,.1),
	4px 4px 5px 0px rgba(0,0,0,.1);
	transition: all 0.3s ease, background-color 0.1s ease;
  }

  .survey-btn:hover {
    background-color: #fff;
	box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
	7px 7px 20px 0px rgba(0,0,0,.1),
	4px 4px 5px 0px rgba(0,0,0,.1);
  }

  /* .survey-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  }
  .survey-btn.no-hover:hover {
	background-color: #fff;
	transform: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  } */

  
  .survey-btn.clicked {
	animation: clickEffect 0.5s forwards;
  }
  
  @keyframes clickEffect {
	0% {
	  background-color: #f0f0f0;
	  transform: translateY(-2px);
	  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
	}
	100% {
	  background-color: #fff;
	  transform: translateY(0);
	  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	}
  }
  .result {
    text-align: center;
	
  }
  .result h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
  }
  .result p {
    font-size: 18px;
    color: #555;
	text-align: left; 
  }
  .fade-in {
	animation: slideInLefto 1s ease forwards;
	
  }
  .fadeqq{
	animation:fadequick 0.2s ease forwards;
  }
  
  @keyframes fadeInUpDown {
	0% {
	  opacity: 0;
	  transform: translateY(50px) scale(0.9);
	}
	50% {
	  opacity: 1;
	  transform: translateY(-10px) scale(1.02);
	}
	100% {
	  opacity: 1;
	  transform: translateY(0) scale(1);
	}
  }
  @keyframes slideInRight {
	0% {
	  opacity: 0;
	  transform: translateX(90%);
	}
	
	100% {
	  opacity: 1;
	  transform: translateX(0);
	}
  }
  @keyframes slideInLeft {
	0% {
	  opacity: 0;
	  transform: translateY(40%);
	}
	
	100% {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  @keyframes fadequick {
	0% {
	  opacity: 0;
	 
	}
	
	100% {
	  opacity: 1;

	}
  }
  @keyframes growFromBottomCenter {
	0% {
	  opacity: 0;
	  transform: scale(0.1) translateY(100%);
	}
	100% {
	  opacity: 1;
	  transform: scale(1) translateY(0);
	}
  }
  @keyframes growFromBottomRight {
	0% {
	  opacity: 0;
	  transform: scale(0.1) translate(50%, 50%);
	}
	100% {
	  opacity: 1;
	  transform: scale(1) translate(0, 0);
	}
  }
  @keyframes slideInLefto {
	from {
	  transform: translateY(100%);
	  opacity: 0;
	}
	to {
	  transform: translateY(0);
	  opacity: 1;
	}
  }
/* 이미지 애니메이션 */
@keyframes growFromTopLeft {
	0% {
	  opacity: 1;
	  transform: scale(0.1);
	  transform-origin: top left;
	}
	100% {
	  opacity: 1;
	  transform: scale(1);
	  transform-origin: top left;
	}
  }
  
  /* 애니메이션 클래스 */
  .image-animate {
	animation: growFromTopLeft 0.8s ease-out forwards;
  }
  
  /* 결과 컨테이너 애니메이션 */
  @keyframes expandContainer {
	0% {
	  max-height: 0;
	  opacity: 1;
	}
	100% {
	  max-height: 1000px; /* 충분히 큰 값으로 설정 */
	  opacity: 1;
	}
  }
  
  .result2 {
	overflow: hidden;
	max-height: 0; /* 시작 시 최대 높이를 0으로 설정 */
	opacity: 0;
	animation: expandContainer 2.4s ease-out forwards; /* 부모 요소에 애니메이션 적용 */
  }
  .result2 h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
  }
  .result2 p {
    font-size: 18px;
    color: #555;
	text-align: left; 
  }
  
  
  @media (max-width: 768px) {
    .survey-section {
      padding-left: 16px;
      padding-right: 16px;
      padding-top: 0px;
      padding-bottom: 20px;
    }
    .question-container h2 {
      font-size: 16px;
    }
    .survey-btn {
      font-size: 16px;
      padding: 12px 24px;
    }
	.survey-btn:hover {
		background-color: #ffffff;
		box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
		7px 7px 20px 0px rgba(0,0,0,.1),
		4px 4px 5px 0px rgba(0,0,0,.1);
	  }
  /* 애니메이션 클래스 */
  .image-animate {
	animation: growFromTopLeft 0.6s ease-out forwards;
  }

	  .result2 {
		overflow: hidden;
		max-height: 0; /* 시작 시 최대 높이를 0으로 설정 */
		opacity: 0;
		animation: expandContainer 2.4s ease-out forwards; /* 부모 요소에 애니메이션 적용 */
	  }


    .support-message {
      background-color: #f9f9f9;
      border-left: 8px solid #007bff;
      padding: 15px 20px;
      margin-bottom: 20px;
      border-radius: 15px;
      font-family: 'Open Sans', sans-serif;
      color: #333;
      font-size: 16px;
      text-align: center;
      max-width: 600px;
 
      margin-left: 15px !important;
      
      margin-right: 15px !important;

    
    }
  }


  /*타이머*/
  .timer-container {
    color: rgb(50, 50, 50);
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    padding: 20px;
    border-radius: 80%;
    border: 8px solid rgb(255, 255, 255);
    box-shadow: inset 0 0 3px 3px rgba(50, 50, 50, 0.3), inset 0 0 1px 2px rgba(50, 50, 50, 0.2);
    
}

.timer { 
    position: relative;
    font-size: 10px;

    width: 12em;
    height: 12em;
}
.timer .line {
  width: 100%;
  height: 1px;
  top: calc(50% - 1px / 2);

  background: #000;
  position: absolute;
}

.timer .line.thick {
  width: calc(100% + .4em);
  left: calc(-.4em / 2);

  height: 3px;
  top: calc(50% - 3px / 2);
}

.timer .cover1{
  position: absolute;
  width: calc(100% - 4%);
  height: calc(100% - 4%);
  left: calc(4% / 2);
  top: calc(4% / 2);
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.fin {
  position: absolute;
  width: 1px;
  left: calc(50% - 1px / 2);

  height: calc(50% - .3em);
  top: .3em;

  background: rgb(255, 57, 50);
  z-index: 2;
  transform-origin: bottom;
}

.timer .cover2 {
  position: absolute;
  width: 18%;
  height: 18%;
  left: calc(50% - 18% / 2);
  top: calc(50% - 18% / 2);
  
  border-radius: 50%;
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 3px 3px rgba(50, 50, 50, 0.4), 0 0 1px 2px rgba(50, 50, 50, 0.3);
}

.num-box {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: calc(100% + 18%);
  left: calc(-18% / 2);
  height: 20px;
  top: calc(50% - 20px/2);
  font-weight: 600;
}

.button-container2 {
  margin-top: 30px;

    display: none;

}

.control {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #555;
  background: none;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: rgb(255, 57, 50);
}
.control:active {
  transform: scale(.96);
}
#num-container {
  display: none;
}
.time-container {
  font-size: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  color: #c52222;
  font-weight: 700;
}
.time-container .total-time {
  font-size: 20px;
  margin-top: 5px;
}
.total-time {
  display: none; /* 초기에는 숨김 */
  font-size: 20px;
  margin-top: 5px;
  color: #c52222;
  font-weight: 700;
  text-align: center; /* 중앙 정렬 */
  z-index: 3;
}

.iqsq{
  font-size: 60px;
  z-index: 3;
}
.donation-container {
  margin: 20px 0;
  text-align: center;
}

.donation-label {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}

.donation-select {
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.donation-select:hover {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.donation-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

#paypal-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

#paypal-button-container {
  display: block;
  margin: 20px auto; /* 버튼을 중앙으로 배치 */
  max-width: 300px; /* 최대 너비 설정 */
}

.support-message {
  background-color: #f9f9f9;
  border-left: 8px solid #007bff;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  font-size: 16px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;

}

.support-message p {
  margin: 0;
  line-height: 1.6;
}

.share-container {
  text-align: center;
  margin-top: 20px;
  
}

.share-button {
  background-color: #53d8ce;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: none;
}

.share-button:hover {
  background-color: #51cbc1;
  transform: scale(1.05);
}

.share-button:active {
  transform: scale(1);
}

/*물결*/

@keyframes waveAnimation {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.wave-container {
  position: fixed; /* 화면에 고정된 위치에 배치 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 모든 요소 뒤에 배치 */
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  top: 0;
  left: 0;
  transform: translateX(-50%) translateY(-50%);
  animation: wave 10s infinite linear;
}

.wave:nth-child(2) {
  background: rgba(255, 255, 255, 0.4);
  animation: wave 10s infinite linear reverse;
}

@keyframes wave {
  from {
      transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }
  to {
      transform: translateX(-50%) translateY(-50%) rotate(360deg);
  }
}

/* 기존 콘텐츠 축소 후 사라지는 애니메이션 */
.fade-out {
	animation: fadeOutAndScaleDown 0.5s forwards;
}

/* @keyframes fadeOutAndScaleDown {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(0.5);
	}
} */
@keyframes fadeOutAndScaleDown {
  0% {
      opacity: 1;
      transform: scale(1);
  }
  50% {
      opacity: 1;
      transform: scale(1.07); /* 살짝 커졌다가 */
  }
  100% {
      opacity: 0;
      transform: scale(0.5); /* 작아지면서 사라짐 */
  }
}
.star-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: star-animation 1.5s ease-out forwards;
}

@keyframes star-animation {
  0% {
      transform: translate(0, 0) scale(0);
      opacity: 1;
  }
  100% {
      transform: translate(var(--translate-x), var(--translate-y)) scale(1.5);
      opacity: 0;
  }
}


.sound-icon {
  position: absolute;
  top: 12px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-image: url('img/on.webp'); /* 초기 아이콘 이미지 */
  background-size: cover;
  background-color: transparent; /* 배경색을 투명하게 설정 */
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.sound-icon.off {
  background-image: url('img/off.webp'); /* 사운드 오프 시 아이콘 이미지 */
}

.countdown {
  font-size: 70px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  color: #00ffbb;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: fadeInOut 1s ease-in-out forwards;
  z-index: 999;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
