* {
  box-sizing: border-box;
}

html {
  font-family: Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

main {
  flex: 1;
  display: flex;
  gap: 1rem;
}

.sections {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

header,
main,
footer,
aside,
.sections section {
  border-radius: 0.5rem;
  padding: 1rem;
}

header {
  background-color: #ef476f;
  color: white;
}

main {
  background-color: #ffd166;
}

footer {
  background-color: #390099;
  color: white;
}

aside {
  background-color: #4cc9f0;
  width: 480px;
  line-height: 1.5rem;
}

aside code {
  font-weight: bold;
  color: #00296b;
}

.sections section {
  background-color: #06d6a0;
  flex: 1;
}

.sections section:first-child {
  flex: 2;
  background-color: #00509d;
  color: white;
}

@media screen and (max-width: 900px) {
  main {
    flex-direction: column;
  }
  aside {
    width: 100%;
  }
}
