@font-face {
    font-family: 'LaTeX-Mono';
    src: url('https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: rgb(54, 56, 54);
    color: #d1cdc8;
    font-family: 'LaTeX-Mono', monospace;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: auto;
    overflow-x: hidden; 
}

#title {
    text-align: center;
    padding: 20px 0;
}

h1 {
    margin: 20px 0;
    text-decoration: none;
    font-family: 'LaTeX-Mono', monospace;
}

h2, h3, h5, h4, h6 {
    margin: 50px;
    text-decoration: none;
    font-family: 'LaTeX-Mono', monospace;
}

p {
    text-align: justify;
    font-size: 1.5rem;
    font-family: 'LaTeX-Mono', monospace;
    margin: 0 auto;
    max-width: 90%;
    line-height: 1.6;
}

#lessons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 40px;
    gap: 40px;
    margin: 30px;
    background-color: rgb(22, 22, 22);
    border: #d1cdc8 solid 2px;
    border-radius: 20px;
}

.lesson {
    display: block;
    width: 100%;
    max-width: 410px;
    height: 250px;
    text-decoration: none;
    background-color: rgb(54, 56, 54);
    border: rgb(71, 73, 71) solid 2px;
    z-index: 2;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0px 0px 7px #d1cdc8;
}

.test{
    grid-column: span 2;
    max-width: 880px;
}

.lc {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 10px;
    z-index: 3;
    box-sizing: border-box;
    color: #d1cdc8;
}

.lc h1 {
    font-size: 1.8rem;
    margin: 0;
}

.lc Mathjax {
    margin: auto !important;
}

.lesson:hover {
    box-shadow: 0 0 10px #d1cdc8;
    transform: scale(1.05);
}

.lc:hover {
    transform: scale(1.05);
}

video{
    width: auto;
    max-width: 1200px;
    overflow: hidden;
}

footer{
    display: flex;
    align-content: center;
    align-items: center;
    align-self: center;
}

#l1{
    margin: 10px;
    text-align: center;
}

.imgcont, .chartcont, .figcont{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgb(22, 22, 22);
    border: rgb(71, 73, 71) solid 2px;
    box-shadow: 0px 0px 7px #d1cdc8;
    margin: 10px auto;
    width: 310px;
    border-radius: 5px;
}

.vidcont, .utestcont {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgb(22, 22, 22);
    border: rgb(71, 73, 71) solid 2px;
    box-shadow: 0px 0px 7px #d1cdc8;
    margin: 10px auto;
    width: 1200px;
    border-radius: 5px;
}

.vidcont{
    width: 90%;
    aspect-ratio: 16 / 9;
}

.vidcont iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.imgcont:hover {
    box-shadow: 0 0 10px #d1cdc8;
    transform: scale(1.05);
}

img{  
    width: 300px;
}

#dis{
    width: 900px; 
    height: 500px;
    align-self: center;
    margin: 0 auto;
}

.chartcont {
    position: relative;
    width: 900px;
    margin: 40px auto;
    text-align: center;
    background-color: rgb(71, 73, 71);
}

.chart-title {
    color: #d1cdc8;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#dis svg {
    shape-rendering: geometricPrecision;
}

.axis-label {
    position: absolute;
    color: #d1cdc8;
    font-size: 1.1rem;
    pointer-events: none;
}

.y-axis {
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.x-axis {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

button, .but, .quiz-form button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 40px auto;
    width: 150px;
    height: 100px;
    background-color: #d1cdc8;
    color: rgb(54, 56, 54);
    border: 3px solid rgb(71, 73, 71); 
    border-radius: 15px; 
    font-family: 'LaTeX-Mono', monospace;
    font-size: 1.5rem;
    text-decoration: none !important;
    text-align: center;        
    box-shadow: 0px 0px 7px #d1cdc8;
}

.but:link, .but:visited, .but:hover, .but:active, button:hover, .quiz-form button:hover, input:hover {
    text-decoration: none !important;
    box-shadow: 0 0 10px #d1cdc8;
    transform: scale(1.05);
}

.quizcont{
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgb(22, 22, 22);
    border: rgb(71, 73, 71) solid 2px;
    border-radius: 15px;
    box-shadow: 0px 0px 7px #d1cdc8;
}

.quiz-form{
    margin-bottom: 30px;
    text-align: left;
}

.quiz-form label {
    display: block;
    font-size: 2.0rem;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quiz-form input{
    background-color: #d1cdc8;
    border: rgb(22, 22, 22) solid;
    color: rgb(22, 22, 22);
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 5px;
    font-family: inherit;
    width: 400px;
    height: 100px;
    box-shadow: 0px 0px 7px #d1cdc8;
}

.result-message {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.result-message.correct {
    color: #4caf50;
}

.result-message.wrong {
    color: #f44336;
}

.try{
    text-align: center;
}

.result-message.active {
    color: #d1cdc8;
}

.mcq-options label{
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    cursor: pointer;
}

.mcq-options{
    margin: 30px;
}

.mcq{
    appearance: none;
    -webkit-appearance: none;
    width: 1.8rem !important;
    min-width: 1.8rem;
    height: 1.8rem !important;
    min-height: 1.8rem;
    border: 2px solid #d1cdc8;
    border-radius: 50% !important;
    background-color: rgb(54, 56, 54);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
.mcq:hover{
    box-shadow: 0 0 8px #d1cdc8;
    transform: scale(1.1);
}

.mcq:checked{
    background-color: #d1cdc8;
    border-color: #d1cdc8;
}

.mcq:checked::before {
    content: "";
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    background-color: rgb(22, 22, 22) !important;
}

.mcq-options mjx-container {
    font-size: 80% !important;
}

a{
    color: #d1cdc8;
}
a:hover{
    color: #afa9a3;
}