/* CSS Organization - Follow This Order for Consistency
    ~ Layout: Display & Position
    ~ Box Model: Margin, Padding, Border, Width, Height
    ~ Typography or Content: Font, Text, List
    ~ Appearance or Decoration: Color, Background, Borders
    ~ Interaction: Transitions, Keyframes
    ~ Miscellaneous: Other properties that don't fit into the above categories
*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: limegreen 2px solid; */
}

body {
    margin: 40px;
    font-family: Arial, sans-serif;
}


#equation, #directions {
    margin: 20px;
}

#particulars {
    display: block;
    opacity: 0.7;
    font-size: 2.5rem;
    text-align: center;
    color: gray;
}

#equation {

    /* Layout */
    display: block;

    /* Topography */
    font-size: 4rem;
    /* ,'GrilledCheese BTN', 'Snap ITC','Arial Black', sans-serif; */
    font-weight: bold;
    text-align: center;
}

#answer {
    /* Layout */
    display: none;

    /* Box Model */
    margin: 20px;
    margin-right: 2.5em;
    
    /* Topography */
    font-size: 4rem;
    text-align: right;

    /* Decoration */
    color: green;
}

button {

    /* Box Model */
    padding: 10px 20px;
    margin-top: 10px;
    margin-right: 10px;

    /* Typography */
    font-family: "Cheese", "Candy", Arial, sans-serif;
    font-size: 1.2rem;
}

select {

    /* Box Model */
    padding: 10px 14px;
    margin-top: 10px;
    margin-right: 10px;

    /* Typography */
    font-family: "Cheese", "Candy", Arial, sans-serif;
    font-size: 1.1rem;
}

.controls {

    /* Box Model */
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 14px 16px 18px;
    border: 2px solid #d9e0ea;
    border-radius: 14px;

    /* Decoration */
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.controls h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: #2f4f75;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.controls-row label {
    font-weight: 700;
    color: #254160;
    margin-top: 6px;
}

.controls-row button {
    margin-top: 30px;
}


/* Layout */
.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
}

.left-panel {
    flex: 2;
    padding: 20px;
    font-size: 1.4rem;
}

.right-panel {
    flex: 1;
    padding: 20px;
    border-left: 3px solid #ccc;
    overflow-y: auto;
    font-size: 1.2rem;
}

#historyList {
    margin-top: 10px;
}

.history-item {
    display: flex;
    /* justify-content: space-between; */
    padding: 8px;
    border-bottom: 10px solid #ddd;
}

.history-problem, .history-answer {
    display: inline-block;
    margin: 0 5px;
    font-size: 1.8rem;
}

.history-problem {
    width: 30%;
}

.history-answer {
    width: 60%;
    text-align: right;
}

/* MathJax Font Styling */
/* .mjx-chtml {
    font-family: "Comic Sans MS", "GrilledCheese BTN", "Snap ITC", "Arial Black", sans-serif;
} */


