/*
 * Copyright 2018-2020 DITA (AM Consulting LLC)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Developed on behalf of: Bokbasen AS (https://www.bokbasen.no)
 * Licensed to: Bokbasen AS and CAST under one or more contributor license agreements.
 */

// Variables & Mixins etc.

// Colors
@import "reader/colors";
// Type
@import "reader/type";

//////////////////////////////
// Global styles           //
//////////////////////////////
@import "reader/global";

// Messages
@import "reader/loading";
@import "reader/error";
// Table of Contents
@import "reader/toc";
// Settings Menu
@import "reader/settings";
// Bookmarks
@import "reader/bookmarks";
@import "reader/annotations";
// highlight toolbox
@import "reader/toolbox";
// TTS ui tools
@import "reader/tts";

@import "reader/timeline";


.collection {
  //margin: $element-top-margin 0 $element-bottom-margin 0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;

  .collection-item {
    //background-color: $collection-bg-color;
    //line-height: $collection-line-height;
    padding: 10px 20px;
    margin: 0;
    //border-bottom: 1px solid $collection-border-color;

    // Avatar Collection
    &.avatar {
      min-height: 84px;
      padding-left: 72px;
      position: relative;

      // Don't style circles inside preloader classes.
      &:not(.circle-clipper) > .circle,
      :not(.circle-clipper) > .circle {
        position: absolute;
        width: 42px;
        height: 42px;
        overflow: hidden;
        left: 15px;
        display: inline-block;
        vertical-align: middle;
      }
      i.circle {
        font-size: 18px;
        line-height: 42px;
        color: #fff;
        background-color: #999;
        text-align: center;
      }


      .title {
        font-size: 16px;
      }

      p {
        margin: 0;
      }

      .secondary-content {
        position: absolute;
        top: 16px;
        right: 16px;
      }

    }


    &:last-child {
      border-bottom: none;
    }

    &.active {
      //background-color: $collection-active-bg-color;
      //color: $collection-active-color;

      .secondary-content {
        color: #fff;
      }
    }
  }
  a.collection-item{
    display: block;
    transition: .25s;
    //color: $collection-link-color;
    &:not(.active) {
      &:hover {
        //background-color: $collection-hover-bg-color;
      }
    }
  }

  &.with-header {
    .collection-header {
      //background-color: $collection-bg-color;
      //border-bottom: 1px solid $collection-border-color;
      padding: 10px 20px;
    }
    .collection-item {
      padding-left: 30px;
    }
    .collection-item.avatar {
      padding-left: 72px;
    }
  }

}
.pagination {

  display:  inline-block;

  li {
    display: inline-block;
    border-radius: 2px;
    text-align: center;
    vertical-align: top;
    height: 30px;
    clear: unset !important;
    width: unset !important;

    a {
      color: #444;
      display: inline-block !important;
      font-size: 1.2rem;
      padding: 0 10px;
      line-height: 30px;
    }

    &.active a { color: #999; }

    //&.active { background-color: $primary-color !important; }

    &.disabled a {
      cursor: default;
      color: #999;
    }

    i {
      font-size: 2rem;
    }
  }


  li.pages ul li {
    display: inline-block;
    float: none;
  }
}

.search-wrapper {
  display: flex;
  align-items: center;
}

$medium-screen: 992px !default;
$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;

.sidenav {
  &.expanded {
    width : $medium-screen !important;;
    @media #{$medium-and-down} {
      width : 100% !important; ;
    }
  }
}

.logo-container {
  i.editAnnotations {
    transform: rotate(-90deg);
    margin-top: 12px;
    font-size: 32px;
    margin-right: 6px;
    float: right;
  }
}

.grab-to-pan-grab {
  cursor: grab !important;
}
.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
  cursor: inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
  cursor: grabbing !important;
}
