/* IMPORTS */

@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,900&display=swap');

/* VARIABLES */

:root {
  /* Color */
  --color-primary: #423FE0;
  --color-primary-dark: #3B39CA;
  --color-primary-alpha-s: rgba(66, 63, 224, 0.08);
  --color-primary-dark-alpha-s: rgba(59, 57, 202, 0.08);
  --color-wash: #FFFAFA;
  --color-wash-alpha-m: rgba(255, 250, 250, 0.8);
  --color-content-1: #161533;
  /* --color-content-1: rgba(0, 0, 0, 0.96); */
  --color-content-2: rgba(0, 0, 0, 0.64);
  --color-content-3: rgba(0, 0, 0, 0.48);
  --color-content-4: rgba(0, 0, 0, 0.32);
  --color-content-5: rgba(0, 0, 0, 0.16);
  --color-content-6: rgba(0, 0, 0, 0.08);

  /* Opacity */
  --opacity-content-1: 0.96;
  --opacity-content-2: 0.64;
  --opacity-content-3: 0.48;
  --opacity-content-4: 0.32;
  --opacity-content-5: 0.16;
  --opacity-content-6: 0.08;

  /* Font Family */
  --font-family-default: Roboto, Arial, sans-serif;

  /* Font Size */
  --font-size-xl: 28px;
  --font-size-l: 20px;
  --font-size-m: 18px;
  --font-size-s: 16px;
  --font-size-xs: 14px;

  /* Line Height */
  --line-height-xl: 32px;
  --line-height-l: 24px;
  --line-height-m: 24px;
  --line-height-s: 20px;
  --line-height-xs: 20px;

  /* Font Weight */
  --font-weight-l: 900;
  --font-weight-m: 500;
  --font-weight-s: 400;

  /* Radius */
  --radius-l: 20px;
  --radius-m: 10px;
  --radium-s: 4px;

  /* Spacing */
  --space-10: 80px;
  --space-9: 72px;
  --space-8: 64px;
  --space-7: 56px;
  --space-6: 48px;
  --space-5: 40px;
  --space-4: 32px;
  --space-3-5: 28px;
  --space-3: 24px;
  --space-2-5: 20px;
  --space-2: 16px;
  --space-1-5: 12px;
  --space-1: 8px;
  --space-0-5: 4px;

  /* Box Shadow */
  --box-shadow-bottom-s: 0 1px 2px var(--color-content-6);
  --box-shadow-top-s: 0 -1px 2px var(--color-content-6);

  /* Transition */
  --transition-default: 200ms ease-in-out all;
}

/* DEFAULTS */

* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  outline: none;
  font-family: var(--font-family-default);
  font-style: normal;
  text-decoration: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  border-image-width: 0;
}

html,
body, 
#root {
  position: fixed;
  background-color: var(--color-wash);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  vertical-align: middle;
  overflow: hidden;
  display: flex;
}

img {
  user-select: none;
}

/* COMPONENTS */

/* Lists */

.list-heading {
  margin: 0;
  padding: var(--space-2-5) var(--space-2) var(--space-1-5) var(--space-2);
  color: var(--color-content-1);
}

/* Input */

input,
.input {
  width: 100%;
  margin: 0 0 var(--space-2) 0;
  padding: 6px 0;
  font-size: var(--font-size-m);
  line-height: var(--font-size-m);
  border: none;
  box-shadow: 0 1px 0 var(--color-content-5);
  background: transparent;
  transition: var(--transition-default);
}

input:focus,
.input:focus {
  box-shadow: 0 2px 0 var(--color-primary);
}

input::-webkit-input-placeholder {
  color: var(--color-content-3);
}

input:-ms-input-placeholder {
  color: var(--color-content-3);
}

input::placeholder {
  color: var(--color-content-3);
}

/* TYPOGRAPHY */

h1 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-xl);
  font-weight: var(--font-weight-l);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-1-5);
  color: var(--color-content-1);
}

h2 {
  font-size: var(--font-size-l);
  line-height: var(--line-height-l);
  font-weight: var(--font-weight-l);
  margin-bottom: var(--space-1-5);
  color: var(--color-content-1);
}

h3 {
  font-size: var(--font-size-m);
  line-height: var(--line-height-m);
  font-weight: var(--font-weight-m);
  margin-bottom: var(--space-1-5);
  color: var(--color-content-1);
}

p, li {
  font-size: var(--font-size-m);
  line-height: var(--line-height-m);
  font-weight: var(--font-weight-s);
  margin-bottom: var(--space-1-5);
  color: var(--color-content-2);
}

small {
  font-size: var(--font-size-s);
  line-height: var(--line-height-s);
  font-weight: var(--font-weight-s);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-1-5);
  color: var(--color-content-2);
}

ol, ul {
  padding-left: var(--space-3);
}

a {
  color: var(--color-primary);
  border-radius: 2px;
  background-color: transparent;
  transition: var(--transition-default);
}

a:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-alpha-s);
}

label {
  display: block;
  font-size: var(--font-size-s);
  line-height: var(--line-height-s);
  font-weight: var(--font-weight-m);
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: var(--space-0-5);
  color: var(--color-content-1);
}

hr {
  border-bottom: solid 1px var(--color-content-6);
}

/* TEXT UTILITIES */

.text-centred {
  text-align: center;
}

.single-line {
  width: auto;
  height: 1em;
  overflow: visible;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.1em;
  margin: 0;
  padding: 0;
}

/* LAYOUT */

.page-container {
  vertical-align: middle;
  width: 100%;
  height: 100%;
  /* max-width: 560px; */
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-heading {
  padding: var(--space-0-5) var(--space-2-5) var(--space-2) var(--space-2-5);
  box-shadow: var(--box-shadow-bottom-s);
}

.page-heading h1 {
  margin: 0;
}

.page-content {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2-5);
  max-width: 520px;
}

.page-content.wide {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2-5);
  max-width: 720px;
}

.page-content.full-height {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-layout {
  width: auto;
  height: auto;
  border-radius: var(--radius-m);
  overflow: visible;
  border: solid 1px var(--color-content-6);
}

.box-layout > :first-child {
  border-top-right-radius: var(--radius-m);
  border-top-left-radius: var(--radius-m);
}

.box-layout > :last-child {
  border-bottom-right-radius: var(--radius-m);
  border-bottom-left-radius: var(--radius-m);
}

.box-layout > * {
  border-bottom: solid 1px var(--color-content-6);
}

.fixed-linear-layout {
  flex: 100% 1 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.linear-layout-section-grow {
  flex: 100% 1 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.linear-layout-section-static {
  flex: auto 0 0;
  min-height: 0;
}

.top-right-actions {
  display: flex;
  flex-direction: row;
  position: fixed;
  top: var(--space-1);
  right: var(--space-1);
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
}

.full-width {
  display: block;
  width: 100%;
}

.space {
  display: block;
}

.space.hor {
  display: inline-block;
}

.space.s1 {
  height: var(--space-1);
  width: var(--space-1);
}

.space.s1-5 {
  height: var(--space-1-5);
  width: var(--space-1-5);
}

.space.s2 {
  height: var(--space-2);
  width: var(--space-2);
}

.space.s2-5 {
  height: var(--space-2-5);
  width: var(--space-2-5);
}

.space.s3 {
  height: var(--space-3);
  width: var(--space-3);
}

.space.s4 {
  height: var(--space-4);
  width: var(--space-4);
}

.space.s5 {
  height: var(--space-5);
  width: var(--space-5);
}

.space.s6 {
  height: var(--space-6);
  width: var(--space-6);
}

/* ACCESSIBILITY */

/* Interactive */

a:focus {
  box-shadow: 0 0 0 2px var(--color-wash), 0 0 0 4px var(--color-primary);
}

a:focus-visible,
a:active {
  box-shadow: 0 0 0 2px var(--color-wash), 0 0 0 4px var(--color-primary);
}

/* ANIMATION */

.animate-on-content:not(:empty) {
  animation-delay: 0;
  animation-duration: 600ms;
  animation-name: fade-in;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0; 
  }
  to {
    opacity: 1;
  }
}
