
/* Reset common issues */
html, body {
  
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: block;       /* remove grid/center layout here */
  overflow-x: hidden;   /* ✅ prevents any horizontal scroll */
  background-color: #000;
  color: #fff;
  overflow-y: hidden;
}

/* Un-nested this */
body * {
  transform-style: preserve-3d;
}

.content-grid {
  display: grid;
  grid-template-columns: 5fr 1fr;
  gap: 2rem;

  width: 100vw;
  height: 80vh;        /* ✅ This makes it full viewport height */
  max-width: none;
  margin: 0 auto;         /* ✅ This centers it horizontally */
  box-sizing: border-box;
}



.content-left {
  background-color: #222;
  color: white !important;
  padding: 2rem;
  border-radius: 5px;
  width: 100%;
  overflow-y: auto;
  font-family: 'Varela Round', sans-serif;
}



/* Right Column */
.content-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Content Title === */
#name p{
  width: 100%;
  display: grid;
  place-items: center;
  font-size: 1em;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}
#name h1{
  width: 100%;
  font-size: 4em;
  color: #f74600;
  margin-bottom: 1rem;
  text-align: center;
}

/* === Project Content Blocks === */
.project-content {
  display: none;
}

/* Show content1 if p1 is checked */
#p1:checked ~ .content-grid .content-left .content1 {
  display: block;
}

/* Show content2 if p2 is checked */
#p2:checked ~ .content-grid .content-left .content2 {
  display: block;
}

/* === Tab Styling === */
.project-tab {
  display: block;
  width: 100%;
  background: #807e7e;
  border: 1px solid #333;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.project-tab:hover {
  background-color: #e0e0e0;
}

/* Show name only by default */
#name {
  display: block;
}

#p3:checked ~ .content-grid .content-left .content3 {
  display: block;
}

#p4:checked ~ .content-grid .content-left .content4 {
  display: block;
}

#p5:checked ~ .content-grid .content-left .content5 {
  display: block;
}

#p6:checked ~ .content-grid .content-left .content6 {
  display: block;
}

/* Hide #name when any project is selected */
#p1:checked ~ .content-grid .content-left #name,
#p2:checked ~ .content-grid .content-left #name,
#p3:checked ~ .content-grid .content-left #name,
#p4:checked ~ .content-grid .content-left #name,
#p5:checked ~ .content-grid .content-left #name,
#p6:checked ~ .content-grid .content-left #name {
  display: none;
}

/* Highlight the selected tab */
#p1:checked ~ .content-grid .content-right label[for="p1"],
#p2:checked ~ .content-grid .content-right label[for="p2"],
#p3:checked ~ .content-grid .content-right label[for="p3"],
#p4:checked ~ .content-grid .content-right label[for="p4"],
#p5:checked ~ .content-grid .content-right label[for="p5"],
#p6:checked ~ .content-grid .content-right label[for="p6"] {
  background-color: #333;
  color: white;
  border-color: #666;
}


.site-content {
  width: 100%;
  padding-bottom: 60px; /* space for the fixed footer */
}

a.github-link {
  color: white;
}


footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  color: #c8c8c8;
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

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


img {
  display: block;
  border-radius: 5%;
  width:69%
}
body {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #eee;
  background-color: #000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.content-left {
  max-width: 90ch; /* limits line length for readability */
  margin: 0 auto;
}

.content-left p,
.content-left ul,
.content-left li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  text-align: left;
}

h1, h2 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 {
  font-size: 2.8rem;
  color: #f74600;
  text-align: center;
}

h2 {
  font-size: 1.6rem;
  color: #fff;
}

ul {
  padding-left: 1.5rem;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-content img.project-image {
  float: right;             /* or left if you prefer */
  max-height: 40%;           /* image size relative to container */
  margin: 0 0 1rem 1rem;    /* space between image and text */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-image-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  object-fit: cover;
  aspect-ratio: 1 /1 ;
}

.topnav {
  position: fixed;
  top: 0;
  right: 0; /* anchor to right */
  height: 5em;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* aligns children to the right */
  padding: 0 1em;
  font-size: 1.2rem;
  font-family: sans-serif;
  padding-right: 21.5%;
}


.topnav a {
  text-decoration: none;
  margin-right: 1em;
  color: #ffffff;
}

.topnav a.active {
  font-weight: bold;
}

