.project-container {
  width: 100%;
  height: 60%;
  margin: 0 auto;
  display: block;
  flex-direction: column;
  align-items: center;
}

.main-window {
  --preview-paper: #faf7f0;
  --preview-background: #e9e5dc;
  --preview-ink: #302e2a;
  position: relative;
  width: 1000px;
  max-width: 100%;
  height: 600px;
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid rgba(250, 247, 240, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 75% 65%, var(--preview-paper), transparent 65%),
    var(--preview-background);
  color: var(--preview-ink);
}

#go-back-button {
  margin: 10px 0px 0px 50px;
}

#explore-button {
  position: absolute;
  top: 70%;
  left: 10%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 200px;
  max-width: 80%;
  min-height: 60px;
  margin: 0;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: var(--preview-ink);
  color: var(--preview-paper);
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-family: "Manrope", sans-serif;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.55s ease,
    color 0.55s ease,
    transform 0.35s ease;
}

#explore-button > span {
  position: relative;
  z-index: 1;
}

#explore-button:is(:hover, :focus-visible) {
  background-color: transparent;
  border-color: var(--preview-ink);
  color: var(--preview-ink);
  transform: translateY(-2px);
}

#explore-button:focus-visible {
  outline: 2px solid var(--preview-ink);
  outline-offset: 7px;
}

#explore-button:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #explore-button {
    transition: none;
  }
  #explore-button:is(:hover, :focus-visible) {
    transform: none;
  }
}

/* A soft wave connects the navigation to the top of the preview. */
#main-nav {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 58px;
}

#main-nav::before {
  content: "";
  position: absolute;
  inset: 0 max(0px, calc((100% - 560px) / 2));
  z-index: -1;
  background: var(--preview-paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 104' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000C830 0 850 92 660 92H340C150 92 170 0 0 0Z' fill='black'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 104' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000C830 0 850 92 660 92H340C150 92 170 0 0 0Z' fill='black'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}

#main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 12px);
  width: fit-content;
  max-width: 90%;
  margin: 0 auto;
  padding: 2px 0;
  list-style: none;
}

#main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--preview-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#main-nav a:hover,
#main-nav a[aria-current] {
  background: rgba(48, 46, 42, 0.07);
}

#main-nav a:focus-visible {
  outline: 2px solid var(--preview-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #main-nav a {
    transition: none;
  }
}
