/*
  Taken from https: //www.joshwcomeau.com/css/custom-css-reset/
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/*
  Header
*/

header {
  font-family: "Open Sans", sans-serif;
  display: block;
  height: 3.5em;
  left: 0;
  line-height: 3.5em;
  top: 0;
  width: 100%;
}

/*
  Nav Bar styling
*/

nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
}

nav ul li a {
  padding: 0.5em 1em;
  display: block;
  text-decoration: none;
  color: black;
}

#homelink {
  margin-right: auto;
  font-weight: bolder;
}

/*
  Image Styling
*/
img {
  border-radius: 50%;
  margin: 1.5rem auto;
  width: 200px;
  height: 200px;
}

/*
  content id - where the rendered content should be on the page
*/
#content {
  margin: 0 auto;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

svg {
  width: 2.5rem;
}

/*
  section class - individual div blocks on each page
*/
.section {
  margin-top: 1.5rem;
  margin-left: 15%;
  margin-right: 15%;
}

.section h2 {
  text-align: left;
}

.section p {
  margin: 1.1rem auto;
  text-align: left;
}

.section ul {
  list-style-type: none;
}

/*
  Q&A
*/
.inner-section {
  text-align: left;
  width: 85%;
}

.code code {
  font-family: Consolas, "courier new";
}

/*
  Homepage specific styling
*/

#homeblock p,
blockquote {
  margin: 1.2rem auto;
  padding: 0 1.5rem;
}

#links {
  width: 20em;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#links li {
  max-width: fit-content;
  list-style-type: none;
  margin: 0.4rem auto;
}
