/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#weapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #fff;
}

p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #f1f1f1;
}

.form {
  margin-top: 25px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #e0e7ff;
}

input.guessField {
  padding: 12px;
  border-radius: 10px;
  border: none;
  width: 100%;
  font-size: 16px;
  outline: none;
  margin-bottom: 15px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
}

button {
  margin: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: #fff;
  background-color: #3b82f6;
}

button:hover {
  background-color: #2563eb;
  transform: scale(1.03);
}

button.guessSubmit {
  background-color: #4ade80;
  color: #111;
}

button.guessSubmit:hover {
  background-color: #22c55e;
}

.resultParas {
  margin-top: 30px;
}

.resultParas p {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 8px;
}

span.guesses {
  font-weight: bold;
  color: #facc15;
}

span.LastResult {
  font-weight: bold;
  color: #f87171;
}

p.LoOrHi {
  font-size: 16px;
  font-weight: bold;
  margin-top: 12px;
  color: #fff;
}

.win {
  color: green;
  font-weight: bold;
  font-size: 1.2em;
}

.lose {
  color: red;
  font-weight: bold;
  font-size: 1.2em;
}

.win {
  color: green;
  font-weight: bold;
}

.lose {
  color: red;
  font-weight: bold;
}

.finalMessage {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Media Queries for mobile responsiveness */
@media screen and (max-width: 480px) {
  #weapper {
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }

  p, label, input, button {
    font-size: 14px;
  }

  button {
    width: 100%;
    margin: 8px 0;
  }
}
