/* General Styles */
body {
  background-color: #fffae8;
  color: black;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: 1.1em;
  min-height: 50vh;
  padding: 10px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Title */
h1 {
  color: #cfa5f9;
  font-family: monospace;
  text-align: center;
  font-size: 1.5em;
  word-break: break-word;
  max-width: 90%;
}

/* Navigation */
.nav {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allows wrapping on small screens */
  max-width: 100%;
}

.nav p {
  margin: 5px;
}

.nav a {
  font-weight: bold;
  font-size: 1em;
}

/* Text Containers */
.body-container, .prompt {
  max-width: 90%;
  text-align: justify;
  text-indent: 2em;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.prompt {
  color: #cfa5f9;
  font-size: 1.1em;
}

/* Image Styling */
#Kilroy {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#MemeEvo {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#YVH1921 {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#YVH {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#Transmish {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#Gene {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#BobS {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#AR0 {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#AR1 {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#AR2 {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#AR3 {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#ProtestMeme {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

#BergerMeme {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}


/* Image Alignment */
.image-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap; /* Allows wrapping if needed */
  max-width: 500px;
  margin: 10px auto;
  margin-top: 80px;
  margin-bottom: 80px;
  height: auto;
  align-items: center;
}

.image-container img {
  max-width: 45%; /* Ensures images fit side by side */
  justify-content: center;
  align-items: center;
}

.sources{
  text-align: left;  
}

/* Super Mobile-Friendly Fixes */
@media (max-width: 768px) {
  body {
    font-size: 1em;
    text-align: center;
    padding: 5px;
  }
  
  p {
    text-indent: 2em; /* Keeps first-line indentation on small screens */
  }

  h1 {
    font-size: 1.3em;
  }

  .body-container, .prompt {
    text-indent: 0;
    text-align: left;
    width: 95%;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav p {
    margin: 5px 0;
    align-items: center;
  }

  .image-container {
    flex-direction: row;
    justify-content: center;
  }

  .image-container img {
    max-width: 48%; /* Keeps images side-by-side */
  }
}
