body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0px;
    background-color: #e6f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    --accent-color: #0984e3;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 20px; /* Adds padding to both left and right sides */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 10px;
}

nav a:hover {
    color: var(--accent-color);
}

/* For smaller screens */
@media (max-width: 1000px) {
    .logo {
        font-size: 1.2rem;
        padding-left: 10px;
    }
    nav {
        padding: 1rem 10px; /* Reduce padding to fit smaller screens */
    }

    nav .container {
        flex-direction: column; /* Stack the navigation items vertically */
        gap: 1rem; /* Add spacing between stacked items */
    }

    nav ul {
        flex-direction: column; /* Align navigation links vertically */
        gap: 1rem; /* Spacing between links */
    }

    nav a {
        font-size: 0.8rem; /* Reduce font size for smaller screens */
        text-align: center;
    }
}
.math-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.problem {
    font-size: 2rem;
    margin: 1rem 0;
}

input {
    font-size: 1.5rem;
    padding: 0.5rem;
    width: 150px;
    margin: 1rem 0;
    text-align: center;
    border: 2px solid #1a4b8c;
    border-radius: 5px;
}

.message {
    margin-top: 1rem;
    font-weight: bold;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

/* New Question Button */
#new-question {
    display: block;
    width: 200px;
    margin: 2rem auto 0;
    padding: 10px 20px;
    background: #1a4b8c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s ease;
}

#new-question:hover {
    background: #123666;
}
