:root {
  --grid-bg: #020c1e;
  --grid-bg-shader: #050F1F;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font: 16px/1.6 JetBrains Mono, monospace, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

main.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.hero {
  flex: 1;
  /* nimmt den freien Platz ein */
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  ;
  padding: 2rem;

  p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-top: 1rem;
  }
}

.hero h2 {
  font-size: 70px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

  strong {
    color: #9d87ff;
  }
}

.hero p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-size: 24px;
}

.logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 100px;
  z-index: 2;
  opacity: 50%;
  transition: opacity 0.8s ease-in-out;
}

.logo:hover {
  opacity: 100%;
  transition: opacity 0.4s ease-in-out;
}

/* Background iframe */
#bgframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
}


/* Navbar styles */
.nav {
  position: fixed;
  top: 10rem;
  right: 3rem;
  z-index: 3;
}

.nav ul {
  margin: 0;
  padding: .9rem;
  list-style: none;
  background: rgba(0, 0, 0, 0.178);
  border: #fff solid 1px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-align: center;
}

.nav--diag a {
  display: inline-flex;
  align-items: center;
  padding: .6rem .9rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  transition: color 0.4s ease-in-out;
}

.nav--diag a:hover {
  color: rgb(110, 110, 110);
  transform: scale(0.95);
  transition: 0.3s ease-in-out;

}

.footer {
  background: #141414;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.social-icons i {
  font-size: 3rem;
  color: #fff;
  transition: color .3s ease;
}

.social-icons i:hover {
  color: rgb(110, 110, 110);
}

.footerLinks {
  list-style: none;
  padding: 0;

}

.footerLinks li {
  margin: .5rem 0;

}

.footerLinks a {
  color: #fff;
  text-decoration: none;

}

.footerLinks a:hover {
  color: rgb(110, 110, 110);
  transform: scale(0.95);
  transition: 0.3s ease-in-out;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--grid-bg);
  padding: 2rem;
  color: #fff;
}

.project {
  width: 30rem;
  height: 20rem;
  padding: 2rem;
  color: #fff;
  text-align: center;
  font-weight: bold;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  -webkit-text-stroke: 1px black;
  color: white;
  text-shadow:
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.1);
}



.project, .projectlink {
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s, border 0.3s, box-shadow 0.3s;
  padding: 10px;
}

.project:hover, .projectlink:hover {
  border-color: white;          
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.452);   
  transform: scale(1.05);
}

#ghostPlace {
  height: 1000px;
  width: 1000px;
}
