/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}


/* 
  Project-specific styles 
*/

html {
  font-size: 62.5%;
}

body {

  display: grid;
  gap: 0x;
  grid-template-rows: min-content 1fr min-content;
  grid-template-areas:
    "header"
    "content"
    "footer";

  height: 100%;
  width: 100%;
  overflow: hidden;

  font-family: system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  background: #333;

}

header {
  grid-area: header;
  padding: 1em 1.5em;
  background: #444;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.0rem;
  line-height: 1;
  font-weight: 300;
}

nav {
  grid-area: nav;
  display: none;
}

main {
  grid-area: content;
  padding: 24px;
}

footer {
  grid-area: footer;
  padding: 1em 1.5em;
  background: #444;
  color: #fff;
  text-align: center;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
}

#sketch-container {
  width: 100%;
  height: 100%;
}

#sketch-container .p5Canvas {
  display: flex !important;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: stretch;
  width: 100% !important;
  height: 100% !important;
}

#sketch-container .p5Canvas > svg {
  flex: 1 1 auto;
  width: auto !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}