/*
25 AUG 2026
I just removed my own 'normalize' styling at the top of this css file and
added the actual normalize.css file to the css folder in my host files.
*/


body {
  font-family: "Roboto", sans-serif;
  background-color: white;
  /* background-image: linear-gradient(to bottom, rgb(15, 3, 127), rgb(2, 0, 6) ); */
}


 /* ===   TESTING   TESTING  ======================== */
 .project-grid {
    margin-top: 6rem;
 }

 .project-grid h1 {
    color: black;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin: 3rem 0;
    letter-spacing: 1px;
 }

/*  NEW 17 AUG 2026  ======================== */
.container {
  max-width: 70%;
  margin: 0 auto;
  padding: 0 1rem;
  /* border: 2px solid red; */
  /* box-sizing:border-box; */
}


/*  ***   BEGIN NAVBAR STYLES   ***  ================== */

 .navbar {
  display: flex;
  justify-content: center;
  align-items:center;
  width: 90%;
  justify-content: space-between; /*separates .navbar contents to right / left*/
  padding: 1rem 2rem;  /* padding on top/bottom and 0 on right/left sides */
  margin: 0 auto;
  background-color: black;
  position: sticky;      /* Enables sticky positioning */
  top: 0;                /* Sticks exactly at the top of the viewport */
  z-index: 1000;
  align-items: center;
}

.navbar .left {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.navbar .right {
  width: 20%; /*  was 25%*/
  display: flex;
  justify-content: space-between;
  align-items: center;
} 

 .navbar .right a {
  text-decoration: none;
  color: white;
}

.navbar .right a:hover {
  text-decoration: underline;
  color: rgb(255, 0, 0);
}

/* ***  create the hamburger bars *** */

.navbar .bar {
  background-color: black;
  height: 4px;
  width: 36px;
  margin: 3px;
  border-radius: 10px;
}

.navbar .hamburger {
  display: none;
  /* height: 50px;
  width: 50px; */
}
/* ===  END of NAVBAR STYLES ============================ */

/*  space-between styling  */
.space-between {
  margin: 8rem 0;
}

/*  ===   STYLE THE GRID   ========  */
.project-grid {
  /* border: 2px solid blue; */
  width: 100%;
}

p {
  margin: 1rem;
  text-align: justify;
  font-size: 1.2rem;
  font-weight: 300;
}

.intro {
  /* background-color: lightgray; */
  border-left: 2px solid black;
  color: black;
  max-width: 80%;
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4rem;
}

.intro h3 {
  padding-left: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: black;
  /* text-decoration: underline; */
}

.img-details img { 
  width: 60%;
  border: 2px solid black;
  padding: 0.2rem;
  box-sizing: border-box; 
  margin: 1rem 0 0 -1rem;
}

a.external-link {
  color:rgb(3, 15, 254);
  text-decoration: none;
}

a.external-link:hover {
  color: rgb(3, 15, 254);
  text-decoration: underline;
}

.details-list {
  line-height: 2rem;
  font-size: 1.2rem;
  font-weight: 300;
}

/*  Following style creates solid black discs   */

.bullet-points {
  margin-left: 2rem;
  list-style: disc;
}

.blinking-leds {
  line-height: 2rem;
  margin-left: 3rem;
  list-style: disc;
  font-size: 1.2rem;
}

.intro p {
  color: black;
  margin-left: 1rem;
  line-height: 1.5rem;
  font-weight: 300;
  text-align: justify;
}

/* ===  BEGIN HARDWARE STYLING   ============================= */

.hardware-title {
  background-color: black;
  color: white;
  max-width: 80%;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 5rem auto 2rem auto;
  padding: 0.5rem 0 0.5rem 2rem;
}

.hardware-grid {
  max-width: 60%;
  display: grid;
  grid-template-areas:
    "ultra mosfet pitch-term"
    "esp32 esp-term esp-term"
    "pot pigtail pigtail"
    "five-v twelve-v socket"
    "leds term2 cable"
    "box box ac-power";
  gap: 0.5rem;
  margin: 2rem auto;
  /* border: 1px solid red; */
  object-fit: cover;
}

#ultra {
    grid-area: ultra
  }
#mosfet {
    grid-area: mosfet
  } 
#pitch-term {
    grid-area: pitch-term
  } 

#esp32 {
    grid-area: esp32
  } 
#esp-term{
    grid-area: esp-term
  } 

#pot{
    grid-area: pot
  }
#pigtail{
    grid-area: pigtail
  } 

#five-v{
    grid-area: five-v
  }
#twelve-v{
    grid-area: twelve-v
  }
#socket{
    grid-area: socket
  }

#leds{
    grid-area: leds
  }

#term2{
    grid-area: term2
  }
#cable{
    grid-area: cable
  }
#box{
    grid-area: box
  }
#ac-power{
    grid-area: ac-power
  }


.hardware {
    width: 100%;
    position: relative;
    margin: 0 auto;
  }

.hardware img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border: 2px solid black;
  padding: 0.5rem;
  box-sizing: border-box;
}

.hardware .overlay {
   background-color: rgba(255, 255, 255, 1);
  /* the following enables the overlay to appear over the image */
  /*  and allows the overlay text to appear */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;  /*  the following will NOT work without this line  */
  /*  align items horizontally  */
  justify-content: center;  
  align-items: center;      /* align items vertically */
  margin: 0;      /* this eliminates the <p>'s default margin  */
  opacity: 0;
}

.hardware .overlay:hover {
  opacity: 0.7;
}

.hardware-comments {
  background-color: rgb(221, 221, 226);
  font-size: 300;
  max-width: 80%;
  padding: 0;
  margin: 0 auto;
  line-height: 1.5rem;
  border: 2px solid black;
  border-radius: 10px;
}

.hardware-comments p {
  color: black;
  margin: 0 2rem;
  line-height: 2rem;
  padding-left: 1rem;
}

h3 {
  color: rgb(56, 7, 255);;
  font-weight: 300;
  font-size: 1.3rem;
  margin: 1% 0 0 0.5%;
  padding-left: 1rem;
}

.schematic-img {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
  border: 2px solid black;
}

/*  ENCLOSURE H3 and IMG STYLES   ************************** */

.enclosure {
  margin: 1rem 0 1rem 4rem;
  max-width: 80%;
  line-height: 1.4rem;
}

/* .enclosure h3 {
  margin: 3rem 0 1rem 0;
  color: black;
  font-size: 1.5rem;
  font-weight: 400;
} */

.enclosure-img {
  max-width: 60%;
  padding: 0;
  margin: 1rem 0 1rem 6.5rem;
  border: 2px solid black;
}

.single-code-line pre {
  margin: 0 auto;
  padding: 0;
}


/*  CODE STYLES   ************************** */

pre {
  background-color: rgb(221, 221, 226);                     /* Dark mode background */
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;                              /* Adds horizontal scrollbar if code is too long */
  border: 2px solid #3e3f3a;
  max-width: 80%;
  margin: 2rem auto;
}

pre code {
    font-family: "Monaco", monospace;
    color: black;                                /* Off-white text color */
    padding: 0;                                    /* Resets inline padding */
    background-color: transparent;                 /* Removes inline background */
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 400;
}

/* ===   BEGIN FOOTER STYLING   ===================  */

.footer {
  text-align: center;
  padding: 30px 0 15px 0; /*   was 32px   */
  font-weight: 100;
  font-size: 15px;
  color: black;
}


/* ========================================  */
/* ===   MEDIA QUERIES BEGIN   ============  */

@media only screen and (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
  .project-grid {
    max-width: 100%; /*  was 100%  */
    background: rgb(239, 143, 239);
    grid-template-areas:
      "woodworking electronics"
      "flyfishing photography";
    /* "esp32-wroom-32 oled"; */
  }
}

@media only screen and (max-width: 768px) {
  .hardware-grid {max-width: 100%;} 

  .project-grid .intro {
    width: 100;
  }

.intro .img-details img {
    margin: 0 auto;
    width: 100%;  /* This fixed the image width in this MQ width */
  }

   .column-left img {
    margin: 0 auto; /* this center the image im the viewport  */
    width: 100%;
  }

  .navbar .right {
    display: none;
  }

  .project-grid {
    margin-top: 100px;
  }

  .navbar {
    padding: 16px 24px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: white; /*  was white */
    color: black;
    width: 100%;
  }
  .navbar .left {
    /* font-size: 32px; */
    /*border: 1px solid blue;*/
    color: black; /*  was black 14AUG25 change this worked */
  }
  .navbar .right {
    display: none;
  }
  .navbar .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid green;
  }
  .footer {
    font-size: 14px;
    padding: 32px;
  }
  .project-grid {
    max-width: 100%;
    background: orange;
    /* width: 100%; */
    /* grid-template-areas:
      "woodworking woodworking"
      "electronics electronics"
      "flyfishing flyfishing"
      "photography photography"; */
  }
  .project .overlay {
    font-size: 24px;
  }
}
