@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Lato, sans-serif;
  color: #222;
  background-color: #333;
  overflow-x: hidden;
}

.container {
  width: 100vw;
  min-height: 100vh;
  padding: 50px;
  background-color: #fafafa;
  transform-origin: top left;
  transition: transform 0.5s linear;
  &.show-nav {
    transform: rotate(-20deg);
  }
  &.show-nav .circle {
    transform: rotate(-70deg);
  }
  &.show-nav + nav li {
    transform: translateX(0);
    transition-delay: 0.3s;
  }
}

.circle-container {
  position: fixed;
  top: -100px;
  left: -100px;
}

.circle {
  position: relative;
  width: 200px;
  height: 200px;
  background-color: #ff7979;
  border-radius: 50%;
  transition: transform 0.5s linear;
  button {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100px;
    font-size: 26px;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    &#open {
      left: 60%;
    }
    &#close {
      top: 60%;
      transform: rotate(90deg);
      transform-origin: top left;
    }
    &:focus {
      outline: none;
    }
  }
}

.content {
  max-width: 1000px;
  margin: 50px auto;
  h1 {
    margin: 0;
  }
  img {
    width: 100%;
  }
  p {
    color: #333;
    line-height: 1.5;
  }
  small {
    color: #555;
    font-style: italic;
  }
}

nav {
  position: fixed;
  bottom: 40px;
  left: 0;
  z-index: 100;
  ul {
    list-style: none;
    padding-left: 30px;
    li {
      margin: 40px 0;
      color: #fff;
      text-transform: uppercase;
      transform: translateX(-100%);
      transition: transform 0.4s ease-in;
      i {
        font-size: 20px;
        margin-right: 10px;
      }
      + li {
        margin-left: 15px;
        transform: translateX(-150%);
        + li {
          margin-left: 30px;
          transform: translateX(-200%);
        }
      }
    }
  }
}
