/* Reset some default styles */
body, h1, p, input {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styles */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #201E43; /* Dark background for body */
    color: #EEEEEE; /* Light text color */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Wrapper styles */
#wrapper {
    background-color: #134B70; /* Darker background for the game */
    color: #EEEEEE;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add a subtle glow effect to the wrapper */
#wrapper::before {
    content: '';
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 70%);
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: 0;
}

/* Heading styles */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #EEEEEE;
    text-shadow: 0 0 10px #EEEEEE;
}

/* Form styles */
.form {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #EEEEEE;
}

input[type="text"] {
    width: 80%;
    padding: 12px;
    border: 2px solid #508C9B; /* Light border for input */
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1.2em;
    background-color: #134B70; /* Slightly lighter dark color for input */
    color: #EEEEEE;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    transform: scale(1.05);
    background-color: #201E43; /* Darker background on focus */
}

input[type="submit"] {
    background-color: #508C9B;
    color: #EEEEEE;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1;
}

input[type="submit"]:hover {
    background-color: #134B70;
    transform: scale(1.05);
}

/* Result paragraphs styles */
.resultParas {
    font-size: 1.4em;
    z-index: 1;
}

.resultParas p {
    margin: 10px 0;
}

.guesses, .lastResult {
    font-weight: bold;
    color: #EEEEEE;
}

.loworHi {
    font-size: 1.4em;
    color: #EEEEEE;
    margin-top: 20px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 1s ease infinite;
}

/* Add a pulse animation for game feedback */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #508C9B; /* Accent color for pulse effect */
    }
    100% {
        transform: scale(1);
    }
}
