/* Base styles */
body {
    background: linear-gradient(135deg, #1e1e2f, #2c2c3c);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Wrapper with card/chat style */
#wrapper {
    background-color: #2e2e3e;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Title like a bot greeting */
#wrapper h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #ffb347;
    animation: fadeInDown 1s ease forwards;
}

/* Subtext like a friendly assistant */
#wrapper p {
    font-size: 1rem;
    margin: 5px 0;
    color: #cfd8dc;
    animation: fadeIn 1s ease forwards;
}
#newGame{
    cursor: pointer;
}
/* Form label with slight delay */
.form label {
    font-size: 1.1rem;
    display: block;
    margin: 20px 0 10px;
    color: #ffffff;
    animation: fadeIn 1.2s ease forwards;
}

/* Input field */
.guessField {
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #3a3a4a;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
    animation: fadeIn 1.3s ease forwards;
}

.guessField:focus {
    border-color: #ff9800;
}

/* Submit button */
.guessSubmit {
    padding: 12px 25px;
    font-size: 1rem;
    background: #ff9800;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
    animation: fadeIn 1.4s ease forwards;
}

.guessSubmit:hover {
    background: #e68900;
    transform: scale(1.05);
}

/* Result container */
.resultParas {
    margin-top: 30px;
    animation: fadeInUp 1.5s ease forwards;
}

/* Chat-like feedback */
.resultParas p {
    margin: 10px 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    color: #e0e0e0;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
    animation: popIn 0.5s ease;
}

/* Highlighted span feedback */
.resultParas span {
    font-weight: bold;
    color: #fff;
}

/* Feedback message color */
.lowOrHi {
    font-size: 1.1rem;
    color: #4caf50;
    font-weight: 600;
    padding: 10px;
    margin-top: 15px;
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    animation: popIn 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}