:root {
  --l: #e2e2e2;
  --d: #000200;
  --p: #5471b4;
  --w: #d67e1e;
  --s: #c08f54;
  --g: #353535;
  --radius: .3rem;
  --shadow: 0 0 1rem 0 rgba(0, 0, 0, .3);
  --border: 2px solid var(--p);
  --radius: .3rem;
  --radius-s: .2rem;
  --radius-l: .4rem;
  --radius-x: .6rem;
  --font: mr-eaves-mod, Arial, Helvetica, sans-serif;
  --font-size: 1rem;
  --font-size-s: .8rem;
  --font-size-l: 1.2rem;
  --font-size-x: 1.4rem;
  --font-size-xx: 1.6rem;
  --font-size-xxx: 1.8rem;
  --font-size-xxxx: 2rem;
  --font-size-xxxxx: 2.2rem;
  --font-size-xxxxxx: 2.4rem;
  --font-size-xxxxxxx: 2.6rem;
  --font-size-xxxxxxxx: 2.8rem;
  --font-size-xxxxxxxxx: 3rem;
  --font-size-xxxxxxxxxx: 3.2rem;
  --font-size-xxxxxxxxxxx: 3.4rem;
  --font-weight-heavy: 900;
  --font-weight-bold: 700;
  --font-weight-medium: 500;
  --font-weight-light: 300;
  --font-weight: 400;
  --color: var(--d);
  --background: var(--l);
  --small: .5rem;
  --medium: 1rem;
  --large: 1.5rem;
  --x-large: 2rem;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  font-size: var(--font-size);
  font-family: var(--font);
}

.hidden {
  display: none !important;
}

body {
  background: var(--background);
  color: var(--color);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

span, p, h1, h2, h3, h4, h5, h6, a, button, input, label, select, option, textarea {
  font-family: var(--font);
}

span, p, label {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
}

b, strong, .strong {
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--font-size-xxxxx);
  font-weight: var(--font-weight-heavy);
}

h2 {
  font-size: var(--font-size-xxxx);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-xxx);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-xx);
  font-weight: var(--font-weight-bold);
}

h5 {
  font-size: var(--font-size-x);
  font-weight: var(--font-weight-bold);
}

h6 {
  font-size: var(--font-size);
  font-weight: var(--font-weight-bold);
}

button {
  font-size: var(--font-size);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  border: .1rem solid var(--p);
  border-radius: var(--radius);
  background: var(--color);
  color: var(--background);
  padding: .5rem 1rem;
  transition: all .3s ease;
}

button:hover {
  background: var(--l);
  color: var(--p);
}

button.active {
  background: var(--p);
  color: var(--l);
}

button:disabled {
  background: var(--g);
  color: var(--l);
  cursor: not-allowed;
}

button.alt {
  background: var(--p);
  color: var(--l);
}

button.alt:hover {
  background: var(--s);
  color: var(--l);
}

button.alt.active {
  background: var(--w);
  color: var(--l);
}

button.alt:disabled {
  background: var(--g);
  color: var(--l);
  cursor: not-allowed;
}

button.warn {
  background: var(--w);
  color: var(--l);
}

button.warn:hover {
  background: var(--s);
  color: var(--l);
}


input, select, textarea {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  border: var(--border);
  border-radius: var(--radius);
  padding: .5rem;
}

input[type="checkbox"], input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
  background: var(--p);
}

input[type="checkbox"]:disabled, input[type="radio"]:disabled {
  background: var(--g);
}

input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled {
  background: var(--s);
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
  outline: none;
}

select {
  appearance: none;
}

select:focus {
  outline: none;
}

select option {
  padding: .5rem;
}

select option:checked {
  background: var(--p);
  color: var(--l);
}

select option:disabled {
  background: var(--g);
  color: var(--l);
}

select option:checked:disabled {
  background: var(--s);
  color: var(--l);
}

textarea {
  resize: none;
}

textarea:focus {
  outline: none;
}

textarea:disabled {
  background: var(--g);
  color: var(--l);
}

textarea:disabled:focus {
  outline: none;
}

iframe, video, img, svg, canvas {
  max-width: 100%;
  max-height: 100%;
}

image, video {
  object-fit: cover;
}

svg {
  fill: currentColor;
}

canvas {
  border: var(--border);
  border-radius: var(--radius);
}

canvas:focus {
  outline: none;
}

canvas:disabled {
  background: var(--g);
  color: var(--l);
}



#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
  max-height: 100%;
  padding: 1.5rem;
}

.page {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  width: 100%;
  height: 100%;

}

.page>.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  overflow-y: visible;
  overflow-x: hidden;
  height: 80px;
  max-height: 80px;
}

.page>.top-nav>nav {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  padding: .2rem;
}


.page>.page-container {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  padding: .5rem;
}

.page-container::-webkit-scrollbar {
  width: .5rem;
}

.page-container::-webkit-scrollbar-thumb {
  background: var(--p);
  border-radius: var(--radius);
}

.page-container::-webkit-scrollbar-track {
  background: var(--l);
  border-radius: var(--radius);
}

.page-container::-webkit-scrollbar-thumb:hover {
  background: var(--s);
}

.page-container::-webkit-scrollbar-thumb:active {
  background: var(--w);
}

.container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.spinner {
  width: 5rem;
  height: 5rem;
  border: .1rem solid var(--d);
  border-radius: 50%;
  border-top-color: var(--p);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
