@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

html, body {
  background-color: white;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  color: #444;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.photo-column {
  flex-shrink: 0;
}

.photo-column img {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}

.project-container .photo-column img {
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.project-container .photo-row {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.project-container .photo-row img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.text-column {
  max-width: 650px;
}

.project-container .text-column {
  max-width: 700px;
}

h1 {
  font-size: 32px;
  font-weight: bold;
  opacity: 0.9;
  margin-bottom: 0.6em;
  color: #888;
  letter-spacing: normal;
}

nav {
  margin-bottom: 1.5em;
  font-size: 24px;
}

a {
  color: green;
  text-decoration: underline;
  text-decoration-color: black;
}

nav a[href="Art.html"] {
  color: #000080;
}

a:hover {
  color: #006400;
  text-decoration-color: black;
}

p {
  line-height: 1.8;
  font-size: 16px;
}

.small-bio {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.small-footer p {
  font-size: 16px;
  opacity: 0.5;
  margin-top: 40px;
}

.text-column,
.small-bio,
.small-footer p {
  letter-spacing: -0.25px;
}

html, body {
  cursor: url("green-chat-bubble.png") 16 16, auto !important;
}

a, button, [role='button'], input[type='button'], input[type='submit'] {
  cursor: url("green-chat-bubble.png") 16 16, pointer !important;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
textarea {
  cursor: text !important;
}

.single-line {
  white-space: nowrap;
}

nav a:not(:first-child)::before {
  content: "/";
  color: #888;
  margin: 0 12px;
}

nav a + a::before {
  content: "/";
  color: #888;
  margin: 0 12px;
  text-decoration: none;
  display: inline-block;
}

.gradient-hover {
  display: inline-block;
  background-image: linear-gradient(90deg, #888, #888);
  background-size: 200% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-image 0.6s ease;
}

.gradient-hover:hover {
  background-image: linear-gradient(
    90deg,
    #888 0%,
    #000 50%,
    #888 100%
  );
  animation: gradient-shift 8s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  0% { background-position: 48% 50%; }
  100% { background-position: 52% 50%; }
}

.no-underline {
  text-decoration: none;
}

.no-underline:hover {
  text-decoration: none;
}

.caption-row,
.project-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  column-gap: 24px;
  justify-items: center;
  align-items: center;
}

.caption-row {
  margin-bottom: 10px;
}

.caption {
  font-size: 0.95rem;
  color: #8b929b;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

#sketch-holder {
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

#sketch-holder canvas {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
}

.image-tile {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-tile img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.projects-bubble:has(.project-row > :nth-child(1):hover) .caption-row .caption:nth-child(1) { color: #228B22; }
.projects-bubble:has(.project-row > :nth-child(2):hover) .caption-row .caption:nth-child(2) { color: #228B22; }
.projects-bubble:has(.project-row > :nth-child(3):hover) .caption-row .caption:nth-child(3) { color: #228B22; }

@media (max-width: 768px) {

  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .text-column {
    max-width: 100%;
  }

  .photo-column img {
    width: 220px;
  }

  .project-container .photo-column img,
  .project-container .photo-row img {
    width: 100%;
    max-width: 420px;
  }

  .project-container .photo-row {
    flex-direction: column;
    gap: 20px;
  }

  .caption-row,
  .project-row {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
  }

  .single-line {
    white-space: normal;
  }

  #sketch-holder,
  .image-tile {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

}