/*ELEMENT STYLING & POSITIONING*/
#log-wrapper {
    position: relative;
    flex-grow: 1;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
    width: 34rem;
    display: flex;
    flex-flow: column;
}
#log {
    overflow-y: auto;
    flex-grow: 1;
    border: 1px solid#424242;
    border-bottom: none;
    background-color: #1d1c1c;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#log-bottom-fade {
    position: absolute;
    height: 2rem;
    width: 98%;
    margin-left: 1%;
    bottom: 3rem;
    background: linear-gradient(to bottom, transparent, #1d1c1c);
    padding-bottom: 1rem;
}
#log-bottom-padding {
    height: 0.8rem;
    border: 1px solid#424242;
    border-top: none;
    background-color: #1d1c1c;
}
#log-tabs {
    display: flex;
    height: 2.5rem;
    background-color: transparent;
}
.log-tab {
    position: relative;
    border: 1px solid#424242;
    border-right-width: 2px;
    border-top-width: 0;
    border-bottom-width: 4px;
    height: 1.8rem;
    width: 3rem;
    display: flex;
    justify-content: center;
    transition: padding-top 0.15s;
}
.log-tab.selected {
    border-top: none;
    background-color: #1d1c1c;
}
.log-tab.selected::before {
    content: "";
    position: absolute;
    height: 4px;
    top: -2px;
    width: 100%;
    background-color: #1d1c1c;;
}
.log-tab-img {
    height: 65%;
    padding-top: 0.35rem;
    pointer-events: none;
}
.log-tab:hover {
    padding-top: 0.5rem;
}
.tooltip {
    position: absolute;
    visibility: hidden;
    width: fit-content;
    height: 0.8rem !important;
    background-color: rgba(26, 39, 48, 0.8);
    color: #d0fde8;
    font-family: var(--font);
    font-size: 0.77rem;
    text-wrap: nowrap;
    translate: 0.8rem -240%;
    opacity: 0;
    transition: opacity 0.2s;
    
}
.log-tab:hover .tooltip {
    visibility: visible;
    opacity: 1;
}



/*TEXT STYLING*/
#log {
    padding: 1.2rem;
    padding-top: 0.4rem;
    font-family: var(--font);
    font-size: 0.88rem;
}
#log > *:first-child {
    margin-top: 0 !important;
}

b1 {
    color: aquamarine;
    font-weight: 600;
}

step {
    position: relative;
    display: block;
    border-top: 1.5px solid rgb(169, 189, 206);
    padding-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem !important;
}
step.error {
    background-color: rgb(66, 29, 29);
    color: rgb(248, 143, 102);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem !important;
    font-style: italic;
}
.step-text {
    font-size: 0.88rem !important;
}
.equation-wrapper {
    display: flex; 
    margin-left: 1rem;
    margin-top: 1rem;
    height: 4rem;
    gap: 2rem;
    white-space: pre;
}
.initial-cond {
    display: flex;
    flex-flow: column;
    white-space: pre;
    gap: 0.5rem;
    text-align: right;
    justify-content: center;
}
.equation-result {
    display: flex; align-items: center;
}
.equation-result.text {
    font-size: 0.88rem !important;
    margin-right: -1.5rem;
}

.equation {
    display: flex;
    align-items: center;
    background-color: #2e2e2e;
}
.equation > mjx-container{
    margin: 0 !important;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    font-size: 1.1rem !important;
}