/* === Fonts === */
.funnel-sans-<uniquifier> {
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.funnel-display-<uniquifier> {
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/* === Global Styles === */
body {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  background-color: #000;
  color: #fff;
}

/* === Intro Section === */
.intro {
  text-align: left;
  max-width: 1000px;
  margin: 5rem auto 2rem 5rem;
}

.intro h1 {
  font-size: 5rem;
  margin: 0;
}

.intro p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.intro small {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Game Canvas === */
canvas {
  display: none;
  margin: 0 auto;
  background: #000;
  z-index: 1;
}

/* Fullscreen canvas when game is active */
#gameCanvas.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* === Main Content === */
.main-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.details {
  align-self: end;
  padding-right: 5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.skills {
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.links {
  font-size: 1rem;
}

.links a {
  color: #fff;
  text-decoration: underline;
  margin-right: 1rem;
}

.photo img {
  width: 69%;
  max-width: 500px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 5rem; /* shift right on desktop */
}

/* === Footer === */
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  text-align: center;
}

/* === Responsive Styles === */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .details {
    padding: 0 1.5rem;   /* adds breathing room on both sides */
    max-width: 600px;    /* makes lines easier to read */
    margin: 0 auto;      /* centers inside available space */
    text-align: left;    /* keep natural left alignment */
  }

  .photo {
    display: flex;
    justify-content: center;  /* horizontal centering */
    align-items: center;      /* vertical centering if needed */
    margin: 1rem 0;
  }

  .photo img {
    width: 69%;
    max-width: 500px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 0; /* reset for mobile */
  }

  .photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
  }

  #mobileOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0); /* transparent overlay */
  }
}

@media (max-width: 500px) {
  .intro {
    text-align: left;
    max-width: 500px;
    margin: 1rem auto 1rem 1.5rem;
  }

  .intro h1 {
    font-size: 3.5rem;
    margin: 0;
  }

  .intro p {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  .intro small {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
  }
}

