@font-face {
    font-family: "VCR OSD Mono";
    src: url('../assets/fonts/VCR_OSD_MONO.ttf');
}
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}

body {
    
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    margin: 0;
    padding: 0;
}
main {
    flex: 1 0 auto; /* Allows main to expand and push footer down */
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    font-family: "VCR OSD Mono", monospace;
    text-decoration: none;
    color: #000;
}

nav img {
    vertical-align: middle;
    width:16px; height:16px;
    margin-right: 5px;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 10;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav a:hover {
    color: #55ff55;
    text-shadow: 0 0 5px #55ff55;
}

h1 {
    font-family: "VCR OSD Mono", monospace;
}

/*index page*/

main {
    margin-top: 70px;
    padding: 20px;
    text-align: center;
}

.home-hero img {
    width: 65%;
    margin-bottom: 20px;
    image-rendering: pixelated;
}


.btn {
    font-family: "VCR OSD Mono", monospace;
    border: 2px solid #000;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s;
    display:inline-block;
    margin:10px;
}

.btn:hover {
    background-color: #55ff55;
    border-color: #55ff55;
    box-shadow: 0 0 8px #55ff55;
    color: #fff;
}

footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

footer .social-icons img {
    width:24px;
    margin:0 10px;
}

/*build page*/

h2 {
    font-family: "VCR OSD Mono", monospace;
}

.specs ul,
.comparison ul {
    list-style-type: none; /* Removes bullet points */
    padding-left: 0; /* Removes default padding for neatness */
}
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.img-container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.img-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/*projects page*/

.projectSections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .projectlink {
    text-decoration: none;
    color: inherit;
  }
  
  .images {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 10px;
  }
  
  .projectlink:hover .images {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
  }
  
  .projectlink:hover h1,
  .projectlink:hover p {
    color: #55ff55;
    text-shadow: 0 0 5px #55ff55;
  }

/*laptop project gallery*/
.laptop-project .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.laptop-project .img-card {
    border: 2px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.laptop-project .img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.project-summary {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  display: block; /* ← changed from flex to block for natural flow */
  text-align: center;
}

.project-summary h2,
.project-summary h3,
.project-summary p {
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
}

.project-summary h2, h3 {
  font-family: "VCR OSD Mono", monospace;
}

.project-summary ul {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.project-summary .img-card {
  margin: 1rem auto;
  max-width: 600px;
  border: 2px solid #ccc;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background-color: #fff;
}

.project-summary .img-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-summary .caption {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  margin-top: 0.3rem;
}
/*websites page styles*/
.websites .website-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.websites .website-list ul {
    list-style-type: none;
    padding: 0;
}

.websites .website-list li {
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.websites .website-list h3 a {
    font-family: "VCR OSD Mono", monospace;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.websites .website-list h3 a:hover {
    color: #55ff55;
}

.websites .website-list p {
    font-size: 14px;
    margin-top: 5px;
    color: #555;
}
/*project pages*/
.projectSections {
    display: flex;
    flex-direction: column;
}

.project-detail {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    text-align: left;
}

.project-detail h1 {
    font-family: "VCR OSD Mono",monospace;
    text-align: center;
    margin-bottom: 20px;
}

.project-detail .description {
    font-size: 16px;
    margin-bottom: 30px;
}

.project-detail .steps ol {
    font-size: 16px;
    line-height: 1.8;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.img-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background: #fafafa;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    text-align: center;
}

.img-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.img-card p {
    margin-top: 8px;
    font-size: 14px;
}

/*game page*/

/* Game Page Styling */
.game-page {
    max-width: 1200px;
    margin: auto;
    padding-top: 60px;
}

/* Hero Section */
.video-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-hero .overlay h1 {
    font-family: "VCR OSD Mono", monospace;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-hero .overlay p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Game Description */
.game-description {
    text-align: left;
    padding: 20px;
}

.game-description h2 {
    font-family: "VCR OSD Mono", monospace;
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.game-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-description h3 {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.game-description ul {
    list-style-type: disc;
    margin-left: 40px;
    font-size: 16px;
    line-height: 1.8;
}

/* General Mobile Styles */
@media only screen and (max-width: 768px) {
  
    /* Navigation Bar Adjustments */
    nav ul {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
      
    }
  
    nav ul li {
      text-align: center;
      margin-bottom: 10px;
    }
  
    nav ul li a {
      display: block;
    }
  
    nav ul li img {
      display: none; /* hides icons on small screens for space */
    }
  
    nav .dropdown-content {
      position: static;
      display: none;
      border: none;
      box-shadow: none;
      padding: 0;
    }
  
    /* Main Content Padding */
    main {
      margin-top: 120px; /* increase space due to taller nav */
      padding: 10px;
    }
    nav {
        height: auto; /* ensures nav wraps correctly on mobile */
    }
  
    /* Hero Section Adjustments */
    .home-hero img {
      width: 100%;
      height: auto;
    }
  
    .home-hero h1 {
      font-size: 24px;
    }
  
    .home-hero p {
      font-size: 14px;
      padding: 0 10px;
    }
  
    .buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  
    .btn {
      width: 80%;
      margin: 0 auto;
    }
  
    /* Footer Adjustments */
    footer {
      padding: 15px;
      font-size: 12px;
    }
  
    footer .social-icons img {
      width: 20px;
      margin: 0 5px;
    }
  
    /* Build Page Adjustments */
    .gallery {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .img-container img {
      width: 100%;
      height: auto;
    }
  
    .specs, .comparison {
      text-align: left;
    }
  
    .specs ul, .comparison ul {
      padding-left: 0;
    }
  
    /* Projects Page Adjustments */
    .projectSections {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
  
    .images img {
        width: 250px; /* fixed width */
        height: 150px; /* fixed height */
        object-fit: cover; /* ensures consistent aspect ratio */
        margin-bottom: 10px;
    }
    .images img {
        width: auto; /* images take full container width on mobile */
        height: auto; /* maintains aspect ratio on smaller screens */
    }

    .images {
        width: 90%;
        margin: 0 auto; /* centers content */
    }
  
    /* Games Page Video Hero */
    .video-hero {
      height: 30vh;
    }
  
    .video-hero .overlay h1 {
      font-size: 24px;
    }
  
    .video-hero .overlay p {
      font-size: 14px;
    }
  
    /* Contact Page Form Adjustments */
    form {
      width: 90%;
      margin: 0 auto;
    }
  
    form input, form textarea {
      width: 100%;
    }
  
    /* Project Detail Pages Adjustments */
    .project-detail, .game-description {
      padding: 15px;
    }
  
    .project-detail h1 {
      font-size: 22px;
    }
  
    .project-detail .description, 
    .project-detail .steps ol,
    .game-description p, 
    .game-description ul {
      font-size: 14px;
    }
  
    /* Laptop Project and iMac Gallery */
    .image-gallery, .laptop-project .image-gallery {
      grid-template-columns: 1fr;
    }
  
    .img-card img, .laptop-project .img-card img {
      height: auto;
    }
  }