:root {
    --fd-secondary-color: #0D161A;
    --bg-primary-color: #000000;
    --bg-secondary-color: #080E10;
    --bg-ok-color: #2AB7AB;
    --bg-danger-color: #9A2B23;
    --fg-primary-color: #18242B;
    --font-primary-color: #FFFFFFE5;
    --font-secondary-color: #6FBDCCCC;
    --font-terciary-color: #ccc36f;
    --font-muted: #ffffff85;
}
@font-face {
    font-family: Jura;
    src: url("fonts/Jura-VariableFont_wght.ttf"); /* Add to the public folder first */
}
body {
    font-family: Jura;
    background-color: var(--bg-secondary-color);
    color: var(--font-primary-color);
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

input {
    background-color: transparent;
    color: var(--font-primary-color);
    border: none;
    box-shadow: 0 0 3px 1px; /* Inherit color from text */

}
input:disabled::placeholder {
    opacity: 0.7;
    color: var(--font-muted);
}
input:hover:enabled{
    box-shadow: 0 0 3px 2px; /* Inherit color from text */
}

input[type="email"],[type="password"],[type="text"] {
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
}
/* Thanks to https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied*/
/* Make the input not an ugly white when auto filled*/
input:-webkit-autofill,
input:-webkit-autofill::first-line,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
  font-family: 'Jura', sans-serif !important;
  font-size: inherit;
}

/* Normalize font inheritance */
input,
textarea,
select,
button,
meter,
progress {
  font-family: inherit;
  font-size: 100%; /* also often reset */
  line-height: inherit;
}

/* Optional: match text color */
input::placeholder,
textarea::placeholder {
  color: inherit;
  opacity: 0.7;
}


button {
    background-color: transparent;
    color: var(--font-primary-color);
    border-radius: 10px;
    border: 1px solid; /* Inherit color from text */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
    padding: 0.5rem 0.75rem;
}
button:hover:not(:disabled) {
    box-shadow: 0 0 2px 2px;  /* Inherit color from text */
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


a {
    padding: 0.25rem 0.5rem;
    text-align: center;
    color: var(--font-primary-color);
    border-radius: 10px;
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}
a:link, a:visited {
    color: var(--font-primary-color); /* Ensure links keep the same color as normal text */
}
a:hover, a:active {
    box-shadow: 0 0 1px 1px var(--font-muted); /* Slight highlight on hover */
}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}



.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/** Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary-color);
}
::-webkit-scrollbar-thumb {
    background: var(--font-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--font-secondary-color);
}



/* Slide Down Animation NOTE: assumes all padding and margins are on an inner div */
.slide-down {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  transition:
    max-height 400ms cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 400ms ease,
    transform 400ms ease;
}

.slide-down.open {
  max-height: 9999px;
  opacity: 1;
  transform: translateY(0);
}
