* {
  box-sizing: border-box;
}
a {
  all: unset;
  color: #000000; /* 원하는 색상 코드로 변경 */
  text-decoration: none;
}

section.share > * {
  flex-shrink: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  font-family: sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

section.share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  flex-direction: row; /* 디폴트는 row */
  text-align: center;
}

section.share button {
    width: 30%;
    height: 40px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #4f3104;
    background-color: orange;
    border-width: 0px;
    border-radius: 10px;
}

@media screen and (max-width: 786px) {
  section.share {
    flex-direction: column;
    padding-left: 36px;
    padding-right: 36px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  section.share button {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #4f3104;
    background-color: orange;
    border-width: 0px;
    border-radius: 10px;
  }

  /* 마지막 버튼은 margin-bottom 제거 */
  section.share button:last-child {
    margin-bottom: 0;
  }
}

section.purchase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

section.purchase button {
  font-size: 20px;
  padding: 16px 32px;
  margin: 50px 0;
  background-color: black;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  text-align: center;
}
/* purchase button  */
.cta-button:hover {
  background-color: #222;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20 0 20 px;
}

#image {
  width: 10vw;
  height: 10vw;
  background-image: url('image/jesus.jpg');
  background-size: cover;
  background-position: left;
  border-radius: 12px;
  min-width: 100px; /* 최소 너비 설정 */
  min-height: 100px; /* 최소 높이 설정 */
  left: 0;
  top: 0;
  margin-bottom: 20px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center; /* 중앙 정렬 */
  text-align: center; /* 텍스트 중앙 정렬 */
}

h1 {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 600;
  color: rgb(178, 172, 0);
}

h2 {
  font-size: 1.5rem;
  color: #333;
}


#playButton {
  z-index: 10;
  min-width: 180px;
  padding: 20px 40px;
  font-size: 1.5rem;
  border: none;
  border-radius: 12px;
  background-color: #c0bd04;
  color: white;
  cursor: pointer;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  margin-top: 20px; /* 버튼과 텍스트 간 간격 */
}

.rainbow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: linear-gradient(130deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400% 400%;
  animation: none;
  mix-blend-mode: screen;
  transition: opacity 0.6s ease;
  border-radius: 0;
}

#playButton:active {
  background-color: #8e673e;
  transform: translateY(4px);
}

#playButton:hover {
  transform: scale(1.05);
}

.description {
  white-space: pre-line;
  font-size: 1rem;
  color: #333;
  margin: 20px; /* 텍스트와 버튼 간 간격 */
}

.cta-headline {
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #111;
}

.gif-anim {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: none;
  pointer-events: none;
}

#image-container {
  position: fixed; /* 화면 상단에 고정 */
  top: 50%; /* 화면 세로 중앙 */
  left: 50%; /* 화면 가로 중앙 */
  transform: translate(-50%, -50%);
  z-index: 100; 
  background-color: rgba(255, 255, 255, 0.9); 
  padding: 20px; 
  border-radius: 10px;
}

#image {
  width: 150px; /* 이미지 크기 조정 */
  height: auto;
  border-radius: 10px;
}

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

@keyframes fadeOut {
  0% { opacity: 1; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
