@import 'variables';
@import 'mixins';

footer {
  z-index: 10;
  position: relative;
  .container {
    width: 100%;
    margin: auto;
    max-width: $max-width;
    box-shadow: none;
    border: none;
    font-weight: 500;
    background: transparent;
    &.centered-footer {
      width: 97%;
      max-width: 722px;
      margin-left: auto;
      @media screen and (min-width: 950px) and (max-width: 1119px) {
        max-width: calc(100% - 377px);
      }
      @media screen and (min-width: 1120px) {
        max-width: calc(100% - 642px);
      }
      @media screen and (min-width: 1240px) {
        max-width: 606px;
      }
    }
    a {
      color: var(--body-color);
      display: inline-block;
      margin-right: 12px;
      &:hover {
        text-decoration: underline;
      }
    }
    .inner-footer-container {
      max-width: 880px;
      padding: 48px 32px;
      box-sizing: border-box;
      line-height: 3em;
      margin: auto;
      @include themeable(background, theme-container-background, $tan);
      @include themeable(border, theme-container-border, none);
      @include themeable(box-shadow, theme-container-box-shadow, $bold-shadow);

      @media screen and (min-width: 950px) {
        border-radius: 3px 3px 0 0;
      }
    }
  }
}

@media screen and (min-width: $max-width) {
  .stories-show + footer .inner-footer-container {
    margin-left: 16px;
  }
  .podcast_episodes-show + footer .inner-footer-container {
    margin-left: auto;
  }
}
