@font-face {
    font-family: "Inter-Regular";
    src: url("/assets/Inter-Regular.ttf");
}

body {
    background-color: #ddd;
}

#graph {
    position: absolute;
    top: 0px;
    left: 0px;
}

#header {
    position: absolute;
    top: 0;
    text-align: center;
    font-family: "Inter-Regular";
    width: 100%;
}

#header .header-animtime {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background-color: #d7f5ff;
    padding: 2px 8px 5px 8px;
    border-radius: 0 0 15px 15px;
    opacity: 85%;
}

#header .header-animtime p {
    margin: 0 0 1px 0;
    font-size: 12.5px;
}

#header .header-animtime span {
    font-size: 11px;
}

.header-animtime input {
    border-radius: 7.5px;
    background-color: transparent;
    border: 1px solid black;
    width: 30px;
    text-align: center;
    outline: none;
    transition: .2s ease;
    font-size: 11px;
}
.header-animtime input:hover, .header-animtime input:focus {
    transform: scale(1.1);
}
.header-animtime input:focus {
    border: 1px solid black;
}

#reset-viewport {
    position: absolute;
    top: 7.5px;
    left: 170px;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background-color: #569dff;
    border-radius: 50%;
    padding: 5px;
    color: #ddd;
    transition: .2s ease;
    font-size: 14px;
}
#reset-viewport:hover {
    cursor: pointer;
    transform: scale(1.1);   
}

#help {
    position: absolute;
    top: 7.5px;
    right: 5px;
    margin-right: auto;
    font-size: 24px;
}

#help svg {
    color: #569dff;
    transition: .2s ease;
    cursor: pointer;
}
#help svg:hover {
    transform: scale(1.2);
}

.help-modal {
    max-width: 600px;
}

.help-modal a {
    color: #00ccff;
    display: inline-block;
    transition: .2s ease;
}
.help-modal a:hover {
    transform: scale(1.025);
}

::-webkit-scrollbar {
    display: none;
}

#equations {
    position: absolute;
    top: 0px;
    left: 0px;
    font-family: "Inter-Regular";
    font-size: 16px;
    background: #d7f5ff;
    width: 22%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 90%;
    overflow-y: scroll;
}

.equation {
    margin: 5px 3px 2px 3.5px;
    padding: 4px;
    display: flex;
    flex-direction: row;
    border-radius: 15px;
    border: 3px solid transparent;
    transition: border-color .2s ease;
}
.equation.error {
    border: 3px solid red;
}

.equation .icon-container {
    text-align: center;
    margin: auto;
    transition: 0.2s ease;
}
.equation .icon-container:not(:last-child) {
    margin-right: 5px;
}
.equation .icon-container:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.equation .icon-container.spin {
    color: rgb(0, 128, 0);
}

.equation .icon-container.spin:hover svg {
    animation: spin 4s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg) }
}

.equation .icon-container.flag:hover svg {
    animation: flag 2s linear infinite;
}
@keyframes flag {
    0% { transform: rotate(0) }
    25% { transform: rotate(-10deg) }
    50% { transform: rotate(0) }
    75% { transform: rotate(10deg) }
    100% { transform: rotate(0) }
}

.equation .icon-container.trash {
    color: rgb(161, 1, 1);
}

.equation .icon-container.bob:hover svg {
    animation: bob 1.5s ease-in-out infinite;
}
@keyframes bob {
    0% { transform: translateY(0) }
    50% { transform: translateY(-2px) }
    100% { transform: translateY(0) }
}

.equation .icon-container.palette {
    color: var(--color);
    filter: brightness(80%);
}

.equation .r {
    font-family: "Times New Roman", "Symbola", serif;
    font-style: italic;
    flex-shrink: 0;
    margin: auto;
    user-select: none;
}
.equation .r:hover {
    cursor: default;
}

.equation .mathinput {
    width: 100%;
    margin-left: 7.5px;
    margin-right: 6px;
    border-width: 1.75px;
    border-radius: 8px !important;
    padding-left: 5px;
    transition: 0.1s ease-out;
}

.equation .mathinput.mq-focused, .equation .mathinput:hover {
    transform: scale(1.025);
}

.equation.half-reveal {
    opacity: 35%;
}

.coords-tooltip {
    position: absolute;
    opacity: 0;
    background-color: #000;
    border-radius: 12.5px;
    pointer-events: none;
    padding: 2px 4px;
    display: flex;
}

.coords-tooltip.with-math {
    padding: 3px 4px 0 !important;
}

.coords-tooltip.with-denominator {
    padding: 5px 4px 0 !important;
}

.coords-tooltip div {
    font-family: "Inter-Regular";
    color: #fff;
    margin: auto;
    text-align: center;
}

.coords-tooltip.with-math div .math-span {
    transform: translateY(-2px);
}

.coords-tooltip.critical {
	background: linear-gradient(-90deg, #531754, #114a5b, #4e4612, #531754);
	background-size: 400% 400%;
	animation: gradient 8s ease infinite;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
    25% {
        background-position: 50% 50%;
    }
	50% {
		background-position: 100% 50%;
	}
    75% {
        background-position: 50% 50%;
    }
	100% {
		background-position: 0% 50%;
	}
}

.jBox-custom-tooltip {
    font-family: "Inter-Regular";
    font-size: 12px;
}

.jBox-custom-notice {
    font-family: "Inter-Regular";
    font-size: 14px;
}

.jBox-custom-tooltip .jBox-container .jBox-content {
    padding: 5px 8px !important;
}

.jBox-custom-modal {
    font-family: "Inter-Regular";
}

.color-modal {
    width: 100%;
    display: flex;
}

.color-modal .color-container {
    margin: 0 5px 0 0;
    transition: 0.075s ease;
}
.color-modal .color-container:hover {
    cursor: pointer;
    transform: scale(1.25);
}
.color-modal .color-container div {
    border-radius: 50%;
}
.color-modal .color-container:hover div {
    animation: bob 1.5s ease-in-out infinite;
}

.color-picker-title {
    text-align: center;
    margin: 25px 0 5px 0;
}
.color-picker-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.color-picker {
    border: none;
    opacity: 0;
    height: 25px;
    width: 25px;
    cursor: pointer;
}
.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-picker::-webkit-color-swatch {
    border: none;
}

.color-picker-inner {
    border-radius: 50%;
    width: fit-content;
    height: fit-content;
    transition: .1s ease;
    border: 2.5px solid black;
}
.color-picker-inner:hover {
    transform: scale(1.2);
}
.color-picker-icon {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 15px;
    transform: translateY(5px);
    color: white;
    transition: .3s ease;
}
.color-picker-icon:has(~ .color-picker:hover) {
    animation: 2s color-picker-spin linear infinite;
}

@keyframes color-picker-spin {
    to { transform: translateY(5px) rotate(360deg) }
}