body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #222;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Hide scrollbar for the body */
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 90%;
}

h1 {
    font-size: 2.5em;
    color: #aaffaa;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.blackboard {
    background-color: #333;
    border: 10px solid #554;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.7);
    position: relative;
    width: 800px;
    height: 500px;
    overflow: auto; /* Enable scrolling for blackboard content */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.formula {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    white-space: nowrap; /* Keep formula on one line */
    overflow-x: auto; /* Allow horizontal scrolling for long formulas */
    padding-bottom: 10px;
}

.fact {
    font-size: 1.2em;
    color: #ffcc00;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

button:hover {
    background-color: #0056b3;
}

/* MathJax specific styling to make it look like chalk */
.MathJax .mjx-chtml {
    color: #fff !important;
    font-family: 'Comic Sans MS', cursive, sans-serif; /* A bit more playful, like chalk */
}

.MathJax .mjx-chtml[data-mml-node="mi"] {
    font-style: normal !important;
}

.MathJax .mjx-chtml[data-mml-node="mo"] {
    font-weight: bold !important;
}
