/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
    max-width: 400px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 40px;
    margin-top: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 1px;
}

.guessField {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    border: none;
    outline: none;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.guessField:focus {
    box-shadow: 0 0 10px 3px #a29bfe;
}

.guessSubmit {
    background: #6c5ce7;
    color: white;
    font-size: 1.2rem;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.resultParas {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #dfe6e9;
    text-align: center;
}

.resultParas p {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.lowOrHi {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 10px;
    min-height: 30px;
    color: #ffeaa7;
    text-shadow: 1px 1px 2px #2d3436;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 1px 1px 2px #2d3436, 0 0 10px #ffeaa7;
    }
    50% {
        text-shadow: 1px 1px 2px #2d3436, 0 0 20px #ffeaa7;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    #wrapper {
        padding: 20px 25px;
        max-width: 90%;
    }
    .guessField, .guessSubmit {
        font-size: 1rem;
    }
}
