@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+SC:wght@100;400;900&family=Jost:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('switch.css');
@import url('linksdet.css');
@import url('items.css');


.light {
  --paper: #fbfcff;
  --background: #f4f6fa;
  --text-primary: #1c1d24;
  --text-secondary: #6b6e83;
  --hover: #0e223d08;
  --active: #0e223d18;
  --primary-main: #ecc953;
  --primary-main-50: #ecc95380;
  --primary-light: #f8e575;
  --primary-dark: #e7a247;
  --primary-constrast: #2e3146;
}
.dark {
  --paper: #13141d;
  --background: #181a28;
  --text-primary: #c0c5d1;
  --text-secondary: #909aae;
  --hover: #e9eef508;
  --active: #e9eef508;
  --primary-main: #ec5353;
  --primary-main-50: #ec535380;
  --primary-light: #ff6964;
  --primary-dark: #d43542;
  --primary-constrast: #2e3146;
}
:root {
  --font: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  --font-p: 'Jost', var(--font);
  --font-h: 'Encode Sans SC', var(--font);
  --shadow: #00000040;
  --text-disabled: #848592;
  --shadow-lvl0: 0px 0px 1.5px 0px var(--shadow);
  --shadow-lvl1: 0px 1px 2px 0px var(--shadow);
  --shadow-lvl2: 0px 2px 4px 0px var(--shadow);
  --shadow-in: 0px 0px 2px 0px var(--shadow) inset;
}

/* SCROOLL */
::-webkit-scrollbar {
	width: 4pt;
	height: 4pt;
}
::-webkit-scrollbar-thumb {
  background: var(--active);
}
::-webkit-scrollbar-track {
	background: var(--background);
}

/* MARK */
mark {
	padding: 0px 0.25em;
}
input[type="date"]::selection, mark {
	background: var(--primary-main-50);
}
::-moz-selection {
	background: var(--primary-main-50);
}
::selection {
	background: var(--primary-main-50);
}

/* GENERAL */
* {
  margin: 0px;
  padding: 0px;
}
*:not(pre) {
  font-family: var(--font-p);
  letter-spacing: .05rem;
}
*:not(a, button, input) {
  cursor: default;
}
.mobile {
  display: none;
}

/* BODY */
html, body {
  width: 100%;
  height: 100%;
  font-size: 11pt;
}
body {
  background: var(--background);
  color: var(--text-primary);
  display: flex;
}

h1,h2,h3,h4,summary {
	font-family: var(--font-h);
	font-weight: normal;
}

a {
  font-family: inherit;
  text-decoration: none;
}

div, p, span {
  font-weight: lighter;
}

/* IN */
aside, main {
  overflow-y: auto;
}


/* ASIDE */
aside {
  width: 14em;
  max-height: 100%;
  background-color: var(--paper);
  box-shadow: var(--shadow-lvl2);
  z-index: 100;
}
aside .switch {
  width: 100%;
  top: 0px;
  padding: 1em;
  position: sticky;
  background: inherit;
  z-index: 99;
  box-shadow: var(--shadow-lvl1);
}


/* MAIN */
main {
  max-width: calc(100% - 20em);
  flex-grow: 1;
  padding: 2em 3em 3em;
  /* margin: 1em; */
}

main section h2 {
  font-weight: bold;
  text-align: center;
  color: var(--primary-main);
}

/*  */
.type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding-top: 1em;
}
.type h3 {
  width: 100%;
}



/* RESPONSIVE */
@media (max-width: 720px) {
  body {
    flex-direction: column;
  }
  aside {
    height: 3em;
    width: calc(100% - 1em);
    padding-right: 1em;
    position: fixed;
    top: 0px;
    overflow-y: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  aside .switch {
    flex-grow: 1;
    box-shadow: none;
  }
  main {
    max-width: 100%;
    margin-top: 3em;
    overflow-y: unset;
  }
  .mobile {
    display: block;
  }
}


@media (max-width: 512px) {
  main {
    padding: 1em 2em;
  }
}