/* Mobile First CSS for Nature of Code */
html {
  box-sizing: border-box;
  background: #f8f8f8;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Inter', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #222;
  background: #f8f8f8;
}
header {
  text-align: center;
  padding: 0.8rem 0 0.5rem 0;
  background: none;
  border-bottom: none;
  box-shadow: none;
}
header h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
header h2 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 400;
}
header a {
  color: #222;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
header a:hover {
  color: #d32f2f;
}
main {
  width: 100%;
  max-width: 100vw;
  margin: 0.7rem auto;
  padding: 0.7rem 0.2rem;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #eee;
  font-size: 1.05rem;
}
a {
  color: #d32f2f;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-word;
  font-size: 1.1rem;
  border-radius: 4px;
  padding: 0.1rem 0.2rem;
}
.video-container {
            width: auto;
            height: auto;
            max-width: none;
            margin: 0;
        }

        #video-background {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Changed back from 'contain' to 'cover' */
        }

        .video-description {
            margin: 0 auto 2rem auto;
            padding: 1rem 2rem;
            text-align: center;
            background: transparent;
            max-width: 800px;
        }
  .video-description p {
            font-size: 16px;
            max-width: 600px;  /* Match video container width */
            color: #333;  /* Added to match other text */
        }

        .media-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.media-container .side-image img,
.media-container .video-container video {
  max-width: 120px;
  max-height: 120px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
  display: block;
  background: #f8f8f8;
}
@media (min-width: 600px) {
  .media-container .side-image img,
  .media-container .video-container video {
    max-width: 200px;
    max-height: 200px;
    width: 200px;
    height: 200px;
  }
}

           .side-image {
            width: auto;
            height: auto;
            max-width: none;
            margin: 0;
        }

        .side-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    
.github-link {
  text-align: center;
  margin: 1.2rem auto 1rem auto;
  display: block;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  max-width: 100vw;
  padding: 0.7rem 0.2rem;
  font-size: 1rem;
}
.github-link a {
  color: #d32f2f;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: underline;
  background: none;
  border-radius: 6px;
  padding: 0.3rem 0.2rem;
}
.project-image {
  display: block;
  margin: 1.2rem auto 0.5rem auto;
  max-width: 98vw;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}
.image-caption {
  text-align: center;
  font-size: 1rem;
  color: #444;
  margin: 0.5rem auto 0.2rem auto;
  padding: 0.3rem 0.2rem;
  max-width: 95vw;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  box-shadow: none;
  font-weight: bold;
}
footer {
  text-align: center;
  padding: 0.7rem 0;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2rem;
  background: #fff;
  border-top: 1px solid #eee;
}
@media (min-width: 600px) {
  header {
    padding: 2rem 0 1.2rem 0;
  }
  header h1 {
    font-size: 2rem;
  }
  header h2 {
    font-size: 1.15rem;
  }
  main {
    max-width: 700px;
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
  }
  .github-link {
    max-width: 420px;
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
  }
  .project-image {
    max-width: 420px;
    border-radius: 18px;
    margin: 2rem auto 0.7rem auto;
  }
  .image-caption {
    font-size: 1.08rem;
    max-width: 350px;
    padding: 0.4rem 0.8rem;
    margin: 0.7rem auto 0.2rem auto;
  }
  footer {
    font-size: 1rem;
    padding: 1.2rem 0;
  }
}
@media (min-width: 900px) {
  main {
    max-width: 800px;
    font-size: 1.15rem;
    padding: 1.5rem 2rem;
  }
}