/* ===============================
   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;
}
/* SUB Lists */

/* Remove default bullet points from the main index */
ul.main-index {
  list-style-type: none;
}

/* Style the clickable title */
ul.main-index summary {
  cursor: pointer;
  font-weight: bold;
  padding: 5px 0;
  user-select: none; /* Prevents text highlighting on double click */
}

/* Add a subtle hover effect to the title */
ul.main-index summary:hover {
  color: red;
}

/* Style the nested sub-list */
ul.main-index details ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 10px;
}








/* ===============================
   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;
  }
}
