@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth; }
  @media (max-width: 75em) {
    html {
      font-size: 56.25%; } }
  @media (max-width: 56.25em) {
    html {
      font-size: 50%; } }

body {
  box-sizing: border-box; }

:root {
  --color1: #393E46;
  --color2: #04009A;
  --color3: #77ACF1;
  --color4: #3EDBF0;
  --color5: #C0FEFC; }

body {
  font-size: 5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: bold; }

nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100vw);
  transition: all .5s ease-out; }
  nav > a {
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 3rem;
    color: #fff;
    transform: translateX(-100vw); }
    nav > a:nth-child(1) {
      background-color: var(--color1);
      transition: all .5s .1s ease-in; }
    nav > a:nth-child(2) {
      background-color: var(--color2);
      transition: all .5s .2s ease-in; }
    nav > a:nth-child(3) {
      background-color: var(--color3);
      transition: all .5s .3s ease-in;
      color: #000; }
    nav > a:nth-child(4) {
      background-color: var(--color4);
      transition: all .5s .4s ease-in;
      color: #000; }
    nav > a:nth-child(5) {
      background-color: var(--color5);
      transition: all .5s .5s ease-in;
      color: #000; }

.nav-slide {
  transform: translateX(0); }

.container {
  cursor: pointer;
  position: fixed;
  right: 5rem;
  top: 3rem; }

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #FB3640;
  margin: 6px 0;
  transition: 0.4s; }

.change .bar1 {
  transform: rotate(-45deg) translate(-9px, 6px); }

.change .bar2 {
  opacity: 0; }

.change .bar3 {
  transform: rotate(45deg) translate(-8px, -8px); }

section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; }
  section:nth-of-type(1) {
    background-color: var(--color1);
    color: #fff; }
  section:nth-of-type(2) {
    background-color: var(--color2);
    color: #fff; }
  section:nth-of-type(3) {
    background-color: var(--color3); }
  section:nth-of-type(4) {
    background-color: var(--color4); }
  section:nth-of-type(5) {
    background-color: var(--color5); }
