/* ===============================
   Base Styles
   =============================== */
html {
  font-size: 100%;
}

body {
  background-color: #8fc9eb;
  margin: 25px;
  font-family: "Times New Roman", Arial, Courier, sans-serif;
  color: black;
  line-height: 1.5;
}

p {
  font-size: 1.3rem;
}

.center {
  text-align: center;
}

/* ===============================
   Headings
   =============================== */
h1 {
  font-size: 2.5rem;
  text-align: center;
  text-decoration: none;
  color: black;
  margin: 1rem 0;
}

h2 {
  font-size: 2rem;
  text-align: left;
  text-decoration: none;
  color: black;
  padding-left: 3rem;
  margin: 1rem 0;
}

/* ===============================
   Links
   =============================== */
a:link,
a:visited {
  color: black;
  text-decoration: underline;
  padding: 0.1em 0.5em 0.5em 0.1em;
}

a:visited {
  text-decoration: none;
}

a:hover {
  color: red;
  text-decoration: underline;
}

a:active {
  color: black;
  text-decoration: underline;
}

/* ===============================
   Lists
   =============================== */
ul {
  list-style-type: none;
  margin: 0;
  font-size: 1.5rem;
}

ul ul {     /* Nested UL */
  list-style-type: circle;
  list-style-position: inside;
  font-size: 1em;
}


/* header is used in Hardware.html, Java Script, */
.header {
	font-family: "times new roman", arial, courier, sans-serif;
		  font-size: 2rem;          
		  text-align: center;
		  text-decoration:underline; 
		  
		  }



/* ===============================
   Index Letter Markers
   =============================== */
mark {
  background-color: #6bf061;
  color: black;
  padding: 0.5em;
  border-radius: 25px;
}

.blue1 {
  background-color: #8f78e4;
  color: black;
  padding: 0.5em;
  border-radius: 25px;
  text-align: center;
  width: auto;
  margin: auto;
}

/* ===============================
   Containers & Boxes
   =============================== */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.container2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.container1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;

}

/* Horz menu bar in Hardware section */

/* Styles only the Hardware index menu */
.horizontal-nav {
  display: flex;          /* Lines items up horizontally */
  flex-wrap: wrap;        /* Allows items to drop to next line on small screens */
  justify-content: center; /* Centers the menu on the page */
  list-style-type: none;  /* Removes bullets */
  padding: 0;
  margin: 20px 0;
  gap: 15px;              /* Adds space between the items */
}

.horizontal-nav li {
  font-size: 1.2rem;      /* Optional: adjust size for the sub-menu */
}

/* Optional: make the links look like small buttons */
.horizontal-nav a {
  text-decoration: none;
  background-color: #0288d1;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.horizontal-nav a:hover {
  background-color: #bee653;
  color: black;
}




.div1 {
  text-align: center;
  border: 2px solid black;
  background-color: rgb(55, 226, 183);
  max-width: 810px;
  margin-left: auto;
  margin-right: auto;

}

.div2 {
  text-align: center;
  border: 2px solid black;
  background-color: rgb(55, 226, 183);
  margin-left: 10px;
  margin-right: 10px;

}

.div3 {
  text-align: left;
  border: 2px solid black;
  background-color: rgb(55, 226, 183);
}

.text {
  font-size: 1.3rem;
}



/* ================================
      TABLE
===================================*/

    
th, td {
  border: 1px solid black;
  text-align: center;
}
	
th, td {
    font-family: "times new roman", arial, courier, sans-serif;
		font-size: 1.4em;
		color: black;  
        padding-left: 0.5em;
        padding-right: 0.5em;

        
}
table {
        padding-left: 4em; 
 
}




/* ===============================
   Responsive Adjustments
   =============================== */

@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}




@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
    padding-left: 1rem;
  }

  p,
  ul li {
    font-size: 1.2rem;
  }

  .image2 {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .div3 {
    margin-bottom: 15px; /* Adds a gap between the columns when they stack */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p,
  ul li {
    font-size: 1.2rem;
  }
}
