body {
    font-family: Arial, sans-serif; /* 폰트 설정 */
    display: flex; /* 플렉스 박스 사용 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    height: 100vh; /* 화면 높이 100% */
    margin: 0; /* 기본 여백 제거 */
    background-color: #f4f4f4; /* 배경색 설정 */
    overscroll-behavior: none; /* 스크롤 시 새로고침 효과 제거 */
    -webkit-user-select: none; /* 웹킷 브라우저에서 사용자 선택 제거 */
}

.logo-image {
  width: 50%;
  max-width: 362px;
  height: auto;
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Logo 이미지와 버튼 사이의 간격 */
    padding: 0; /* 부모 요소의 패딩 제거 */
}

.center-container img {
    display: inline-block; /* 이미지의 display 속성 설정 */
    margin: 5px; /* 이미지의 margin 제거 */
}

.button {
    /*width: 184px; /* 버튼의 가로 폭 설정 */
    width: 50%;
    padding: 10px 20px; /* 안쪽 여백 설정 */
    background-color: #41104d; /* 배경색 설정 */
    color: white; /* 글자색 설정 */
    border: none; /* 테두리 제거 */
    border-radius: 5px; /* 테두리 둥글게 */
    font-size: 16px; /* 글자 크기 설정 */
    cursor: pointer; /* 커서 모양 변경 */
    margin: 5px; /* 버튼의 margin 제거 */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 설정 */
    letter-spacing: 2px; /* 글자 자간 설정 */
}

.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed; /* 고정 위치 */
    top: 0; /* 상단 0 */
    left: 0; /* 좌측 0 */
    width: 100%; /* 너비 100% */
    height: 100%; /* 높이 100% */
    background: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
}

.modal-content {
    width: 310px; /* 크기를 80%로 줄임 */
    height: auto; /* 높이는 자동으로 설정 */
    background-image: url('img/modalBG.png'); /* 배경 이미지 설정 */
    background-repeat: no-repeat; /* 이미지 반복 없음 */
    background-size: cover; /* 이미지 비율 유지하며 요소를 덮도록 크기 조정 */
    background-position: center top; /* 이미지 중앙 정렬 */
    padding: 10px; /* 안쪽 여백 설정 */
    /*border: 4px solid #41104d;
    /*border-image: linear-gradient(65deg,rgb(160, 160, 160),rgb(0, 0, 0)) 5;*/
    border-radius: 10px; /* 테두리 둥글게 */
    text-align: center; /* 텍스트 중앙 정렬 */
    position: relative; /* 상대 위치 */
    /*transform: scale(0.8); /* 크기를 90%로 줄임 */
    z-index: 100;
}

.close-button {
    position: absolute; /* 절대 위치 */
    top: 10px; /* 상단 10px */
    right: 7px; /* 우측 10px */
    width: 35px; /* 너비 설정 */
    height: 35px; /* 높이 설정 */
    background: rgba(218, 71, 255, 0.25);  /* 배경 색상 */
    border: none; /* 테두리 없음 */
    font-size: 26px; /* 글자 크기 설정 */
    cursor: pointer; /* 커서 모양 변경 */
    color: #eff3ed; /* 글자색 흰색 */
    border-radius: 10px; /* 모서리를 둥글게 */
    z-index: 1400; /* z-index 설정 */
    box-sizing: border-box; /* 패딩과 테두리를 요소의 전체 크기에 포함 */
    display: flex; /* 플렉스 박스 사용 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
}

.scratch-grid {
    display: grid; /* 그리드 사용 */
    grid-template-columns: repeat(3, 1fr); /* 3열 그리드 */
    gap: 8px; /* 그리드 간격 */
    margin-top: 172px; /* 상단 여백 */
    /*border: 2px solid rgba(65, 16, 77);; /* 보더 색상 노랑 */
    border-radius: 5px; /* 모서리를 둥글게 */
    padding: 10px; /* 패딩 10px */
    background: rgba(218, 71, 255, 0.25); /* 반투명 배경 */
    z-index: 300;
}

.scratch-container {/* 각각의 스크레치 카드 */
    position: relative; /* 상대 위치 */
    width: 90px; /* 너비 100px */
    height: 90px; /* 높이 100px */
    user-select: none; /* 사용자가 스크래치 컨테이너 요소를 선택할 수 없도록 설정 */
    box-sizing: border-box; /* 테두리와 패딩을 요소의 전체 크기에 포함 */
}

.scratch-card {/* 실버커버 */
    position: absolute; /* 절대 위치 */
    top: 0; /* 상단 0 */
    left: 0; /* 좌측 0 */
    cursor: crosshair; /* 커서 모양 변경 */
    margin: 0 auto;
    border-radius: 3px; /* 모서리를 둥글게 */
    width: 90px; /* 너비 73px */
    height: 90px; /* 높이 100px */
}

.hidden-image {/* 카드이미지 */
    position: absolute; /* 절대 위치 */
    top: 0; /* 상단 0 */
    left: 0; /* 좌측 0 */
    width: 100%; /* 너비 100% */
    height: 100%; /* 높이 100% */
    border-radius: 8px; /* 모서리를 둥글게 */
    object-fit: contain; /* 이미지 크기 조정 */
    user-select: none; /* 사용자가 선택할 수 없도록 설정 */
    pointer-events: none; /* 포인터 이벤트 비활성화 */
}

.message {
    display: flex;
    text-align: center;
    justify-content: center; /* 수직 중앙 정렬 */
    color: #333;
    margin-top: 10px; /* 상단 여백 */
    font-size: 18px; /* 글자 크기 설정 */
    font-weight: bold; /* 글자 굵기 설정 */
    /*background-color: #fd6464; /* 배경색 */
    /*padding: 10px 0px; /* 안쪽 여백 설정 */
    /*border-radius: 5px; /* 테두리 둥글게 */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* 그림자 설정 */
    /*border: 2px solid black; /* 테두리 설정 */
    width: 100%; /* 가로를 부모의 폭에 맞춤 */
    /*box-sizing: border-box; /* 패딩과 테두리를 포함하여 크기 계산 */
}

.result-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0px; /* 이미지와 메시지 사이의 간격 조절 */
  }
  
.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  background-color: #f4f4f4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* 초기 스케일 0 */
  z-index: 1300;
  padding: 20px;
  border: 2px solid black;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 180px;
  height: auto;
  transition: transform 0.5s ease; /* 스케일 애니메이션 */
}

.result-container.show {
  transform: translate(-50%, -50%) scale(1); /* 스케일 1로 변경 */
}

.modal-footer {
  width: 100%;
  padding: 0px; /* 패딩 10px */
  text-align: center; /* 중앙 정렬 */
  background-color: none; /* 배경 색상 */
  margin-top: 10px;
  margin-bottom: -15px; /* 아래 여백 설정 */
}

.copyright {
    width: 100%;
    font-size: 10px; /* 글자 크기 */
    color: rgba(255, 255, 255, 0.6);
}    

#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 클릭 이벤트가 캔버스에 전달되지 않도록 함 */
    z-index: 9999; /* confetti의 z-index 설정 */
}

#emailFormContainer {
  display: none; /* 처음에는 보이지 않도록 설정 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 10001; /* 가장 위에 표시되도록 z-index 설정 */
}

#emailForm {
  display: flex;
  flex-direction: column;
}

#emailForm label {
  margin-bottom: 5px;
}

#emailForm input {
  margin-bottom: 10px;
  padding: 5px;
  font-size: 16px;
}

#emailForm button {
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff; /* 글자 색상 */
  border: none; /* 테두리 제거 */
  background-color: #50e6c5; /* 배경색 설정 */
  border-radius: 34px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 설정 */
}

input::placeholder {
    color: #999; /* placeholder 텍스트 색상 */
    font-style: italic; /* placeholder 텍스트 스타일 */
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0px; /* 이미지와 폼 사이의 간격 조절 */
  background-color: #e6e6e6; /* 배경색 설정 */
}

.reward-heading {
  text-align: center; /* 텍스트 가운데 정렬 */
  font-size: 18px; /* 폰트 크기 설정 */
  color: #333; /* 텍스트 색상 설정 */
  margin-bottom: 20px; /* 아래쪽 여백 설정 */
  margin-top: 5; /* 위쪽 여백 설정 */
  margin-bottom: 20px;
}

canvas {
  user-select: none; /* 사용자가 캔버스 요소를 선택할 수 없도록 설정 */
}
/* z-index 

10001: 이메일 폼
9999: 컨페티
1400: 닫기 버튼
1300: 결과 컨테이너(메세지 박스)
1200: 위너프레임 이미지
1250: 선수 이미지 스케일 증가 순간
200: 타이틀이미지
100: 모달 컨텐트(배경이미지 컨테이너)

*/