body {
  font-family: sans-serif;
  text-align: center;
  background: #f0f0f0;
  padding: 20px;
}
button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px;
}


.resultBox span {
  display: inline-block;
  margin: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #f0f0f0;
  font-weight: bold;
  font-size: 14px;
}

.spinner {
  animation: spin 0.5s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.Common {
  color: gray;
  border: 2px solid gray;
  padding: 5px 10px;
  border-radius: 8px;
  animation: pulse 1.5s infinite;
}
.Rare {
  color: blue;
  border: 2px solid blue;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px blue;
  animation: glowBlue 1.5s infinite alternate;
}
.Epic {
  color: purple;
  border: 2px solid purple;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 0 12px purple;
  animation: glowPurple 1.5s infinite alternate;
}
.Legendary {
  color: goldenrod;
  border: 2px solid goldenrod;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 0 14px gold;
  animation: glowGold 1.5s infinite alternate;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}
@keyframes glowBlue {
  from { box-shadow: 0 0 5px blue; }
  to { box-shadow: 0 0 15px blue; }
}
@keyframes glowPurple {
  from { box-shadow: 0 0 5px purple; }
  to { box-shadow: 0 0 15px purple; }
}
@keyframes glowGold {
  from { box-shadow: 0 0 5px gold; }
  to { box-shadow: 0 0 15px gold; }
}
.encyclopedia span {
  display: inline-block;
  margin: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #ddd;
}
.owned {
  background: #b3ffb3 !important;
  font-weight: bold;
}
#collection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
#collection li {
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#fusionKey {
  margin: 0 auto;
  text-align: center; 
}

#fusionKey th, #fusionKey td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}
#fusionKey td {
  font-weight: bold;
}

#nav button {
  margin: 5px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

.tab {
  margin-top: 20px;
}




