/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLOR THEME */
:root {
  --primary-color: #e12626;
  --secondary-color: #ebf0f2;
  --background-color: #111034;
  --text-color: #16f514;
  --text-stroke: #020114;
}

@font-face {
  font-family: "Cat";
  src: url(media/fonts/CatComic.ttf);
}
@font-face {
  font-family: "Blopy";
  src: url(media/fonts/Blopy.ttf);
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cat";
}

html,
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: url("media/imgs/jar-bg.jpg") no-repeat center center fixed;
  background-size: cover;
}

.container {
  width: 100dvw;
  height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr clamp(400px, 40vw, 95%) 1fr;
  grid-template-rows: 2fr clamp(300px, 25vh, 95%) 5fr;
}

.content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 0 24px;

  grid-column: 2;
  grid-row: 2;
}

h1 {
  font-family: "Blopy";
  font-weight: 100;
  font-size: clamp(2.4rem, 6rem, 500%);
  text-shadow: 2px 2px 0 var(--text-stroke), -2px 2px 0 var(--text-stroke),
    2px -2px 0 var(--text-stroke), -2px -2px 0 var(--text-stroke);
}

ul {
  list-style: none;
  padding: 0 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon {
  width: 48px;
}

.links a {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  z-index: 10;
  color: var(--secondary-color);
  transition: color 100ms ease-in-out;
  font-size: 1.6rem;
  text-shadow: 2px 2px 0 var(--text-stroke), -2px 2px 0 var(--text-stroke),
    2px -2px 0 var(--text-stroke), -2px -2px 0 var(--text-stroke);
}
.links a:hover .icon {
  animation: rotateShake 0.3s ease-in-out;
}
.links a:hover {
  color: var(--primary-color);
}

@keyframes rotateShake {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0);
  }
}

.hero-img {
  grid-column: 2;
  grid-row: 2;
  position: relative; /* This makes it the reference for absolute positioning */
  width: 100%;
  height: 100%; /* Ensure it fills the row properly */
  pointer-events: none;
}

#hero {
  position: absolute;
  left: 80%;
  bottom: -80%;
  transform: translateX(-50%) translateY(35%);

  width: clamp(250px, 50vw, 600px);
  pointer-events: none;
}
