* {
  margin: 0;
  padding: 0;
  border-radius: 20px;
}

body {
  background-color: #100A26;
  color: #EFEFF7;
  font-family: 'EB Garamond', serif;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

img {
  background-color: #5743D9;
  border-radius: 20px;
  border: 10px outset lightblue;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 20px auto;
 /* This centers the image horizontally */
  padding: 5px;
}

.grid-container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 20px;
width: 90%;
margin: 0 auto;
max-width: 1000px;
padding: 40px 20px;
}

h1 {
  color: white;
  font-family: handjet, sans-serif;
  border: 5px outset blueviolet;
  padding: 5px;
  text-align: center;
  margin: 20px 0;
  font-size: 4em;
  background-color: rgba(87, 67, 217, 0.1);
}

#intro, #ab, #facts, #question, #citations {
  background-color: rgba(87, 67, 217, 0.1);
  padding: 20px;
  margin: 20px auto;
  border: 5px outset blueviolet;
  border-radius: 10px;
}

#wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
  width: 90%;
  margin: 0 auto;
  max-width: 1000px;
  padding: 40px 20px;
}

#intro {
  display: grid;
  background-color: rgba(87, 67, 217, 0.1);
  grid-template-columns: 1fr;
  grid-gap: 5px;
  padding: 5px;
  margin: 5px;
  border-color: blueviolet;
  border-style: outset;
  border-width: 5px;
  border-radius: 10px;
}

#intro p {
  margin-bottom: 0.7em;
  margin-left: 1em;
  margin-right: 1em;
}

h4 {
  font-family: 'Handjet', sans-serif;
  text-align: center;
  margin: 5px;
  font-size: 2.5em;
  padding: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

#ab {
  display: grid;
  background-color: rgba(87, 67, 217, 0.1);
  grid-template-columns: 1fr;
  grid-gap: 10px;
  padding: 7px;
  margin: 20px auto;
  border-color: blueviolet;
  border-style: outset;
  border-width: 5px;
  border-radius: 10px;
}

table {
  background-color: darkcyan;
  border-collapse: collapse;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  color: white;
  text-align: center;
  font-family: 'EB Garamond', serif;
  width: 90%;
  mox-width: 1000px;
  padding: 10%;
}

th, td {
  border: 10px solid #5743D9;
  padding: 10px;
}

th {
  border: 10px solid #5743D9;
  background-color: #5743D9;
  color: white;
}

#facts {
  display: grid;
  background-color: rgba(87, 67, 217, 0.1);
  grid-template-columns: 1fr;
  grid-gap: 10px;
  padding: 7px;
  margin: 20px auto;
  border-color: blueviolet;
  border-style: outset;
  border-width: 5px;
  border-radius: 10px;
}

#title h4 {
  color: lightblue;
  /* Lighter color for better contrast */
  font-size: 2em;
  /* Slightly smaller than the main h4 */
  border-bottom: 2px solid #5743D9;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#facts h4 {
  color: lightblue;
  font-size: 2em;
  /* Slightly smaller than the main h4 */
  border-bottom: 2px solid #5743D9;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

ul, li {
  padding-left: 40 px;
  list-style-type: disc;
  margin-left: 1em;
  margin-bottom: 0.5em;
  margin-right: 1em;
}

#question {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  padding: 5px;
  border-color: blueviolet;
  border-style: outset;
  border-width: 5px;
  border-radius: 10px;
  color: white;
  margin: 30px auto;
  color: white;
  text-align: center;
  font-family: 'EB Garamond', serif;
  width: 90%;
  mox-width: 1000px;
  padding: 3%;
  background-color: rgba(87, 67, 217, 0.1);
}

#question h3 {
  font-family: 'Handjet', sans-serif;
  font-size: 1.5em;
  margin-top: -10px;
}

form {
  text-align: left;
  margin: 10px auto;
}

#citations h4 {
  display: grid;
  margin-top: -10px;
  padding: 5px;
}

#citations {
  display: grid;
  background-color: rgba(87, 67, 217, 0.1);
  grid-template-columns: 1fr;
  grid-gap: 10px;
  padding: 10px;
  margin: 10px auto;
  border-color: blueviolet;
  border-style: outset;
  border-width: 5px;
  border-radius: 10px;
  text-align: center;
}

a:hover {
  color: red;
  transition-delay: 100ms;
}

a {
  color: #EFEFF7;
  text-decoration: none;
  font-size: 1em;
  font-family: 'EB Garamond',serif;
  display: inline-block;
  margin-top: -15px;
}

/* Media query for larger screens */
@media screen and (min-width: 768px) {
  #wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  #title, #intro, #question, #citations {
    grid-column: 1 / -1;
  }
}