
body {
  background-color: #f8f8e6;
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

button#gachaBtn {
  background-color: #8cbae0;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px;
}

button#shareBtn {
  background-color: #d486d1;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 15px;
}

#hamchiraLink a {
  display: inline-block;
  background-color: #d486d1;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 10px;
  margin: 10px auto;
  font-weight: bold;
}

#whatcoming {
  font-size: 1.2em;
  font-weight: bold;
  margin: 20px 0;
}

#result {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px;
}

#hamImage {
  max-width: 300px;
  margin: 10px auto;
  display: block;
}

#attributeIcon img {
  width: 48px;
  height: auto;
  margin: 10px auto;
}

#youtubeLink a {
  display: inline-block;
  background-color: #ffcccc;
  padding: 6px 12px;
  margin-top: 10px;
  border-radius: 6px;
  color: #000;
  text-decoration: none;
}

#attributeGuide {
  margin-top: 30px;
}

#attributeGuide .icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#attributeGuide .icons div {
  display: flex;
  align-items: center;
  gap: 6px;
}

#attributeGuide img {
  width: 24px;
  height: auto;
}

#collection {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#collection img {
  width: 100%;
  border-radius: 8px;
  
}

#collection img.collected {
  opacity: 1;
  border: 2px solid gold;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}


/* モーダルの基本スタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* モーダルコンテンツ */
.modal-content {
  margin: 10% auto;
  display: block;
  max-width: 20%;
  border-radius: 10px;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}


/* モーダル内の画像サイズ調整（スマホのみ強制拡大） */
@media (max-width: 768px) {
  .modal-content {
    width: 90vw !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
  }
}
