:root {
    --primary-color: #5057ff;
    --primary-opposite: white;
    --primary-bright: #aeb7f5;
    --background-color: #f5f6fa;
    --palette-gray: #607385;
    --palette-light-gray: #c5c5c5;
    --palette-darkgray: #454c54;
    --grey-on-white: #767676;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Proxima Nova', 'Arial', sans-serif;
    scroll-behavior: smooth;
}

/* Hide Recharts 3.x focus indicators */
.recharts-wrapper *:focus {
    outline: none !important;
}

.recharts-surface {
    outline: none !important;
}

g:focus {
    outline: none !important;
}

svg:focus {
    outline: none !important;
}

th {
    font-weight: 600;
    padding-left: 20px;
}

.MuiToggleButton.Mui-selected {
    color: var(--primary-opposite);
    background-color: var(--primary-color);
}

button {
    font-weight: 600;
    touch-action: manipulation;
    transition: 0.25s;
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes turn-white {
    from {
        background-color: var(--primary-color);
        color: var(--primary-opposite);
    }

    to {
        background-color: var(--primary-opposite);
        color: var(--primary-color);
    }
}

header {
    /* padding: 8px; */
    background-color: var(--primary-opposite);
    position: relative;
    /* height: 100px; */
    width: auto;
    color: black;
    display: block;
    text-align: center;
    outline: none;
    border: none;
    border-bottom: 1px solid #cac9c9;
}

legend {
    display: contents;
}

footer {
    display: block;
    text-align: center;
    position: inherit;
    height: 28px;
    /* bottom: 0; */
    color: black;
    /* margin-top: 10px; */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

sub {
    text-align: end;
    font-size: 12px;
}

.settings {
    width: 50px;
    height: 50px;
}

.divider {
    height: 20px;
    border-radius: 10px;
    margin: auto;
    top: -5px;
    position: relative;
    border: none;
    /* max-width: 60vw; */
    background-color: transparent;
    border-bottom: 1px solid var(--palette-gray);
}

.cover-page {
    position: fixed;
    padding-top: 30vh;
    height: 70vh;
    width: 100vw;
    z-index: 10000;
    text-align: center;
    background-color: var(--background-color);
}

.radio-button-wrapper {
    border-radius: 2px;
    /* overflow: hidden; */
}

.slider-with-buttons button img {
    height: 35%;
    width: 35%;
}

.canvas-section {
    width: 90%;
    padding: 0% 5% 0% 5%;
    max-width: 600px;
    display: block;
    margin: auto;
}

.checkbox {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox input {
    margin: 8px;
    width: 20px;
    height: 20px;
}

.circle {
    width: 16px;
    height: 16px;
    border-radius: 10px;
    border: black solid 1px;
    margin-left: 8px;
    background: red;
    display: inline-block;
}

.content-container {
    background-color: var(--background-color);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header a {
    z-index: 500;
    position: relative;
}

.info-button {
    width: -moz-fit-content;
    width: fit-content;
    height: auto;
    border: none;
    color: var(--primary-color);
    border-radius: 12px;
    padding: 0px;
    top: 2px;
    background: none;
    margin: 0px 0px 0px 8px;
    pointer-events: all;
}

.info-button:hover {
    transition: background-color 0.25s color 0.25s;
    color: var(--primary-color);
    box-shadow: none;
}

.link-group {
    display: grid;
    /* margin: 5%; */
    padding: 5%;
    row-gap: 24px;
    /* height: 70vh; */
    /* column-gap: 10%; */
    /* height: auto; */
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.link-group a {
    /* padding: 8px 24px; */
    background-image: linear-gradient(90deg, var(--primary-color) 26%, var(--primary-color) 26.5%);
    color: white;
    width: 75%;
    min-width: 300px;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
}

.link-group img {
    max-width: 90%;
}

.row2 {
    grid-row-start: 2;
}

.output-section {
    display: inline;
    font-size: 24px;
    font-weight: 600;
    margin: 4px 0px;
}

.radio-button {
    width: 0;
    height: 0;
    appearance: none;
}

.result-section {
    display: grid;
    text-align: left;
    width: 100%;
    font-size: 24px;
    padding: 20px 0px 10px;
    /* border-radius: 160px; */
    /* border: 2px solid darkgray; */
    background-color: var(--background-color);
    justify-items: stretch;
}

.horizontal-grid {
    justify-items: center;
    justify-content: space-between;
    width: 56vw;
    align-content: center;
    grid-auto-flow: column;
    text-align: center;
    /* width: 100%; */
}

section {
    text-align: center;
    display: flex;
    justify-content: center;
}

.input-container {
    min-width: 100vw;
    position: relative;
    /* margin-top: 10px; */
    /* margin-bottom: 16px; */
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.request-button {
    padding: 20px 50px;
    font-size: 24px;
}

.show {
    visibility: visible;
    display: block !important;
    opacity: 1;
}

.pulse-loading {
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: pulse_gradient;
    animation-timing-function: ease-in-out;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, var(--primary-color) 20%, rgba(255, 255, 255, 0));
    background-size: 600%;
    border: 1px solid var(--primary-color) !important;
    pointer-events: none;
    box-shadow: none;
    background-color: var(--primary-opposite);
    color: var(--primary-color) !important;
}

.pulse-loading-tab {
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: pulse_gradient2;
    animation-timing-function: ease-in-out;
    background-color: transparent !important;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, var(--primary-color) 20%, rgba(255, 255, 255, 0));
    background-size: 600%;
    pointer-events: none;
    box-shadow: none;
    background-color: var(--primary-opposite);
    color: var(--primary-color) !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse_gradient {
    0% {
        background-position-x: 0%;
    }

    100% {
        background-position-x: 120%;
    }
}

@keyframes pulse_gradient2 {
    0% {
        background-position-x: 0%;
    }

    50% {
        background-position-x: 120%;
    }

    100% {
        background-position-x: 0%;
    }
}

.loader {
    border: 4px solid #f3f3f3;
    /* Light grey */
    height: 24px;
    width: 24px !important;
    border-top: 4px solid var(--primary-color);
    /* Blue */
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pulse-loading:hover {
    box-shadow: none;
}

@keyframes pulse_gray {
    0% {
        background-color: var(--primary-opposite);
        color: var(--primary-color);
    }

    100% {
        background-color: var(--primary-color);
        color: var(--primary-opposite);
    }
}

.rounded-border-bottom {
    border-bottom: 2px solid black;
    border-radius: 24px;
}

.rounded-border-top {
    border-top: 2px solid black;
    border-radius: 24px;
}

#chartCanvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hidden {
    visibility: hidden;
    height: 0px;
    opacity: 0;
    transition: height 0.5s, opacity 0.5s;
    z-index: -2;
}

.reveal {
    visibility: visible;
    height: 100px;
    opacity: 1;
    transition: height 0.5s, opacity 0.5s;
    z-index: -2;
}

#wtfMoreInfo {
    visibility: hidden;
    height: 0px;
    opacity: 0;
    transition: height 0.5s, opacity 0.5s;
    z-index: -2;
    color: black;
}

#wtfMoreInfo.show {
    visibility: visible;
    opacity: 1;
    height: 100px;
    z-index: 0;
}

@keyframes slide-down {
    0% {
        margin-bottom: -50px;
        opacity: 0;
    }

    75% {
        margin-bottom: 0px;
        opacity: 0.75;
    }

    100% {
        margin-bottom: 0;
        opacity: 1;
    }
}

/* The dropdown container */
.dropdown {
    position: absolute;
    text-align: right;
    right: 0;
    width: 100%;
    margin-top: -45px;
}

.menu {
    left: 0;
    width: auto;
    margin-top: 0%;
    margin-right: 0;
    text-align: left;
}

.menu button:focus {
    outline: 1px solid white;
}

/* Dropdown button */
.dropdown .dropdown-button {
    font-size: 32px;
    border: none;
    outline: none;
    /* color: var(--palette-darkgray); */
    padding: 14px 16px;
    background-color: inherit;
    /* font-family: inherit; */
    /* Important for vertical align on mobile phones */
    /* display: inline-table; */
    margin: 0;
    /* Important for vertical align on mobile phones */
    padding: 0;
    /* display:flex; */
    width: 100px;
    height: 100px;
    justify-content: flex-end;
}

.dropdown-button:focus {
    outline: 1px solid var(--primary-opposite);
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    position: relative;
    background-color: var(--background-color);
    width: inherit;
    text-align: center;
    padding: 0px;
    box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 30%);
    color: black;
    z-index: 500;
    top: 0px;
}

/* Links inside the dropdown */
.dropdown-content a {
    font-weight: 200;
    float: none;
    color: black;
    padding: 16px 16px;
    text-decoration: none;
    display: block;
    font-weight: bold;
    text-align: left;
    font-size: 24px;
    border-bottom: 1px solid var(--palette-gray);
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--background-color);
}

.cover {
    background-color: var(--background-color);
    padding-bottom: 40px;
    margin-bottom: -18.5px;
}

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media screen and (max-width: 1000px) {
    body {
        margin: 0;
        width: 100%;
    }

    .gauge-container {
        width: 0vw;
    }

    .result-section {
        /* min-width: 200px; */
        margin: auto;
        margin: 0px 24px;
        width: 100%;
    }

    .cover-page {
        height: 70vh;
        width: 100vw;
    }

    .horizontal-grid {
        width: 84vw;
    }

    .slider-container {
        width: 100%;
    }

    h3 {
        display: inline-block;
    }

    header {
        /* display: block; */
        /* text-align: center; */
    }

    .slider-group {
        display: inline-table;
        /* margin-bottom: 16px; */
        margin-top: 4px;
        width: 100%;
        justify-items: center;
        justify-content: center;
    }

    section {
        width: 100%;
        /* padding: 0px 0px 30px 0px; */
        /* margin: 0px 0px 12px 0px; */
    }

    .menu {
        margin: 0%;
    }

    .dropdown-content {
        width: 100vw;
    }
}

@media screen and (max-width: 750px) {
    tspan {
        font-size: 13px;
    }

    body {
        margin: 0px;
        width: 100%;
        /* height: auto; */
        min-width: 0;
    }

    footer {
        color: black;
    }

    .canvas-section {
        /* padding: 0; */
        margin: 0;
    }

    .slider-container label {
        /* font-size: 24px; */
    }

    .dropdown .dropdown-button {
        width: 50px;
        /* margin-bottom: 10px; */
        height: 50px;
    }

    .dropdown-content {
        margin-top: -10px;
    }

    .selection-group {
        width: 100%;
    }

    .result-section {
        max-width: 100%;
        margin: 0px 16px;
        width: calc(100% - 32px);
        /* margin:10px; */
        font-size: 20px;
    }

    .selection-group label {
        /* FONT-VARIANT: JIS83; */
        /* FONT-WEIGHT: 600; */
        width: calc(33.3% - 3px);
        height: auto;
        text-align: center;
        /* inline-size: fit-content; */
        /* min-width: calc((33.3% - 22px)); */
    }

    .selection-group .image-label {
        font-weight: 100;
        font-weight: 100;
        /* FONT-WEIGHT: 100; */
        width: calc(33.33% - 20px);
        min-width: calc(33.33% - 19px);
        height: calc(22vw - 15px);
        /* font-size: small; */
    }

    .slider-container {
        width: 90%;
    }

    .request-button {
        width: 72%;
        padding: 16px 0px;
        /* font-stretch: semi-condensed; */
    }

    h3 {
        display: inline-block;
    }

    .slider-group {
        display: block;
        /* margin-top: 0px; */
        margin-bottom: 0px;
    }
}

/* Shaft animation things */
.shaft-group {
    height: 600px;
    width: 600px;
    margin-top: 100px;
    /* z-index: 10; */
    position: relative;
    /* overflow:hidden; */
    border-radius: 200px;
}

.shaft {
    height: 15px;
    width: 200px;
    background-color: black;
    background-size: cover;
    position: absolute;
    transition: left 0.5s, top 0.5s, z-index 0.25s, width 0.5s;
    border-radius: 4px;
    transition-timing-function: linear;
    /* flex-wrap: nowrap; */
}

.shaft-stand-up {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
}

.page {
    width: 100vw;
    height: inherit;
    display: inline;
    position: unset;
}

.page-container {
    position: relative;
    width: auto;
    display: flex;
    height: 400px;
    flex-direction: row;
    transition: margin-left 0.75s;
}

.hide {
    visibility: hidden;
    transition: visibility 0.75s;
}

.stepper {
    position: absolute;
    width: 100vw;
    display: flex;
    max-width: 600px;
    padding: 32px 64px;
    box-sizing: border-box;
}

.step {
    flex-grow: 1;
    height: 4px;
    border-radius: 1px;
    margin: 3px 6px;
    transition: 0.5s;
    border: none;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--primary-color) 50%, var(--palette-light-gray) 50%);
}

.step-point {
    height: 10px;
    width: 10px;
    border-radius: 6px;
    margin: 0px;
}

.step-point p {
    position: relative;
    text-align: center;
    top: -20px;
    left: -45px;
    width: 100px;
    padding-top: 40px;
}

.left-middle {
    position: absolute;
    left: 0%;
    top: 80%;
    transition: none;
    clip-path: polygon(10% 50%, 30% 0%, 80% 0%, 80% 100%, 30% 100%, 10% 50%);
}

.right-middle {
    position: absolute;
    right: 0%;
    top: 80%;
    transition: none;
    clip-path: polygon(90% 50%, 70% 0%, 20% 0%, 20% 100%, 70% 100%, 90% 50%);
}
