/* NORMAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* SWUP */
/* Base transition styles */
.transition-fade {
  opacity: 1;
  transform: translateY(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: green;
}

/* While leaving the current page */
html.is-leaving .transition-fade {
  opacity: 0;
  transform: translateY(0.96);
  background: red;
}

/* While entering the new page */
html.is-rendering .transition-fade {
  opacity: 0;
  transform: translateY(1.02);
  background: green;
}

/* GRID */
.container {
  width: 90%;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.col {
  padding: 1rem;
  flex: 1 1 0;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

/* MOBIEL */
@media (max-width: 768px) {
  .col-6, .col-4, .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* GRID */
header {
	display: flex;
	justify-content: space-between;
	padding: 1em;
	position: fixed;
	width: 100%;
	z-index: 2;
}

footer {
	position: fixed;
	bottom: 0;
}

.canvas {
	width: 100vw;
	height: 100vh;
}