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

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-top: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Merriweather', serif;
  background: rgb(17, 17, 17);
  background: linear-gradient(
    30deg,
    rgba(4, 13, 22, 1) 35%,
    rgba(0, 27, 36, 1) 100%
  );
  user-select: none;
}

label {
  color: white;
  text-decoration: none;
}

main {
  position: absolute;
  color: white;
  height: 100%;
}

aside {
  position: absolute;
  top: 0;
  left: 0;
  background: #38f3c9;
  color: #fff;
  overflow: hidden;
  width: 0;
  height: 100%;
  z-index: 99999999;
  transition: width 1s;
  opacity: 1;
}

h1 {
  position: absolute;
  cursor: pointer;
  top: 20px;
  left: 20px;
  text-align: left;
  font-size: 1rem;
  padding-bottom: 0.3rem;
  z-index: 9999;
}

h1 div {
  width: 100%;
  height: 3px;
  margin-top: 3px;
  background: white;
  transition: all 0.5s ease-out;
}

h1:hover div {
  width: calc(100% - 35px);
}

aside h1 {
  color: white;
}

aside h1:hover div {
  width: 100%;
}

h2 {
  position: absolute;
  display: block;
  width: 80vw;
  bottom: 20px;
  left: 20px;
  margin: 0;
  font-size: 1.6rem;
  max-width: 80%;
  line-height: 2.4rem;
}

main h2 {
  transition: opacity 1s;
}

aside h2 {
  font-size: 1rem;
  line-height: 1.8rem;
  max-width: 80%;
}

aside h2 div {
  position: relative;
  top: 2px;
  display: inline-block;
  width: 20px;
  height: 3px;
  background: #fff;
  animation-name: example;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

@keyframes example {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  51% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
}

.main {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100%;
}

.toggle {
  width: 100%;
}

.hide {
  opacity: 0;
}

.white {
  color: white;
}

.black {
  color: #223;
}

#cube {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 3;
}

@media only screen and (min-width: 450px) {
  h1 {
    left: 50px;
    top: 50px;
  }

  h1 div {
    margin-top: 6px;
  }

  h2 {
    font-size: 3rem;
    left: 50px;
    bottom: 50px;
    line-height: 3.8rem;
    max-width: 100%;
  }

  aside h2 {
    font-size: 1.4rem;
    line-height: 2.6rem;
    max-width: 430px;
  }
  aside h2 div {
    width: 25px;
    height: 4px;
  }
}
