/* 룰렛 이벤트 스타일 */
@font-face {
  font-family: 'RiaSans-ExtraBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-1@1.0/RiaSans-ExtraBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'RiaSans-ExtraBold', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.roulette-wrapper {
  position: relative;
  width: 500px;
  margin: 0 auto;
}

img {
  display: block;         /* 이미지가 inline-block 상태가 아니라 block처럼 동작하게 설정 */
  width: 100%;            /* 기본적으로 이미지의 너비를 100%로 설정하여 컨테이너에 맞게 크기 조정 */
  height: auto;           /* 이미지의 비율을 유지하면서 높이를 자동으로 설정 */
  border: 0;              /* 이미지의 기본 테두리 제거 */
  margin: 0;              /* 이미지의 기본 여백 제거 */
  padding: 0;             /* 이미지의 기본 패딩 제거 */
  max-width: 100%;        /* 이미지가 부모 요소를 초과하지 않도록 설정 */
  object-fit: contain;    /* 이미지가 부모 영역에 맞게 비율 유지하며 크기 조정 */
}

.pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 40px;
  z-index: 10;
  background-image: url(./img/wheel-pointer.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.outermost-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
}

#spinBtn {
  background: none;
  padding: 0;
  margin: auto;
  width: 200px;
  display: block;
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
}

#spinBtn:hover {
  transform: scale(1.05);
}

#spinBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#remaining_attempts {
  margin: 10px 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.next-available {
  margin: 10px 0;
  font-size: 1rem;
  color: #666;
  background-color: #eee;
  padding: 8px 12px;
  border-radius: 5px;
}

.log {
  border: 1px solid #333333;
  min-height: 250px;
  padding: 0 20px;
  width: 100%;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.log h3 {
  margin-top: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.log h4 {
  margin: 10px 0;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  font-size: 0.9rem;
  word-break: break-all;
}

.log h4:last-child {
  border-bottom: none;
}

/* 개발 모드 표시 */
.dev-mode-notice {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .roulette-wrapper {
    width: 90%;
    max-width: 400px;
  }
  
  .outermost-container {
    width: 90%;
  }
  
  #spinBtn {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .roulette-wrapper {
    width: 95%;
    max-width: 300px;
  }
  
  #remaining_attempts {
    font-size: 1.2rem;
  }
}