  /* Modern Font and Body Styling */
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #16a085);
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Navigation Bar */
nav {
    position: absolute;
    top: 20px;
    right: 20px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
    padding: 8px 15px;
    border: 1px solid rgba(236, 240, 241, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

/* Main Game Container */
#wrapper {
    background-color: rgba(44, 62, 80, 0.85);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Heading */
h1 {
    font-size: 2.75rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styling */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

label[for="guessField"] {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Input Field */
.guessField {
    width: 60%;
    padding: 12px 20px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #1abc9c;
    background-color: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guessField:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

/* Submit Button */
.guessSubmit {
    background-color: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.guessSubmit:hover {
    background-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.guessSubmit:active {
    transform: translateY(-1px);
}

/* Results Area */
.resultParas {
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.resultParas p {
    margin: 8px 0;
    font-size: 1rem;
}

.guesses, .lastResult {
    font-weight: bold;
    color: #f1c40f; /* A highlight color */
    padding: 2px 6px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.lowOrHi {
    font-size: 1.3rem !important;
    font-weight: bold;
    min-height: 30px; /* Prevent layout shift on message change */
    margin-top: 15px !important;
}

</style>