
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html {
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0b2960, #d2361e);
  color: #fff;
}


#wrapper {
  box-sizing: border-box;
  text-align: center;
  width: 450px;
  padding: 25px;
  background: #2c2c2c;
  color: #fff;
  font-size: 18px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(38, 34, 34, 0.4);
  transition: transform 0.2s ease-in-out;
}
#wrapper:hover {
  transform: scale(1.02);
}


h1 {
  background-color: #9e1717;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  padding: 12px;
  margin-bottom: 20px;
  font-weight: 600;
}

p {
  font-size: 16px;
  text-align: center;
  margin: 10px 0;
}


#guessField {
  color: #d61111;
  width: 250px;
  height: 50px;
  font-size: 20px;
  border: 3px solid #6c6d6d;
  margin-top: 20px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#guessField:focus {
  outline: none;
  border-color: #9e1717;
  box-shadow:  #9e1717 0 0 20px;
}


#guess {
  font-size: 30px;
  margin-top: 5px;
  display: block;
  color: #fff;
}


button,
#subt {
  font-weight: bolder;
  background-color: #9e1717;
  color: #ffffff;
  width: 200px;
  height: 50px;
  border-radius: 10px;
  font-size: 18px;
  border: none;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover,
#subt:hover {
  background: black;
  transform: scale(1.05);
}

button:active,
#subt:active {
  transform: scale(0.95);
}


.lastResult,
.guesses {
  color: #bdc913;
  padding: 7px;
  font-weight: bold;
}


.lowOrHi {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  animation: fadeIn 0.5s ease-in-out;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
