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

:root {
  --dark-color: #222821;
  --mid-dark: #f952b8;
  --light-color: #ece0c8;
  --mid-light: #ffedd5;
  --shadow: #0005;
  --linear-rainbow: linear-gradient(to right, #ede6bf, #ecc947, #cb5a31, #6f5d79, #4e779a);
  --circle-rainbow: radial-gradient(circle at left top, #ede6bf, #ecc947, #cb5a31, #6f5d79, #4e779a);
  --noise-texture: url("./assets/noise.png");
  --gif-texture: url("./assets/vhs.gif");
}

html,
body {
  margin: 0;
  height: 100vh;
  font-family: Noto Sans, SF Pro SC, SF Pro Text, SF Pro Icons, PingFang SC, Helvetica Neue, Helvetica, Arial, sans-serif;
}

body {
  display: grid;
  place-items: center;
  background: var(--dark-color);
  background-image: var(--noise-texture);
  background-blend-mode: overlay;
  grid-template-rows: 1fr auto;
}

h1 {
  margin: 0;
  font-weight: 1000;
  font-size: 64px;
  color: var(--light-color);
  text-shadow: 0px 0px var(--shadow);
}

h2 {
  margin: 0;
  color: var(--mid-light);
}

h3 {
  margin: 0;
  color: var(--mid-light);
  line-height: 2em;
}

p {
  font-weight: 700;
  width: 390px;
  font-size: larger;
  color: var(--mid-light);
}

ul {
  font-weight: 700;
  color: var(--mid-light);
  line-height: 2em;
}

header,footer {
  position: relative;
  box-sizing: border-box;
}

nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 48px;
  margin: 30px 128px 50vh 128px;
  font-size: 16px;
}

footer>div {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  margin: 1px 0px;
  font-size: 16px;
  color:var(--mid-light);
}

footer p {
  width: max-content;
  font-family:"Pixelify Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

a {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--mid-light);
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:not(.buy, .buy-cta, .learn) {
  width: 56px;
}

a:hover:not(.buy, .buy-cta, .learn) {
  transition: all 0.2s ease-in-out;
  font-weight: 900;
  text-shadow: 0 0 8px var(--light-color);
}

.window-container {
  margin-top: 20vh;
  padding: 0;
  display: grid;
  height: 640px;
  width: 960px;
  background-image: repeating-linear-gradient(166deg,
      var(--dark-color) 60.2%,
      var(--mid-dark) 61.28%,
      var(--mid-dark) 61.7%,
      var(--dark-color) 62.78%);
  box-sizing: border-box;
  animation: spawn 2s ease-in-out forwards;
  clip-path: polygon(0% 0%, 100% 0%, 100% 62.5%, 0% 100%);
  will-change: transform;
}

.window-container:before {
  content: "";
  display: flex;
  position: absolute;
  background-image: var(--noise-texture);
  height: 640px;
  width: 960px;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

.window-container:hover:after {
  content: "";
  display: flex;
  position: absolute;
  background-image: var(--gif-texture);
  height: 640px;
  width: 960px;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 64%;
  z-index: 3;
}

.palm-leaf {
  background-image: url("./assets/plants2.svg");
  background-size: 60%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  position: absolute;
  top: 30%;
  left: -10%;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.palm-leaf-r {
  background-image: url("./assets/plants1.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  mix-blend-mode: overlay;
  top: -10%;
  left: 70%;
  width: 40%;
  height: 50%;
  z-index: 4;
}

.light-effect {
  background-image: url("./assets/lighteffect.svg");
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  display: flex;
  height: 580px;
  width: 960px;
  z-index: 5;
  opacity: 70%;
}


.main-container {
  padding: 0;
  margin: auto;
  display: grid;
  height: 600px;
  gap: 64px;
  place-items: center;
  box-sizing: border-box;
}

.text-container {
  display: flex;
  flex-direction: column;
  z-index: 6;
  -webkit-text-stroke: 1px var(--shadow);
}

.text-sphere-container {
  display: flex;
  width: 200%;
  gap: 128px;
  align-items: center;
}

.text-container>h1:hover {
  scale: 1.1;
  text-shadow: 10px 10px var(--shadow);;
  transition: all 0.2s;
}

.buy {
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid var(--mid-light);
  height: 40px;
  width: 128px;
  transition: all 0.2s;
}

.buy:hover {
  scale: 1.1;
  background: var(--light-color);
  color: var(--dark-color);
  border: 1px solid var(--light-color);
}

.buy-cta {
  display: grid;
  place-items: center;
  color: var(--dark-color);
  font-weight: 900;
  background-image: linear-gradient(to right,
      var(--light-color),
      var(--light-color));
  height: 40px;
  width: 200px;
  font-size: 16px;
  transition: all 0.4s;
}

.buy-cta:hover {
  scale: 1.1;
  color: var(--light-color);
  background-image: var(--linear-rainbow);
  transition: all 0.2s;
}

.scroll-container {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

}

.content {
  box-sizing: border-box;
  position: relative;
  margin: 10% 2em 0px 2em;
}

.content>h3 {
  text-align: center;
}

.content>h4 {
  margin: 0;
  font-size: 20px;
  color: var(--mid-light);
}

.content>p {
  font-weight: 500;
  font-size: medium;
  width: 960px;
  color: var(--mid-light);
  line-height: 2em;
}

.content>ul>li>a {
  font-weight: 700;
  font-size: large;
}

.content>ul {
  width: calc(960px - 2.5em);
  font-weight: 500;
}

.learn-arrow {
  text-align: center;
  transition: all 0.2s;
  display: block;
  box-sizing: border-box;
  height: 50px;
  position: absolute;
  bottom: 0%;
}

.learn:hover {
  scale: 1.2;
  font-weight: 900;
}

.learn {
  display: grid;
  color: var(--light-color);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.arrow {
  margin: 6px;
  padding: 0;
  font-size: 16px;
  color: var(--light-color);
}

.icons {
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(100%) saturate(100%) hue-rotate(34.29deg) brightness(91.76%);
}

.x-twitter {
  background-image: url("./assets/icons/x-twitter.svg");
}

.mastodon {
  background-image: url("./assets/icons/mastodon.svg");
}

.envelope-solid {
  background-image: url("./assets/icons/envelope-solid.svg");
}

@keyframes spawn {
  0% {
    box-shadow: 0 0 0 var(--shadow);
    opacity: 0%;
  }

  100% {
    box-shadow: 0 0 32px var(--shadow);
    opacity: 100%;
  }
}

@media screen and (max-width: 1600px) {
  .text-container>h1 {
    font-size: 6rem;
    line-height: normal;
  }

  .palm-leaf {
    background-size: 60%;
    top: 30%;
    left: -15%;
  }

  .palm-leaf-r {
    top: -15%;
    left: 60%;
  }
}

@media screen and (max-width: 960px) {
  .text-container>h1 {
    font-size: 6rem;
    line-height: normal;
  }

  .palm-leaf {
    background-size: 60%;
    top: 50%;
    left: -10%;
  }

  .palm-leaf-r {
    top: 0%;
    left: 65%;
  }

  .light-effect {
    background-size: 90%;
    width: 720px;
  }

  .window-container {
    width: 720px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 0% 100%);
  }

  .window-container:hover:after {
    width: 720px;
  }

  .content>p {
    width: 720px;
  }

  .content>ul {
    width: calc(720px - 2.5em);
    font-weight: 500;
  }

  .window-container:before {
    width: 720px;
  }

  .text-sphere-container {
    width: 100%;
  }
}

@media screen and (max-width: 720px) {

  h2 {
    font-size: smaller;
  }

  .main-container {
    height: 200px;
  }

  .text-container>h1 {
    font-size: 2rem;
    line-height: normal;
  }

  .text-container>h2 {
    line-height: 2em;
  }

  .text-container>p {
    display: none;
  }

  .palm-leaf {
    top: 30%;
    left: -20%;
  }

  .light-effect {
    background-size: 90%;
    width: 360px;
  }

  .window-container {
    width: 360px;
    height: 320px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 0% 100%);
  }

  .content>p {
    width: 360px;
    font-size: 1rem;
  }

  .content>h4 {
    width: 360px;
    font-size: 1.2rem;
  }

  .content>ul {
    width: calc(360px - 2.5em);
    font-weight: 500;
  }

  .window-container:before {
    width: 360px;
  }

  .window-container:hover:after {
    background-image: none;
  }

  .text-sphere-container {
    width: 100%;
  }
  .scroll-container {
    width: 360px;
  }

  nav {
    margin: 30px 0px 50vh 0px;
    gap: 10px;
  }
}