/* Reset default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
background-color: #856d6d;
}
html {
  
  font-size: 16px;
}

main {
  font-family: "Tagesschrift", system-ui, Arial, sans-serif;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* Grid container */
.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin-top: 2rem;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* Left Column */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Boxes */
#title,
#name,
#guess,
.alphabet,
.buttons {
  border: 2px solid #ddd;
  padding: 1rem;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Right Column (Hangman Image) */
#images {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ddd;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

  flex: 1;
  height: 100%;
  box-sizing: border-box;
}

/* Pushes the main image into the center space */
#images img {
  flex-grow: 1;
  /* take available space */
  object-fit: contain;
  /* keep aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
}

#lives-text {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 700;
  color: red;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
}

#Game-Notification {
  margin-top: auto;
  /* push to bottom */
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}


/* Alphabet section */
.alphabet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.buttons {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
}


/* General button styling */
button {
  border: 2px solid #333;
  background: #fff;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

/* Button Colors */
#start-btn {
  background-color: rgb(163, 239, 163);
  color: black;
}

#reset-btn {
  background-color: red;
}

#show-answer-btn {
  background-color: rgb(231, 194, 6);
}

button:hover:not(:disabled) {
  background: #f0f0f0;
  transform: scale(1.05);
}

button:disabled {
  cursor: not-allowed;
  background: #ccc;
  border-color: #aaa;
}

/* Letter buttons */
.letter-btn {
  padding: 0.5rem 0.9rem;
  margin: 4px;
  font-size: 0.9rem;
}