/**
 * Copyright 2019 The AMP HTML Authors. All Rights Reserved.
 *
 * 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.
 */

.i-amphtml-next-page-document {
  overflow: hidden;
}

.i-amphtml-next-page-document:not(.amp-next-page-visible) [i-amphtml-fixedid] {
  display: none;
}

.i-amphtml-next-page-document.amp-next-page-visible {
  opacity: 1;
  overflow: visible;
}

/** Fixes collapsing margins when switching between the visible and hidden states */
.i-amphtml-next-page-document:before,
.i-amphtml-next-page-document:after {
  content: ' ';
  display: table;
}

.i-amphtml-next-page-placeholder {
  background: #eee;
}

/** Default separator styles */
.amp-next-page-separator {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/** Default recommendation-box styles */
.amp-next-page-links {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.amp-next-page-link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
  overflow: auto;
  padding: 10px 0;
  text-decoration: none;
}

.amp-next-page-image {
  width: 72px;
  height: 72px;
  float: left;
  margin: 0 10px;
  background-size: cover;
  background-position: center;
}

.amp-next-page-text {
  position: relative;
  margin: 5px 30px 5px 0;
  color: #3c4043;
  font-size: 17px;
}
