body {
  font-family: 'Segoe UI', sans-serif;
  background-color: black;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3 {
    color: white;
    text-align: center;
}

a:link {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
    color: blue;
}

a:visited {
    color: inherit;
}

a:focus {
  outline: 2px dashed #00f;
  outline-offset: 2px;
}

main {
    background-image: url("menu_curve3A.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    color: white;
    width: 80%;
    margin: auto;
}

article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 50%;
    gap: .5em;
    margin: .2em auto;
}

.divider {
    background-image: url(divider.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 8em;
    margin: 3em 0;
    opacity: .25;
}

.opening_words {
    width: 55%;
    margin: .2em auto;
}

.pic_container {
    margin: .2em 1em;
}

.pic_container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

nav ul {
    width: 70%;
    margin: .2em auto;
    color: white;
    list-style-type: none;
    text-align: center;
}

.nav ul li {
    text-decoration: none;
    color: white;
    margin: .5em 0;
}
.previous, .next {
    width: 6em;
    height: 1.2em;
    margin: 1em auto;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
  main {
    width: 95%;
    padding: 1em;
    background-size: cover;
  }

  article {
    width: 100%;
    justify-content: center;
  }

  .pic_container {
    flex: 1 1 40%;
    margin: 0.5em;
  }

  .opening_words {
    width: 90%;
    font-size: 1rem;
    padding: 0.5em;
  }

  nav ul {
    width: 90%;
    padding: 0;
  }

  .previous, .next {
    width: 100%;
    margin: 0.5em 0;
  }

  h1, h2, h3 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}