:root {
  /* Set the fonts */
  --pico-font-family: "Roboto", "Manrope", system-ui, -apple-system sans-serif, sans-serif; /*  "Inter", "Open Sans", "Lato", "Raleway", "Poppins"; */
  --pico-font-size: 100%;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-rendering: optimizeLegibility; */
  font-style: normal;
  font-variation-settings: "wdth" 100;

  /* Set the default box shadow */
  --pico-box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1) !important;
}

/* Set heading weights to 500 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 550;
}

/* Set body's flex direction to column and make it 100% of the height */
/* This makes header, main and footer to be stacked on top of each other */
html,
body,
.body-root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/*  Set the header and footer to be 5% of the height */
.body-root > header,
.body-root > footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.25rem;
  flex-shrink: 0;
}

main {
  display: flex;
  flex: 1;
  overflow: hidden;
  /* gap: 1rem; */
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
  justify-content: flex-start;
}

nav {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

dialog {
  padding: 1rem;
  box-shadow: 2px 2px 5px 5px rgba(0, 0, 0, 0.1);
}

article {
  margin: 0rem;
  border: 1px solid var(--pico-muted-border-color);
}

article > header {
  font-size: 1.1rem;
}

textarea {
  font-family: monospace;
  min-height: 10rem;
  font-size: small;
}

/* Readonly inputs */
input:read-only[type="text"],
input:read-only[type="number"],
textarea:read-only {
  cursor: auto;
  background-color: var(--pico-muted-background-color);
  color: var(--pico-muted-text-color);
  border-color: var(--pico-muted-border-color);
}

/* Remove margin from helper text */
label small {
  margin-bottom: 0rem !important;
}
