body {
    /* Integration with Bootstrap: Remove fixed flex centering that conflicts with grid layout */
    background-color: #f8f9fa;
    /* Match Bootstrap light background */
    margin: 0;
    padding: 0;
}

header,
main {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guessField {
    flex: 1;
    /* Let Bootstrap handle border and radius in input-group */
    min-width: 100px;
    font-size: 1rem;
}

sub,
sup {
    font-size: 1rem;
}

button {
    /* Let Bootstrap handle primary button styles */
    cursor: pointer;
}

.guessSubmit {
    background-color: #3b82f6;
    /* A nice blue */
}

.guessSubmit:hover {
    background-color: #2563eb;
    /* Darker blue on hover */
}

#resetBtn {
    background-color: #059669;
    /* A nice green */
}

#resetBtn:hover {
    background-color: #047857;
    /* Darker green on hover */
}

.resultParas {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.9s ease;
    /* This creates the "smooth" effect */
    text-align: center;
}

/* We'll add this class via JS when a guess is made */
.resultParas.visible {
    opacity: 1;
    max-height: 400px;
    /* Slightly tighter */
    padding: 5px 0;
}

.info,
.guesses,
.lastResult,
.lowOrHi,
.remainingGuesses {
    border-radius: 5px;
    padding: 5px 0;
    /* Reduced padding */
    margin-bottom: 0.5rem;
    /* Tighter margins than default Bootstrap */
}

.text-red {
    color: red;
}

.text-green {
    color: green;
}

.text-blue {
    color: blue;
}

.info {
    background-color: #b5e1fc;
    /* light blue */
}

.correct {
    background-color: #c2f7e5;
    /* A nice green */
}

.wrong {
    background-color: #f7c2c2;
    /* A nice red */
}