*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

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;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  font-family: 'Open Sans', sans-serif;
  height: auto;
  width: auto;
}

h1 {
  margin: 30px 0;
}

p {
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 0.5em 0.9em;
  margin: 0.3em auto;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
}

.button.primary:hover {
  background-color: #391db5;
}

.button.primary:focus {
  background-color: #957ff7;
}

.button.primary {
  background-color: #7158e2;
  color: #ffffff;
}

main {
  margin-top: 30px;
  display: flex;
  flex-direction: row-reverse;
  width: 70%;
  max-width: 960px;
}

main > aside {
  flex: 0 0 25em;
  padding-right: 1em;
}

main > article {
  padding-left: 3em;
}

footer > img {
  margin: 70px auto;
}

@media all and (max-width: 768px) {
  main {
    margin-top: 0px;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
  }

  main > aside {
    flex: auto;
    padding-right: 0;
  }

  main > article {
    padding-left: 0;
  }

  footer > img {
    width: auto;
  }
}
