/* ending.css - 엔딩 화면 스타일 업데이트 */

/* 엔딩 화면 컨테이너 */
#ending-container {
  background-color: #f5f5f5;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  font-family: 'Roboto', sans-serif;
  overflow-y: auto;
  padding: 20px 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 인증서 컨테이너 */
#certificate-container {
  position: relative;
  width: 90%;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 인증서 배경 이미지 */
#certificate-bg {
  width: 100%;
  display: block;
}

/* 사용자 이미지/비디오 컨테이너 */
#user-image-container {
  position: absolute;
  top: 138px;
  left: 65px;
  width: calc(100% - 130px);
  height: calc(100% - 360px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 사용자 이미지/비디오 */
#user-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 비디오 요소에 대한 추가 스타일 */
.user-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

/* 영상 보러 가기 버튼 */
#share-button {
  width: 80%;
  max-width: 350px;
  margin-top: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

#share-button:hover {
  transform: scale(1.05);
}

#share-button:active {
  transform: scale(0.95);
}

/* 비디오 컨테이너 */
#video-container {
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
}

/* 비디오 요소 */
#ending-video {
  width: 100%;
  display: block;
}

/* 버튼 스타일 */
.ending-container button {
  padding: 10px 30px;
  background: #3d3d3d;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  margin: 10px 5px;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
