@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;

  transition: background-image 0.5s ease-in-out, background-color 0.5s ease-in-out;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.main-box {
  max-width: 800px;
  margin: 3rem auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.header-with-profile {
  margin-bottom: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-frame {
  padding: 0;
  background: none;
  box-shadow: none;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 30%;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  transition: transform 0.3s ease;
}

.profile-pic:hover ~ nav,
.profile-pic:hover ~ section,
.profile-pic:hover ~ footer {
  display: none;
}

.profile-frame:hover ~ body,
.profile-pic:hover {
  background-image: url('/resources/imgs/woodcuts_11.jpg');
}

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #000;
  transition: background-color 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

nav a:hover {
  background-color: #d5fdd5;
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.intro-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.intro-wrapper h2 {
  margin-left: 0.5rem;
}

.intro-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.25rem;
  background-color: #f9f9f9;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.bottom-columns {
  max-width: 800px;
  margin: 0 auto;
}

.columns div {
  flex: 1;
  min-width: 160px;
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.project-box {
  max-width: 700px;
  margin: 0 auto 2rem;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.project-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-box li {
  margin: 0.75rem 0;
}

.project-box a {
  text-decoration: none;
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-box a:hover {
  background-color: #d5fdd5;
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

/* @media (max-width: 500px) and (orientation: portrait) {
  .main-box {
    width: 95%;
    padding: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-pic {
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 1.4rem;
    word-break: break-word;
  }
} */

@media (max-width: 500px) and (orientation: portrait) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    margin-bottom: 0.5rem;
  }
}

.intro-box:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}