/* CSS

1: Core styles
2: Typography
3: Header and footer
3: Layout
5: Social
6: Forms + pagination
7: Icons

Blue  295073
Rust  a62d2d
Yellow  f29f05
Red   f23838
*/

/**********************/
/* 1:  CORE STYLES  */
/**********************/

* {
    box-sizing: border-box;
  }
  .hidden {
    display: none;
  }
  
  body {
    margin: 0;
    color: #666;
    background-color: #f7f7f5;
  }
  
  a {
    color: #666;
  }
  
  a:hover,
  a.on,
  p.credit a:hover {
    color: #a62d2d;
  }
  
  nav a:hover,
  article.summary a:hover p
  {
    color: #295073;
  }
  
  
  /**********************/
  /* 2:   TYPOGRAPHY    */
  /**********************/
  body {
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 100%; /* 16px */
  }
  
  a {
    text-decoration: none;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h1, h2 {
    font-weight: 600;
    margin: 0 0 0.14em 0;
  }
  
  p {
    margin: 0 0 1em 0;
  }
  
  .date, p.credit, p.member {
    font-size: 0.7rem;
  }
  
  p.credit {
    text-transform: uppercase;
  }
  
  p.credit a {
    font-weight: bold;
    color: inherit;
  }
  
  article.summary p {
    line-height: 1em;
  }
  
  nav li {
    font-weight: 600;
    line-height: 0.8em;
  } 
  
  
  /**********************/
  /* 3: HEADER + FOOTER */
  /**********************/
  header  {
    background: #e9e8e6;
    min-height: 50px;
    margin-bottom: 2em;
  }
  
  header > div.container {
    align-items: center;
  }
  
  header div.logo {
    line-height: 0.5em;
    margin-bottom: 0;
  }
  
  header div.logo img {
    max-width: 360px;
    max-height: 50px;
    margin: 5px 0px;
  }
  
  header button {
    position: absolute;
    right: 1em;
    top: 2.5em;
    padding: 5px 7px;
    border: 2px solid #8b8885;
    border-radius: 5px;
    font-size: 1em;
    background: transparent;
    display: none;
  }
  


  
  
  header button:hover {
    cursor: pointer;
  }
  
  header nav ul {
    padding: .5rem 0 0.1rem 0;
    margin: 0;
    clear: left;
  }
  
  header nav li {
    list-style-type: none;
    display: inline-block;
    padding-right: .5em;
  }
  
  .js header nav ul {
    display: none;
  }
  
  .js header nav li {
    margin-bottom: 1em;
    display: block;
  }
  
  .js header nav button {
    display: block;
  }
  
  header nav ul.is-active {
    display: block;
  }
  
  nav .icon-search {
    display: none;
  }
  
  nav .search-text {
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .skip-link {
    position: fixed;
    top: -200px;
    left: 50%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: #8b8885;
    color: #fff;
    padding: 5px;
    outline: none;
  }
  
  .skip-link:focus {
    top: 0;
  }
  
  @media (min-width: 760px) {
    
  .member-menu {text-align: right;}

    header > div.container {
      display: flex;
    }

    
  
    header .logo {
      flex: 1;
    }
  
    header nav {
      flex: 2;
    } 
  
    header button {
      display: none;
    }
  
    header div.logo img {
      max-width: 93%;
      max-height: 75px;
    }
  
    header nav li {
      padding-right: 0;
      font-size: 1.2em;
    }
  
    .js header nav ul {
      display: block;
      text-align: right;
    }
  
    .js header nav li {
      display: inline-block;
      margin: 0;
    }
  
    .js header nav button {
      display: none;
    }
  
    header nav li::after {
      content: " / ";
      font-weight: normal;
      color: #a39f9c;
    }
  
    header nav li:last-child::after,
    header nav li:nth-last-child(2)::after {
      content: "";
    }
  
    .header-admin nav li:nth-last-child(2)::after {
      content: " / ";
    }
  
    nav .icon-search {
      display: inline-block;
      padding-left: .5rem;
      color: #a39f9c;
    }
  
    nav .search-text {
      display: none;
    }

    .member-menu a {
      color: #666;
      padding: .3rem 0;
      display: inline-block;
      font-weight: bold;
      font-size:  90%;
    }
    
    .member-menu a:hover {
      color:  #295073;
    }

  
  }


  .sub-menu {

    list-style: none;
    padding: 15px 0;
  }

  li{
  list-style: none;
  }

  .sub-menu>li>a{

  display: block;
  padding: 12px 20px;
  font-size: 16px;
  color:#295073;
  text-transform: capitalize;
  font-weight: 600;
  }

  .sub-menu>li{
    border-radius: 6px;
    margin:0 0 15px 15px;
    height: 40px;
    width: auto;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgb(30, 46, 82);
  }

  
  .member-menu {
    color: #999;
    padding: 0 .2em;
    min-height: 1.6em;
    font-size: 0.9rem;
    border-bottom: 1px solid #999;
  }
  footer {
    clear: both;
    font-size: 0.8rem;
    text-align: right;
    color: #a39f9c;
    padding: 1rem 0;
  }
  
  /**********************/
  /* 4:    LAYOUT       */
  /**********************/
  
  .container,.search_container  {
  
    margin: 0 auto 0 auto;
    max-width: 94%;
  }

  
  
  @media (min-width: 1240px) {

   

    .container, .search_container {
    max-width: 1200px;
    }
  }
  
  .article_container {
    margin: 0 auto 0 auto;
    max-width: 70%;
  }
  
  @media (min-width: 1240px) {
    .article_container {
    max-width: 800px;
    }


    article.character div {
      padding: 5px 5px;
      max-width: 380px;
      height: 200px;
      background-color: #ffffff;
      outline-color: #aaaaaa;
      outline-style: solid;
       outline-width: 2px;
       border-radius: 5px;
       box-shadow: 5px 5px 5px; 
       margin-right: 20px;
       
    }
  }
  
  .grid {
    display: grid;
    grid-gap: 2em;
  }
  
  .grid {
    display: grid;
    margin: 0 auto 2em auto;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));



    
  }
  
  @media (min-width: 860px) {
    main.article {
      display: grid;
      grid-gap: 2em;   
      
      margin-bottom: 2em;
    }
  }
  
  @media (min-width: 860px) {
    .admin-article {
      display: grid;
      grid-gap: 2em;   
      grid-template-columns: calc(66.666% - 2em) 33.333%;
      margin-bottom: 2em;
      
    }
  }
  
  main img {
    width: 100%;
    height: auto;
    border-radius: 8px; 
  }

  article.character img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 100%; 
    margin-bottom: 0.5em;
    outline-color: #8e54c4;
    outline-style: solid;
    box-shadow: 5px 5px 5px; 
    
  }

  article.character h2 {
    color: #4b103c;
    
  }


  article.character p{
    padding: 5px 5px;
    color: #585858;
  }
  
 
  
  article.summary img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0.5em;
  }
  
  article.summary img:hover {
    opacity: 0.6;
  }
  
  article.summary p {
    margin: 0 0 0.6em 0;
  }
  
  .date {
    display: block;
    margin: 0 0 1.2em 0;
  }
  
  .text h1 {
    margin-bottom: .5em;
  }
  
  .text .content {
    margin: 0 0 1em 0;
    line-height: 1.5em;
  }
  
  /* Styles are for top of category, member and admin list pages */
  .header {
    text-align: center;
    margin-bottom: 2em;
    text-transform: uppercase;
  }
  
  .header h1 {
    color: #295073;
    border: 3px solid #295073;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: .2em .5em;
  }
  
  .header p {
    font-size: 80%;
    padding-top: .5em;
    position: relative;
  }
  
  .header img,
  img.profile {
    max-width: 70px;
    border-radius: 50%;
  }

  
  article.character div {
    padding: 5px 5px;
    width: auto;
    height: 200px;
    background-color: #ffffff;
    outline-color: #aaaaaa;
    outline-style: solid;
     outline-width: 2px;
     border-radius: 5px;
     box-shadow: 5px 5px 5px; 
     margin-right: 20px;
     
  }
  
  
  /*************************/
  /* 5: FORMS & PAGINATION */
  /*************************/
  button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }
  
  .btn,
  .btn-search {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: .1rem .5rem;
    line-height: 1.5;
    vertical-align: middle;
  }
  
  .btn {
    font-size: 0.9rem;
  }
  
  .btn:hover {
    color: #fff;
    background: #c8743d;
    cursor: pointer;
  }
  
  .btn-primary {
    background-color: #295073;
    border-color: #295073;
  }
  .btn-primary:hover {
    background-color: #137ad7;
    border-color: #137ad7;
  }
  
  .btn-secondary {
    color: #333;
    background: #e1e0de;
    border-color: #e9e8e6;
  }
  .btn-secondary:hover {
    color: #fff;
    background: #717170;
    border-color: #717170;
  }
  
  .btn-danger {
    background-color: #a62d2d;
    border-color: #a62d2d;
  }
  .btn-danger:hover {
    background-color: #f23838;
    border-color: #f23838;
  }
  .wrapper :where(.title, .form-control, li, li i, .details){
    align-items: center;
    flex-wrap: wrap;
    display: flex;
  }
  
  .form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
  }
  
  
  label {
    display: inline-block;
    font-size: 15px;
  }
  
  textarea {
    min-height: 7rem;
  }
  
  input[type=checkbox], input[type=radio] {
    margin-top: .3rem;
    margin-left: 1rem;
    padding: 0;
  }
  
  .form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
  }
  
  input[type=submit] {
    float: right;
    margin-bottom: 1rem;
  }
  
  input[type=submit]:hover {
    cursor: pointer;
  }
  
  .form-control-file {
    display: block;
    flex-wrap: wrap;
    width: 100%;
  }
  
  
  .form-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .character-group{
    display: grid;
    grid-template-rows: auto ;
  }
  
  
  .form-group .title {
    display: flex;
    align-items: center;
  }
  
  .form-group .title h2{
    font-size: 21px;
    font-weight: 600;
  }
  
  .form-group .title .tags{
    max-width: 10px ;
    height: auto;
  }
  
  .form-group.content {
    margin: 10px 0;
    
  }
  
  .form-group .content p{
    font-size: 21px;
  
  }
  
  .form-group .content ul{
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    margin: 12px 0px ;
    border: 1px solid #a6a6a6;
    font-size: 15px;
  }
  
  .form-group img{
    max-width: 100%;
  }
  
  
  form input, form textarea {
      width: 100%;
      padding: 5px;
      margin-bottom: 10px;
  }
  form button.submit, button {
  
      background: #4CAF50;
      color:white;
      border:none;
      cursor: pointer;
      padding: 10px 20px;
      
  
  }
  
  button.reply{
      background: orange;
  }
  

  
  .form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    margin-top: 10px;
  }
  
  
  /* tagsystem */
  
  .content ul{
    display: flex;
    flex-wrap: wrap;
    padding: 7px;
    margin: 12px 0;
    border-radius: 5px;
  }
  
  .content ul li{
    list-style: none;
    margin: 2px 1px;
    border-radius: 5px;
    background: #f2f2f2;
    padding: 2px 4px 2px 5px;
    border: 0.5px solid #e3d1e1;
    
  }
  
  .content ul li i {
    cursor: pointer;
    height: 15px;
    width: 15px;
    color: #808080;
    margin-left: 8px;
    background: #dfdfdf;
    border-radius: 50%;
    font-size: 12px;
    justify-content: center;
  
  }
  
  
  .content ul input{
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 21px;
  }
  
  .content {
    padding: 10px;
  }
  
  .wrapper .details {
    justify-content: space-between;
  }
  
  .details button {
    border: none;
    outline: none;
    background: #5372f0;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px ;
    cursor: pointer;
    font-size: 14px;
     
  }
  
  .title .tag {
    max-width: 30px;
    margin-left: 8px;
    font-weight: 800;
    font-size: 1.3rem;
    
  }
  
  
  .tag-edit {
    display: none;
    
  }
  
  
  
  
  /* tagsystem */
  
  .errors {
    color: #a62d2d;
    font-weight: bold;
  }
  
  .form-login {
    max-width: 28rem;
  }
  
  .form-member {
    min-width: 400px;
    width: min-content;
    margin: auto;
  }
  
  textarea#summary {
      min-height: 4rem;
  }
  textarea#content {
      min-height: 12rem;
  }
  
  .narrow {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* SEARCH */
  .form-search {
    margin-bottom: 1rem;
  }
  
  .form-search label span {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  
  .form-search input:focus {
    outline: none;
  }
  
  .form-search input[type=text] {
    padding: .1rem .5rem;
    line-height: 1.5;
    vertical-align: bottom;
    border-top: 1px solid #8b8885;
    border-right: none;
    border-bottom: 1px solid #8b8885;
    border-left: 1px solid #8b8885;
    border-radius: 4px 0 0 4px;
    max-width: 232px;
  }
  
  .form-search .btn {
    -webkit-appearance: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
  }
  
  .form-search input[type=submit] {
    float: none;
    margin-bottom: 10px;
  }
  
  /* PAGINATION */
  nav.pagination {
    text-align: center;
  }
  
  .afterPage {
  
    padding-right: 0.3em;
  }
  
  .beforePage {
  
    padding-left: 0.3em;
  }
  
  .pagination ul {
    display: inline-block;
    list-style-type: none;
    margin: 0 0 2em 0;
    padding: 0;
  }
  
  .pagination ul li {
    display: inline-block;
  }
  
  .pagination a.active {
    color: #295073;;
    border: 1px solid #295073;
    background-color: #fff;
  }
  
  
  /* ALERTS */
  .alert {
    background: #fff;
    border: 1px solid transparent;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: .25rem;
  }
  
  .alert-danger {
    color: #a62d2d;
    background: #f8d7da;
    border-color: #a62d2d;
  }
  
  .alert-success {
    color: #155724;
    background: #d1e7dd;
    border-color: #c3e6cb;
  }
  
  /**********************/
  /* 6: ADMIN           */
  /**********************/
  .admin h1 {
    margin-bottom: 1em;
  }
  
  table {
      width: 100%;
      margin-top: 2rem;
      table-layout: fixed;
      background-color: transparent;
      border-collapse: collapse;
  }
  table.comments,
  table.admin, 
  table.categories,
  table.chapters,
  table.parts {
    max-width: 500px;
    margin: 0 auto;
  }


  table.comments{
    max-width: 1000px;
    margin: 0 auto;
  }
  
  th {
      text-align: left;
      text-transform: uppercase;
      font-size: 0.9rem;
      font-weight: normal;
      border-bottom: 1px solid #d6d6d6;
      padding: .75rem;
      vertical-align: top;
  }
  
  td {
      padding: .75rem;
      vertical-align: top;
      border-top: 1px solid #dee2e6;
  }
  
  td img {
      max-width: 100px;
      max-height: 100px;
      object-fit: cover;
      object-position: -30% 0;
  }
  
  .headshots{
    max-width: 100px;
  }
  
  
  
  p.alt {
    margin-top: .5em;
  }
  
  @media (min-width: 860px) {
    th.edit, th.view {
      width: 5em;
    }
    th.create,
    th.del,
    th.pub {
      width: 7em;
    }
    th.created {
      width: 9em;
    }
  }
  
  .image-placeholder {
    background-color: #d6d6d6;
    background-image: url(../uploads/blank.png);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    width: 100%;
    min-height: 23.5em;
    text-align: center;
    padding: 1em;
    color: #333;
  }
  
  /**********************/
  /* 7: ICONS           */
  /**********************/
  
  @font-face {
    font-family: 'icons';
    src: url('../font/icons/icons.eot?29469745');
    src: url('../font/icons/icons.eot?29469745#iefix') format('embedded-opentype'),
    url('../font/icons/icons.woff2?29469745') format('woff2'),
    url('../font/icons/icons.woff?29469745') format('woff'),
    url('../font/icons/icons.ttf?29469745') format('truetype'),
    url('../font/icons/icons.svg?29469745#icons') format('svg');
    font-weight: normal;
    font-style: normal;
  }
  
  [class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "icons";
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: none;
    width: 1em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .icon-menu:before { content: '\f0c9'; } 
  .icon-search:before { content: '\e803'; } 
  .icon-comment:before { content: '\e800'; } 
  .icon-comment-empty:before { content: '\f0e5'; } 
  .icon-heart:before { content: '\e801'; } 
  .icon-heart-empty:before { content: '\e802'; } 
  
  /* Same styles as .btn 
     Repeated here as adding them to existing .btn class 
     can prevent rules for button being processed. */
  input[type=file]::-webkit-file-upload-button {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: .1rem .5rem;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
  }
  input[type=file]::file-selector-button {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: .1rem .5rem;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
  }