/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */
body {
  margin: 0;
}

.container {
  margin: 2%;
}

.ags-form {
  max-width: 560px;

  .ags-form-container {
    label {
      display: block;
    }
    .ags-form-item {
      width: 100%;
      margin: 12px 0;
    }
  }

  .ags-form-submit_button {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #0d5eaf;
    color: white;
  }
}

.ags-review {
  padding: 6px;
  margin: 6px;
  max-width: 560px;
  background-color: #d3d3b8;

  .ags-review-review {
    font-size: 125%;
  }
}

.ags-about_the_author {
  max-width: 560px;
  font-size: 125%;

  .ags-about_the_author-sub_text {
    font-size: 75%;
    display: block;
  }
  .ags-about_the_author-other_works {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #0d5eaf;
    color: white;
  }
}

.ags-banner {
  width: 100%;
}

.ags-banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 80vh;
}

@media only screen and (min-width: 480px) {
  .ags-banner-text_container {
    position: absolute;
    bottom: 20px;
    left: 20%;
  }
}

.ags-banner-title {
  color: black;
  display: block;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  margin: 12px;
  text-decoration: none;
}

.ags-banner-subtitle {
  display: block;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 24px;
  margin: 12px;
}

.ags-the_book {
  max-width: 560px;
  font-size: 125%;

  .ags-the_book-sub_text {
    font-size: 75%;
    display: block;
  }
}

.ags-nav_bar {
  ul {
    li {
      display: inline;
      list-style-type: none;
      padding: 12px;

      a {
        text-decoration: none;
        color: black;
        font-weight: bold;
        font-size: 24px;
        white-space: nowrap;
      }
      a:hover {
        color: #707070;
      }
    }
  }

  .ags-nav_bar-sub {
    position: relative;

    @media only screen and (min-width: 481px) {
      &> a:after {
        content: " ";
        background: url(image-path("glyphs/chevron-down.svg"));
        background-size: 10px;
        background-size: contain;
        margin-left: 6px;
        width: 18px;
        height: 18px;
        display: inline-block;
      }
      ul {
        position: absolute;
        background-color: #ffffff;
        border: 1px solid black;
        padding-left: 12px;
        text-align: center;
        left: -12.5%;
        width: 125%;
        display: none;
        white-space: normal;
        a {
          color: black;
          font-weight: bold;
          font-size: 18px;

        }
      }
      &:hover ul {
        display: block;
        li {
          white-space: nowrap;
          display: block;
          a {
            padding: 8px;
          }
        }
      }
    }

    @media only screen and (max-width: 480px) {
      ul {
        display: none;
      }
    }
  }
}

.ags-photos {
  .ags-photo_container {
    width: 256px;
    height: 256px;
    display: inline-block;
  }
}
