/*
 * 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.
 */

:root {
    -webkit-text-size-adjust: 100%;
    zoom: reset;
  }

  body {
    margin: 0 auto;
  }

  ul li,
  ol li {
    list-style: none;
  }

  button {
    background: none;
    border: 0;
    color: $ui-dark-gray;
    padding: 0.35rem 0.35rem 0.2rem;
    margin: 0;
    -webkit-appearance: none;
    &:focus {
      background: none;
    }
  }

  a {
    color: $ui-dark-gray;
    text-decoration: none;
  }

  .inactive {
    opacity: 0;
    z-index: -3000;
  }

  .active {
    opacity: 1;
    z-index: 3000;
  }

  #viewer {
    padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
    box-sizing: border-box;
  }

  #reader-info-bottom-flex {
      bottom: 0px;
      position: fixed;
      width: 100%;
      display: flex;
  }
  #reader-info-bottom {
    bottom: 0px;
    position: fixed;
    width: 100%;
  }
  .info {
    color: $ui-dark-gray;
    margin: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;

    &.top {
      line-height: 3;
      padding-top: env(safe-area-inset-top);
      min-height: 3.6rem;
    }

    &.bottom {
      line-height: 2;
      padding-bottom: env(safe-area-inset-bottom);
    }

    .chapter-position,
    .chapter-title,
    .remaining-positions {
      font-size: 0.85rem;
      font-variant-numeric: lining-nums tabular-nums;
    }
  }

  #iframe-wrapper iframe {
      border: none;
      overflow: auto;
      opacity: 0;
  }

  [data-viewer-theme="day"] {
    background-color: $ui-white;
  }

  [data-viewer-theme="sepia"] {
    background-color: $sepia-bg;



    .info {
      color: $ui-dark-gray;
    }

  }

  [data-viewer-theme="night"] {
    background-color: $night-bg;
    color: $ui-white;



    .info {
      color: $ui-light-gray;
    }

  }
