/* Kid Friendly Fonts and Colors */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --background: #f7f9fc;
    --text: #2c3e50;
    --card-bg: #ffffff;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    background-color: var(--background);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text);
}

.container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 5px solid var(--secondary);
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s;
}

.screen.active {
    display: block;
}

/* Inputs and Buttons */
input {
    display: block;
    width: 80%;
    margin: 15px auto;
    padding: 15px;
    font-size: 1.2rem;
    border: 3px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

input:focus {
    border-color: var(--secondary);
}

button {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: transform 0.1s;
    margin-top: 10px;
}

button:active {
    transform: scale(0.95);
}

.btn-start { background-color: var(--secondary); color: white; }
.btn-check { background-color: var(--primary); color: white; width: 100%; }
.btn-restart { background-color: #ffe66d; color: #555; }

/* Game Area */
.jumbled-word {
    font-size: 3rem;
    letter-spacing: 5px;
    color: var(--primary);
    margin: 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    background: #eee;
    padding: 10px;
    border-radius: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #777;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.message {
    height: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.correct-msg { color: #2ecc71; }
.wrong-msg { color: #e74c3c; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s;
}