body {
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    font-family: ui-monospace, "SF Mono", "Liberation Mono", Menlo, Consolas, monospace;
}

body:not(.home-body) {
    overflow: hidden;
}

#energy-label {
    position: absolute;
    top: 0.5em;
    left: 1em;
}

#metrics-label {
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    line-height: 1.5;
    text-align: right;
}

#modal-toggle {
    position: absolute;
    top: 2em;
    left: 0.5em;
}

#description-toggle {
    position: absolute;
    top: 4em;
    left: 0.5em;
}

#energy-bar {
    position: absolute;
    top: 20%;
    bottom: 3%;
    left: 1.5em;
    width: 1.5em;
    border: 2px solid black;
    background-color: #AAA;
}

#kinetic-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #EEE;
}

#energy-bar-label {
    position: absolute;
    top: calc(20% - 1.75em);
    left: 0.75em;
}

.color-label {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    border: 2px solid black;
    vertical-align: -0.1em;
}

#equation-label {
    position: absolute;
    top: 0;
    right: 1em;
}

#symbol-container svg {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}

#simulation-label {
    position: absolute;
    bottom: 2.5em;
    right: 1em;
    font-size: 2em;
}

#attribution-label {
    position: absolute;
    right: 1em;
    bottom: 0.5em;
}

#mechmath-link {
    position: absolute;
    bottom: 0.5em;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25em 0.5em;
    border: 2px solid black;
    color: inherit;
    background-color: white;
    text-decoration: none;
}

#playback-container {
    position: absolute;
    right: 1em;
    bottom: 3.5em;
    display: flex;
    gap: 0.5em;
}

.playback-button {
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
}

#system-modal {
    position: absolute;
    display: none;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition-property: display;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
}

#system-modal.shown {
    display: flex;
}

#system-modal-content {
    margin: 0 auto;
    overflow: auto;
    background-color: #fefefe;
    border: 2px solid black;
    border-radius: 10px;
    padding: 0.5em 1em;
    font-size: 1.25em;
    max-height: 80vh;
}

#description-modal {
    position: absolute;
    display: none;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition-property: display;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
}

#description-modal.shown {
    display: flex;
}

#description-modal-content {
    margin: 0 auto;
    overflow: auto;
    background-color: #fefefe;
    border: 2px solid black;
    border-radius: 10px;
    padding: 0.5em 1em;
    font-size: 1.25em;
    max-width: 80vw;
    max-height: 80vh;
}

#description-file {
    white-space: pre-wrap;
}