body {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#home-page {
  background-color: #e6a84f;
  padding: 40px;
  border: 10px solid #2c3e50;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.title {
  font-size: 50px;
  font-weight: bolder;
  color: white;
  margin-bottom: 30px;
}

.hangman-photo-home {
  background-image: url(../images/hangman.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 180px;
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.button-group button {
  background-color: #d9438d;
  color: white;
  border: none;
  padding: 12px 24px;
  width: 178px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-group button:hover {
  background-color: #b03576;
}

#level-page {
  background-color: #e6a84f;
  padding: 40px;
  border: 10px solid #2c3e50;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#level-page h1 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 30px;
}

#level-page button {
  background-color: #d9438d;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 20px 30px;
  font-size: 1.5em;
  margin: 0 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#level-page button:hover {
  background-color: #b03576;
}

#game-page {
  background-color: #2c3e50; /* Outer border color */
  padding: 10px;
  border-radius: 10px;
  width: 95%;
  max-width: 750px;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-box {
  background-color: #e6a84f; /* Yellow background */
  padding: 30px 20px;
  width: 100%;
  border-radius: 8px;
  box-sizing: border-box;
}

.hangman-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin: 0 auto;
}

.hangman-drawing {
  width: 100%;
  height: 100%;
  stroke: #2c3e50;
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}

.word-display {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.letter {
  font-size: 2rem;
  font-weight: bold;
  width: 40px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #d9438d;
  color: #d9438d;
}

.keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 20px auto;
}

.key {
  width: 40px;
  height: 40px;
  background-color: #4e5d6c;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key:hover:not(:disabled) {
  background-color: #d9438d;
  transform: translateY(-2px);
}

.key:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}


.wrong {
  background-color: #e84b8c;
}

.correct {
  background-color: #4CAF50;
}

.stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.stat {
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

.message {
  font-size: 1.5rem;
  min-height: 30px;
  text-align: center;
  margin: 20px 0;
  color:#2c3e50;
  font-weight: bold;
}

.btn {
  padding: 10px 20px;
  background-color: #d9438d;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
  margin-bottom: 10px;
}

.btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#timer {
  font-size: 24px;
  font-weight: bold;
  color: #b03576;
  text-align: center;
  margin-bottom: 15px;
  background-color: #fff3f3;
  padding: 10px 20px;
  border: 3px solid #2c3e50;
  border-radius: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

#back-btn,
#hint-btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#hint-btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.instructions-box {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding-top: 100px;
}

.instructions-content {
  background: white;
  width: 80%;
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  position: relative;
  color: #e6a84f;
  font-weight: bold;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #e84b8c;
}

.game-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.game-buttons .btn {
  min-width: 140px;
  text-align: center;
  margin: 0; 
}

#back-btn,
#hint-btn {
  margin-top: 0; 
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
