@font-face {
  font-family: 'MinGothic';
  src: url(fonts/MinGothic-Regular.otf) format('opentype');
}

@font-face {
  font-family: 'AGsuper';
  src: url(fonts/AGSuperBlackGothic.otf) format('opentype');
}

html, body {
  font-family: 'MinGothic';
  height: 100%;
  margin: 0;
  background: linear-gradient(
    to bottom,
    #000 0%,
    #000 10%,
    #F54927 50%,
    #000 90%,
    #000 100%
  );
  display: flex;
  flex-direction: column;
  padding-bottom: 180px; /* 버튼/정보 영역 확보 */
}

h1 {
  margin: 12px 0;
  text-align: center;
}

#toggleBox {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 20;
}

#toggleBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: yellow;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#toggleBtn:hover {
  background: #f0c000;
}

#togglePanel {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  max-width: 240px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#togglePanel p {
  margin: 0;
}

.video {
  flex: 1;
  display: flex;
  justify-content: center;   /* 캔버스 가로 중앙 */
  align-items: center;       /* 캔버스 세로 중앙 */
  position: relative;
}

canvas {  
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: 135px;      
  display: block;
}

/* ✅ NFT 교체 버튼 아래 중앙 고정 */
#changeBtn {
  position: absolute;
  bottom: 100px;               /* 텍스트와 넉넉한 간격 */
  left: 50%;                  /* 중앙 기준 */
  transform: translateX(-50%); /* 정확히 가운데로 이동 */
  padding: 10px 20px;
  background: yellow;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: monospace;
  font-size: 14px;
  z-index: 10;                /* 텍스트 위에 표시 */
}

#changeBtn:hover {
  background: #333;
}

#nftInfo {
  color: white;
  position: absolute;
  bottom: 10px;               /* 화면 하단에서 충분히 띄움 */
  left: 50%;                  /* 중앙 기준 */
  transform: translateX(-50%); /* 정확히 가운데로 이동 */
  text-align: center;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  padding: 10px 20px;
  max-width: 90%;
  word-wrap: break-word;
  line-height: 1.4;
  z-index: 1;                 /* 버튼 아래에 표시 */
}

#title{
  color: yellow;
  position: absolute;
  top: 10px;               /* 화면 하단에서 30px 띄움 */
  left: 50%;                  /* 중앙 기준 */
  transform: translateX(-50%); /* 정확히 가운데로 이동 */
  padding: 10px 20px;
}