@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@100..900&display=swap');

/* body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  padding: 0;
  color: #333;
} */

.container-maths {
    max-width: 1000px;
    margin: .5rem auto;
    padding: 2rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* #notes{
    width: 100%;
    padding: 1rem auto;
    margin: 1rem;
    background-color: #0e2570;
} */

.page-title {
    background: linear-gradient(135deg, #0e2570, #27b72c);
    padding: .7rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-in;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    /* display: flex; */
}

.page-title h1 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.topic {
    width: 100%;
    background: #fff;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    /* background-color: #27b72c; */
}

.topic:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.topic ol li {
    margin-left: .5rem;
    margin-bottom: 1rem;
}

.topic ul li {
    margin-left: 1.5rem;
    margin: .5rem;
    list-style: none;
    background-color: #89e9ff;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    padding: .5rem 1rem;
}

.topic h3 {
    color: #1e90ff;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: .8rem;
}

.topic h4 {
    margin-top: 1rem;
}

.topic p {
    font-size: 1.1rem;
}

.example-toggle {
    background: #00b4d8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.example-toggle:hover {
    background: #0077b6;
}

.examples {
    margin-top: 10px;
    padding: 10px;
    /* background: #f9f9f9; */
    /* background-color: #d0f6d2; */

    /* border-left: 4px solid #1e90ff; */
    border-radius: 5px;
    margin-bottom: .7rem;
    overflow-x: scroll;
}

.examples ol li {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #1e90ff;
    border-left: 4px solid #1e90ff;
    box-shadow: 4px 4px #b5c3f1;
    /* border-bottom: 1px solid green; */
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    line-height: 1.6;
    background-color: #d0f6d2;
}

#mcqs {
    /* margin-top: 40px; */
    width: 100%;
    margin: 1rem auto;
    padding: 1rem auto;

}

#mcqs h2 {
    color: #1e90ff;
    text-align: center;
}

.mcq {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* max-width: 700px; */
}

.mcq p {
    margin: 4px;
    font-weight: bold;
    /* background-color: #dc3545; */
    /* width: 100%; */

}

.mcq button {
    /* background: #e0e0e0; */
    border: none;
    padding: .5rem 1rem;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    background-color: #3e63f6;
    color:white;

    width: 100%;
    max-width: 600px;
    font-size: 1.1rem;
    font-weight: 500;

}

.mcq button:hover {
    background: #d0d0d0;
}

.correct {
    background: #28a745 !important;
    color: #fff;
    font-weight: 600;
}

.incorrect {
    background: #dc3545 !important;
    color: #fff;
}

.feedback {
    margin-top: 10px;
    font-style: italic;
    color: #28a745;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 800px) {
    .page-title h1 {
        font-size: 1.4rem;
    }

    .topic h3 {
        font-size: 1.2rem;
    }

    .container-maths {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.5rem;
    }

    .topic h3 {
        font-size: 1.3rem;
    }

    .example-toggle {
        padding: 8px 15px;
    }

    .mcq button {
        display: block;
        width: 100%;
        margin: 5px 0;
        max-width: 350px;
    }
}

/* .mjx-mtext {
    font-family: inherit !important;
} */