:root {
  --bg: #f0dba5;
  --text: #151515;
  --yellow: #edb74d;
  --red: #eb6666;
  --green: #6fb18a;
}

body {
  overflow-x: clip;
  height: 100vh;
  margin: 0 10em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--bg);
  font-family: "EB Garamond";
}
*{
    font-family: "EB Garamond";
}

h1 {
  font-size: 60px;
  font-weight: normal;
  margin: 0;
}

h2 {
  font-size: 32px;
}

p {
  font-size: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

.body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.body::before,
.body::after {
    position: fixed;
    left: 0;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    z-index: 0;  /* Change this from -1 to 0 */
    opacity: 40%;
}

.body::before {
  background: #8c8c8c;
  filter: url(#noiseFilter);
}

/* Blobs */
.blob-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -2;
  height: 500px;
  width: 500px;
  position: relative;
  right: 5em;
  overflow-x: visible;
}

.blob {
  border-radius: 100px;
  filter: blur(60px);
}

.yellow {
  background-color: var(--yellow);
  position: absolute;
  top: 200px;
  left: 100px;
  height: 200px;
  width: 200px;
  animation: yellow 8s infinite ease;
}

.green {
  background-color: var(--green);
  position: absolute;
  top: 80px;
  right: -20px;
  height: 200px;
  width: 250px;
  animation: green 8s infinite ease;
}

.red {
  background-color: var(--red);
  position: absolute;
  right: 0;
  top: 300px;
  height: 250px;
  width: 200px;
  animation: red 8s infinite linear;
}

@keyframes yellow {
  0% { top: 200px; left: 100px; transform: scale(1); }
  30% { top: 300px; left: 150px; transform: scale(1.2); }
  60% { top: 100px; left: 200px; transform: scale(1.3); }
  100% { top: 200px; left: 100px; transform: scale(1); }
}

@keyframes green {
  0% { top: 80px; right: -20px; transform: scale(1.2); }
  30% { top: 300px; right: -20px; transform: scale(1); }
  60% { top: 200px; right: 100px; transform: scale(1); }
  100% { top: 80px; right: -20px; transform: scale(1.2); }
}

@keyframes red {
  0% { top: 250px; right: 0px; transform: scale(1); }
  30% { top: 150px; right: 150px; transform: scale(1.4); }
  60% { top: 250px; right: 100px; transform: scale(1); }
  100% { top: 250px; right: 0px; transform: scale(1); }
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 3em;
}

/* Add a media query for smaller screens */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  h2 {
    display: none;
  }

}

.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 130%;
  gap: 3em;
  background: linear-gradient(to right, #151515 1px, transparent 1px) 0 0,
    linear-gradient(to right, #151515 1px, transparent 1px) 0 100%,
    linear-gradient(to left, #151515 1px, transparent 1px) 100% 0,
    linear-gradient(to left, #151515 1px, transparent 1px) 100% 100%,
    linear-gradient(to bottom, #151515 1px, transparent 1px) 0 0,
    linear-gradient(to bottom, #151515 1px, transparent 1px) 100% 0,
    linear-gradient(to top, #151515 1px, transparent 1px) 0 100%,
    linear-gradient(to top, #151515 1px, transparent 1px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;  /* Add this */
    z-index: 2;  /* Add this */
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2em;
    position: relative;  /* Add this */
    z-index: 2;  /* Add this */
}

@media only screen and (max-width: 1000px) {
  body {
    margin: 1em;
  }
}

.hover {
  width: 150px;
  height: 50px;
  font-size: 16px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.hover {
  color: #515151;
  transition: 0.5s all;
  border: 1px solid #515151;
}

.hover:before,
.hover:after {
  content: "";
  position: absolute;
  height: 0%;
  width: 50%;
  background: transparent;
  transition: 0.3s all;
  z-index: -1;
}

.hover:before {
  bottom: 0;
  left: 0;
}

.hover:after {
  right: 0;
  top: 0;
}

.hover:hover {
  color: black;
  border: 1px solid #515151;
}

.hover:hover:after,
.hover:hover:before {
  height: 100%;
  background: #515151;
}

.primary {
  background: rgba(0, 0, 0, 0.1);
}

.link {
  display: inline-block;
  position: relative;
  color: #082032;
  font-size: 20px;
}

.link:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: black;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#canva { 
    position: absolute;
    height: 10em;
    aspect-ratio: 1/1;
    z-index: 0;  /* Change this from -10 to 1 */
}
.link {
    font-size: 20px;
    position: relative;
    color: #082032;
}

.blob-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -2;
  height: 500px;
  width: 500px;
  position: relative;
  right: 5em;
  overflow-x: visible;
}