body {
  background: linear-gradient(#ffeef6, #ff98c5);
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 20px;
  font-family: "amster", serif;
  font-weight: 400;
  font-style: italic;
  text-align: center;
}

h1 {
  font-family: "comba", sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 20px 0;
  color:#cc2c6f;
  font-size:3rem;
  text-shadow:2px 2px #ffc1d9;
}

#difficultySelection{
    background: linear-gradient(135deg, #ffbbdb, #c9417c); 
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.62);
    width: 90%;
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#difficultySelection:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 127, 176, 0.636);
}

#difficultySelection h3 {
    font-size: 28px;
    font-weight: 700;
    color: #cc2c6f;
    text-shadow: 1px 1px 5px #ffc1d9;
    margin-bottom: 30px;
}

.difficulty-btn {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transition: all 0.5s;
}

.difficulty-btn:hover::before {
    left: 100%;
}

.difficulty-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

#difficultyBox{
    width: 90%;
    max-width: 350px;
    margin: 40px auto; 
    padding: 25px 20px;
    border-radius: 20px; 
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #ff7fb0, #ff4d85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.532); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#difficultyBox:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 127, 176, 0.7), 0 0 20px rgba(255, 127, 176, 0.5);
}

#difficultyBox.easy {
    background: linear-gradient(135deg, #a0ff9d, #59a15c);
}

#difficultyBox.easy:hover {
    box-shadow: 0 15px 30px rgba(157, 255, 160, 0.846), 0 0 20px rgba(93, 161, 92, 0.875);
}

#difficultyBox.medium {
    background: linear-gradient(135deg, #ffeaac, #ffdd76);
}

#difficultyBox.medium:hover {
    box-shadow: 0 15px 30px rgba(255, 250, 94, 0.846), 0 0 20px rgba(250, 255, 150, 0.875);
}

#difficultyBox.hard {
    background: linear-gradient(135deg, #ff7d8a, #cd535f);
}

#difficultyBox.hard:hover {
    box-shadow: 0 15px 30px rgba(255, 125, 138, 0.846), 0 0 20px rgba(205, 83, 95, 0.875);
}


#wordDisplay {
  font-size: 2rem;
  letter-spacing: 12px;
  color:#cc2c6f;
  transition: all 0.3s ease;
}

#wordDisplay:hover{
    text-shadow:
        0 0 10px #ff7fb0,
        0 0 20px #ff7fb0,
        0 0 30px #ffb3d1;
    transition: all 0.3s ease;
}

#letterInput{
    width:70px;
    text-align:center;
    font-size:20px;
    border-radius:8px;
    transition: all 0.3s ease;
}

#letterInput:hover{
    border:2px solid #ff7fb0;
    transition: all 0.3s ease;
}

#letterInput:focus{
    outline:none;
    box-shadow:0 0 10px #ff7fb0;
}

#guessBtn{
    background:#ff7fb0;
    border:none;
    color:white;
    font-weight:bold;
    margin: 0 10px;
    padding:10px 20px;
}

#guessBtn:hover{
    background:#ff5a9a;
}

#guessedLetters{
    font-size:18px;
    color:#444;
}

#mistakes {
  font-size:18px;
  font-weight: bold;
}

#message {
    font-size:24px;
    font-weight:bold;
    margin-top:10px;
  }

#message.lose {
  color: red;
}

.tree-img {
  width:400px;
  margin-top:25px;
  height: auto;
  border-radius:12px;
  transition: transform 0.3s ease;
}

.tree-img:hover{
    transform: rotate(-2deg) scale(1.05);
    transition: transform 0.3s ease;
}

.restart-btn {
  background: #ff7fb0;
  border: none;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
}


button {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transition: all 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.btn-outline-success:hover{
    background:#9dffa0;
    color:white;
    box-shadow:0 0 12px #59a15c;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover{
    background:#ffeaac;
    color:white;
    box-shadow:0 0 12px #ffdd76;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover{
    background:#ff7d8a;
    color:white;
    box-shadow:0 0 12px #cd535f;
    transition: all 0.3s ease;
}