/* style.css */
body { background: #2e2e2e; color: #fff; font-family: 'Poppins', sans-serif; margin: 0; padding: 1rem; }
main { max-width: 24rem; margin: auto; display: flex; flex-direction: column; align-items: center; }
.main-title { font-size: 1rem; margin: 2rem 0 0.5rem 0; }
.controls { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.controls button { padding: 0.5rem 1rem; font-size: 1rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; }
#guess { background: #fff; color: #0070f3; }
#replay { background: #0070f3; color: #fff; }
#hangmanCanvas { background: none; border: none; margin: 0.5rem 0; }
#word { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; font-size: 1.2rem; line-height: 1.2; margin: 0.8rem 0; }
#letters { display: grid; grid-template-columns: repeat(9, 2.3rem); gap: 0.2rem; width: calc(9 * 2.3rem + 8 * 0.2rem); margin-bottom: 0.2rem; }
.letter-btn { width: 2.3rem; height: 2.3rem; background: #fff; color: #0070f3; font-weight: 700; font-size: 1.4rem; border: none; border-radius: 4px; cursor: pointer; }
.letter-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#message { margin-top: 0.5rem; }
.result-container-wrapper {
  display: flex;
  justify-content: center;
  width: calc(9 * 2.3rem + 8 * 0.2rem);
  height: calc(3 * 2.3rem + 2 * 0.2rem);
  margin: 1rem 0;
}

.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.result-container.win {
  background: #28a745;
  color: #ffffff;
}

.result-container.lose {
  background: #dc3545;
  color: #ffffff;
}

.result-container a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.result-container .status {
  font-size: 1.2rem;
  font-weight: 700;
}

.result-container .artist,
.result-container .title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

50%{opacity:0.7;}}



a.result-container { text-decoration:none;  text-decoration: none;}

@keyframes fade {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}



a.result-container { text-decoration: none; }

@keyframes fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-letter {
  animation-name: fade;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
