:root {
	--background-color: white;
	--text-color: #101010;
    --accent-color: hsl(20, 85%, 45%);
    --primary-color: hsl(20, 100%, 69%);
    --secondary-color: hsl(20, 100%, 94%);
}

@font-face {
    font-family: "Montserrat";
    src: url('./Montserrat[wght].woff2');
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("./JetBrainsMono[wght].woff2");
}

* {
    font-family: 'Montserrat';
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
}

#react-entry-point, #_dash-app-content, #_dash-global-error-container {
    height: 100%;
    > div {
        height: 100%;
    }
}

#_pages_content {
    height: 100%;
}

._dash-loading-callback {
    display: none;
}

.root {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* background-color: #323232; */
    gap: 20px;
}

.root-header {
    /* background-color: var(--secondary-color); */
    border-bottom: 1px solid var(--secondary-color);
    color: var(--accent-color);

    > div {
        max-width: 1360px;
        margin: auto;
        padding: 30px 40px;
        font-size: large;
        font-weight: normal;
        display: flex;
        gap: 20px;
        align-items: center;
        > img {
            width: 32px;
        }
    }
}

h1 {
    font-size: large;
    font-weight: bold;
    margin: 0;
}

.root-footer {
    font-size: small;
    text-align: center;
    color: #323232;
    & a {
        color: inherit;
    }
}

.root-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    min-height: 480px;
    /* max-height: 980px; */
    max-width: 1360px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: fill-available;
    padding: 0 20px;
    overflow-y: auto;
}

.euler-prediction {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.param-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* flex-grow: 1; */
    width: 680px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 16px;

    > .columns {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 7px 30px;
        padding: 0;
        width: 100%;

        > .param-container {
            flex-basis: 34%;
            flex-grow: 1;
        }
    }
}

.param-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.param-label {
    width: 60px;
    font-size: 12px;
}

.param-input {
    width: 40px;
    text-align: center;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    /* background-color: #f0f0f0; */
    padding: 2px;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] {
    -moz-appearance:textfield;
    appearance: textfield;
}

.param-slider {
    flex-grow: 1;
    padding: 0 !important;

    & .rc-slider-track {
        background-color: var(--primary-color);
    }

    & .rc-slider-handle,.rc-slider-handle-dragging {
        border-color: var(--primary-color);
        
        &:active {
            box-shadow: 0 0 5px var(--primary-color);
        }
    }

    & .rc-slider-rail {
        background-color: var(--background-color);
    }
}

#run-model-button {
    align-self: center;
    width: 35%;
    padding: 6px 20px;
    border-radius: 6px;
    /* border: 1px solid var(--primary-color); */
    border: none;
    color: var(--background-color);
    background-color: var(--accent-color);
    font-weight: 500;
    cursor: pointer;
}

#euler-graph {
    height: 100%;
    /* aspect-ratio: 2; */
    flex-shrink: 1;
    flex-grow: 1;
}

#discrete-graph-loading {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-height: 720px;
    min-height: 480px;
    > div {
        width: 100%;
        height: 100%;
        > :first-child {
            height: 100%;
            width: 100%;
        }
        > :last-child {
            height: 0;
        }
    }
}

#discrete-graph {
    width: 100%;
    height: 100%;
}

.dash-default-spinner > div {
    background-color: var(--accent-color) !important;
    border-radius: 3px;
}