/* Jerusalem Hills Kids - Game Stylesheet */

body {
    font-family: "Poppins", sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #fffdf6 0%, #fff5e6 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #ffcc00 0%, #ffb700 100%);
    padding: 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
    font-size: 2.5em;
}

/* Screen Time Reminder */
.screen-time-reminder {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 20px;
    margin: -20px 20px 20px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: gentle-pulse 3s infinite;
}

.screen-time-reminder p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }
}

.game-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #fff;
    color: #ff6f61;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: #ff6f61;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,111,97,0.4);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

button {
    background: #ff6f61;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    margin: 8px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,111,97,0.3);
}

button:hover {
    background: #ff8c75;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,111,97,0.4);
}

button:active {
    transform: translateY(0);
}

input {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #ffcc00;
    margin: 8px;
    width: 200px;
    text-align: center;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #ff6f61;
    box-shadow: 0 0 12px rgba(255,111,97,0.3);
}

#question, #scrambled {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
    color: #ff6f61;
}

#result, #score, #message {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.5em;
    min-height: 40px;
}

#result {
    color: #4CAF50;
}

#score {
    background: #ffcc00;
    padding: 10px 20px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Memory Game Specific Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.card {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffe6a1 0%, #ffd97d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid transparent;
}

.card:hover {
    transform: scale(1.05);
    border-color: #ffcc00;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 15px;
    margin-top: 30px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    button {
        padding: 10px 20px;
        font-size: 1em;
    }

    input {
        width: 160px;
        font-size: 1em;
    }

    #question, #scrambled {
        font-size: 1.5em;
    }

    .grid {
        grid-template-columns: repeat(4, 60px);
        gap: 8px;
    }

    .card {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
}
