:root {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: white;
  color: black;
  letter-spacing: -0.022em;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

header {
  position: absolute;
  top: 1.8rem;
  left: 2rem;
}

header img {
  height: 3rem;
}

.contact {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.contact:hover {
  color: blue;
}

.projects {
  position: absolute;
  bottom: 2.25rem;
  left: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3125rem;
}

.project-item {
  cursor: pointer;
  transition: color 0.3s;
  font-size: 1rem;
  display: inline;
  width: auto;
  line-height: 1;
}

.project-item:hover {
  color: blue;
  text-decoration: underline;
}

#preview,
#preview-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60vw;
  max-height: 80vh;
  display: none;
  z-index: 999;
  background-color: transparent;
}

/* ----------- MOBILE STYLES ----------- */
.bio {
  display: none;
}

.copyright {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding: 2rem;
  }

  .bio {
    display: block;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: left;
  }

  .copyright {
    display: none;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 4rem;
  }

  header {
    position: relative;
    top: 3;
    left: 0;
  }

  .contact {
    position: relative;
    top: 0;
    right: 0;
    text-align: right;
    margin-bottom: 2rem;
  }

  .projects {
    position: relative;
    display: flex;
    top: 3;
    left: 0;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .project-item {
    text-align: left;
    font-size: 0.8rem;
    width: 100%;
    max-width: 30rem;
  }
}
