
/* スタートボタン */
.center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #ffffff;
  background-color: #ff7f00;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  animation: pop-animation 1s infinite alternate;
  z-index: 2;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 25px;  
}

@media screen and (min-width: 768px) {
  .center-button {
    border-radius: 40px;
    padding: 20px 40px;
    font-size: 40px;
  }
}

/* ボタンのホバー効果 */
.center-button:hover {
  background-color: #ff80009d;
  transform: translate(-50%, -50%) scale(1.1);
}

/* 終了ボタン */
.end-button {
  padding: 10px 20px;
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  background-color: #bebdbc;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease-in;
  z-index: 2;
  text-decoration: none;
}

.end-button.visible {
    opacity: 1;
}

/* もう一度見るボタン */
#retry-button {
  padding: 10px 20px;
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  background-color: #e9aa6b;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease-in;
  z-index: 2;
  text-decoration: none;
}

#retry-button.visible {
  opacity: 1;
}

#end-button-area {
  margin-top: 1.5rem;

}

@keyframes fadeup {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#result-button {
  font-size: 30px;
  color: #ffffff;
  background-color: #ea553a;
  padding: 20px 20px;
  border-radius: 30px;
}

#result-button:hover {
  background-color: #ea543aad;
}

/* ボタンのアニメーション */
@keyframes pop-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* コンテナのホバー効果 */
.container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 結果の文字 */
#prize-name {
  font-size: 50px;
  font-weight: bold;
  color: var(--prize-color-string);
  animation: fadein 3.5s;
  animation-fill-mode: forwards;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Three.jsのキャンバスを全画面に表示 */
#three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* 背景画像の上に配置 */
  pointer-events: none;
  /* マウスイベントを透過 */
}

/* 背景のGIF画像 */
#exec-background,
.result-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  /* 最背面に配置 */
}

/* #look内の画像 */
#look .responsive-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  /* 背景として配置 */
}

/* ボタンを前面に表示 */
#look .center-button {
  z-index: 3;
}