/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertically center */
    align-items: center;      /* horizontally center */
    min-height: 100vh;
    background: #b396ae;
    color: #333;
    padding: 20px;
}

/* Main container */
.container {
    background: #fff;
    padding: 28px 36px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    width: 800px; /* wider than before */
    margin: 20px auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Heading */
.container > h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

/* Labels */
.container label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #34495e;
}

/* Textareas general */
textarea {
    font-family: 'XITS Math', 'TeX Gyre Termes Math', 'STIX Two Math', 
                 'Latin Modern Math', 'Cambria Math', serif;
    font-size: 16px;
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: none;
    overflow: hidden; /* hides scrollbars */
}

/* Growable textareas (derivative, values, etc.) */
.growbox {
    min-height: 40px;
}

/* Large expression box on top */
.large-input {
    min-height: 80px;
    font-size: 17px;
    font-weight: 500;
}

/* Horizontal row of smaller inputs (variable, order, evaluate at) */
.row-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
}

.row-inputs > div {
    flex: 1;
}

.row-inputs textarea {
    min-height: 40px;
    font-size: 15px;
}

/* Result box style */
#resultBox {
    background: #f9fafc;
    font-weight: 500;
    color: #1e293b;
    cursor: default;
}

/* Description container at bottom */
.container.description {
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    background: #fdfdfd;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
    width: 800px; /* match calculator width */
}
