@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

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

/*Color Palatte */
:root {
  --primary: hsl(60, 100%, 50%);
  --accent: hsl(240, 100%, 50%);
  --negative: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
}

body {
  width: 100%;
  display: grid;
  grid: repeat(12, 60px) / repeat(18, 60px);
  overflow-x: hidden;
  gap: 10px;
}

h1,
h2,
h3,
p {
  color: var(--black);
  text-transform: lowercase;
}

/* header decoration*/
header {
  background-color: var(--primary);
  grid-area: 2/ 1 / span 1 / span 10;
  height: 30px;
  border-radius: 0 50px 50px 0;
  align-self: flex-end;
  transform: scaleX(0);
  transform-origin: left;
  animation: scaleLeft 2s ease-out 1s forwards;
}

@keyframes scaleLeft {
  to {
    transform: scaleX(1);
  }
}

/* h1 decoration */

h1 {
  grid-area: 3/ 7 / span 1/ 11;
  font-weight: 200;
  justify-self: flex-end;
  font-size: 45px;
  opacity: 0;
  animation: appear 2s ease-out 2s forwards;
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

/* aside bottom decoration */

aside {
  grid-area: 8 /17 /13 / span 1;
  background-color: var(--primary);
  width: 25px;
  justify-self: flex-start;
  border-radius: 50px 50px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: slideUp 2s ease-out 1s forwards;
}

@keyframes slideUp {
  to {
    transform: scaleY(1);
  }
}

/* main decoration */

main {
  grid-area: 6/ 1/ 13 / span 10;
  background-color: var(--primary);
  border-radius: 0 50px 0 0;
  transform: scale(0);
  transform-origin: bottom left;
  animation: fade 2s ease-out 1s forwards;
  mix-blend-mode: darken;
}

@keyframes fade {
  to {
    transform: scale(1);
  }
}

/* h2 decoration */

h2 {
  grid-area: 5/ 17 / span 8 / span 1;
  font-size: 14px;
  font-weight: 300;
  z-index: 19;
  letter-spacing: 2px;
  word-spacing: 2px;
  opacity: 0;
  transform: translateX(5px) translateY(-900px);
  writing-mode: vertical-rl;
  justify-self: flex-start;
  animation: lineFade 2s ease-out 2.2s forwards;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes lineFade {
  to {
    transform: translateY(0) translateX(5px);
    opacity: 1;
  }
}

/* p decoration */

p {
  font-weight: 100;
  font-size: 22px;
  grid-area: 9 / 14 / span 2 / span 3;
  align-self: center;
  text-align: right;
  animation: appear 2s ease-out 2.2s forwards;
  opacity: 0;
}

/* Button decoration */

button {
  grid-area: 2 / 15 / span 1 / span 2;
  outline: none;
  border: none;
  background-color: var(--accent);
  color: var(--negative);
  height: 35px;
  border-radius: 50px;
  transform: translateX(500px);
  align-self: flex-end;
  animation: buttonMove 1s ease-out 0.2s forwards;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.25);
  transition: all 0.4s;
}

@keyframes buttonMove {
  to {
    transform: translateX(0);
  }
}
button:hover {
  box-shadow: none;
}
button:active {
  box-shadow: none;
}

/* h3 decoration */

h3 {
  font-size: 70px;
  color: var(--negative);
  font-weight: 400;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.8), 4px 4px greenyellow;
  transform: translateX(-1200px);
  animation: sideFade 2s ease-out 1s forwards;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.38);
}
@keyframes sideFade {
  to {
    transform: translateX(0);
  }
}

h3:nth-of-type(1) {
  grid-area: 11/ 6 / span 2 / span 10;
  z-index: 16;
}

h3:nth-of-type(2) {
  grid-area: 7/ 3 / span 1 / span 14;
  z-index: 45;
}
