
html {
  margin-top: 0px !important;
}
body {
  background: #f6f2ec;
  color: #21251F;
  font-family: "Bodoni Moda", serif;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
img {
  width: 100%;
  height: auto;
}
a {
  color: #21251F;
  text-decoration: none;
}
a:hover, 
a:focus {
  text-decoration: underline;
}
p {
  margin-top: 20px;
  font-size: 125%;
  line-height: 2rem;
}
ul {
  padding-left: 0;
}
li {
  list-style-type: none;
}
.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  width: 90%;
}
.element-invis {
  visibility: hidden;
}
/* header styling */
.site-header {
  padding: 20px 0;
  margin-bottom: 40px;
}
.divider {
  border-bottom: 1px solid rgba(33, 37, 31, 0.2);
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-headline a {
  text-decoration: none;
  cursor: pointer;
}
.main-navigation {
  text-align: right;
}
.menu-item a {
  font-size: 1.1rem;
}
/* front-page styling */
.front-page-headline {
  text-align: center;
  font-size: 4rem;
  line-height: 8rem;
  font-family: "Playfair Display";
}
.front-page-upper-image-container {
  max-width: 664px;
  margin: 0 auto;
}
.front-page-welcome {
  padding: 40px 0;
}
.front-page-lower-image-container {
  max-width: 300px;
  margin: 0 auto;
}
.front-page-button {
  display: block;
  margin: 40px auto;
  padding: 20px;
  max-width: 350px;
  text-align: center;
  background: #21251F;
  color: #f6f2ec;
  border-radius: 12px;
  font-size: 2rem;
}
.front-page-button:hover, 
.front-page-button:focus {
  opacity: 0.7;
  text-decoration: none;
}
/* potters archive styling */
.potter-search {
  text-align: center;
}
.potters-alpha-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.potters-alpha-letter {
  flex: 0 0 calc(15% - 20px);
  color: white;
  margin: 10px;
  text-align: center;
  min-width: 80px;
  max-width: 200px;
}
.potters-alpha-letter:hover,
.potters-alpha-letter:focus {
  opacity: 0.7;
}
.unknown {
  margin: 20px auto;
  padding: 20px;
  max-width: 350px;
  text-align: center;
  background: #21251F;
  color: #f6f2ec;
  border-radius: 12px;
  font-size: 2rem;

}
.unknown a {
  color: inherit;
}
.unknown a:hover {
  text-decoration: none;
}
.potters-alpha-text-link {
  display: none;
}
.pagination-container,
.page-numbers {
  text-align: center;
  font-size: 2rem;
}
/* alpha-potter styling */
.alpha-potter-name {
  width: 80%;
  max-width: 402px;
  font-size: 2rem;
  font-weight: 700;
  padding: 20px 0;
}
.potter_url {
  text-align: center;
  display: block;
  padding-bottom: 20px;
}
.alpha-potter-name:not(:last-child) {
  border-bottom: 1px solid rgba(33, 37, 31, 0.5);
}

/* ceramic-work styling */
.ceramic-work-potter-name,
.ceramic-work-return {
  text-align: center;
}
.ceramic-work-potter-name {
  font-size: 2rem;
  font-family: "Playfair Display", serif;
}
.ceramic-work-return {
  font-size: 1rem;
  margin-top: 0;
}
.ceramic-work-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}
.hide-frame {
  visibility: hidden;
  height: 100%;
  width: 100%;
}
.ceramic-work-description p {
  font-size: 1rem;
}
.ceramic-work-description {
  max-width: 320px;
  margin: 0 auto;
}

/* footer styling */
.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  min-height: 50px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}
.footer-nav-item {
  padding: 4px;
}
.footer-headline {
  text-align: center;
  padding: 40px 0 20px;
  margin: 0 auto;
}

@media (max-width: 940px) {}
@media (max-width: 768px) {
  .front-page-headline {
    font-size: 3rem;
    line-height: 6rem;
  }
  .potters-alpha-index {
    grid: auto / repeat(4, 1fr);
  }
  .ceramic-work-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .unk {
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }
  .hide-frame {
    display: none;
  }
}
@media (max-width: 530px) {
  p {
    font-size: 100%;
    line-height: 1.8rem;
  }
  .site-header {
    margin-bottom: 0;
  }
  .primary-nav,
  .footer-nav {
    flex-direction: column;
    align-items: center;
  }
  .header-headline {
    text-align: center;
    margin-bottom: 0;
  }
  .front-page-headline {
    font-size: 2rem;
    line-height: 4rem;
  }
  .front-page-welcome {
    padding: 10px 0;
  }
  .front-page-button {
    font-size: 1.4rem;
  }
  .alpha-potter-name {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    font-size: 1.8rem;
  }
  .ceramic-work-container {
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }
  .ceramic-work-image-container {
    margin: 0 auto;
  }
  .site-footer {
    padding: 0;
  }
  .footer-headline {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .footer-nav li {
    padding: 8px;
  }
}
@media (max-width: 375px) {
  /* change flex on potter page to remove images and only show letters */
  .potters-alpha-letter {
    min-width: 70px;
  }
  .potters-alpha-image-container {
    display: none;
  }
  .potters-alpha-text-link {
    display: block;
    background: #21251F;
    color: #f6f2ec;
    border-radius: 12px;
    height: 50px;
    align-content: center;
    font-size: 2rem;
  }
  .unknown,
  .unknown a {
    background: #21251F;
    color: #f6f2ec;
    border-radius: 12px;
  }
  .unknown a:hover {
    text-decoration: none;
  }
}