/**
 * 3D Foundation Project
 * Copyright 2025 Smithsonian Institution
 *
 * 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.
 */

////////////////////////////////////////////////////////////////////////////////

@forward "../../../libs/ff-ui/source/styles/styles";
@use "../../../libs/ff-ui/source/styles/styles";
@use "../../../libs/ff-three/source/ui/styles" as threeStyle;

////////////////////////////////////////////////////////////////////////////////
// TYPOGRAPHY

// now loaded from index page, via fonts.css
//@import url('https://fonts.googleapis.com/css?family=Amiri:400,700');
//@import url('https://fonts.googleapis.com/css?family=Hind+Siliguri:400,700');

.sv-article {
  h1 {
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 75px; // width of top blue bar
      height: 5px; // height of top blue bar
      background-color: styles.$color-primary;
    }

    margin: 0.3em 0;
    font-family: "Amiri", serif;
    font-size: 2.3em;
    font-weight: normal;
    color: styles.$color-text-light;
  }

  p, h2, h3, h4, h5, h6, ul, ol, li {
    font-family: "Hind Siliguri", sans-serif;
    color: styles.$color-text;
  }

  //h2, h3, h4, h5, h6 {
  //  font-size: 1.3em;
  //  margin: 1.2em 0 0.8em 0;
  //}

  p, ul, ol {
    font-size: 1.15em;
    margin: 0.8em 0;
  }

  p {
    line-height: 1.55em;
  }

  ul {
    padding-inline-start: 2.5em;
    list-style: disc outside;
  }
  ol {
    padding-inline-start: 2.5em;
    list-style: decimal outside;
  }
  a:link, a:visited, a:hover, a:active {
    color: styles.$color-primary;
  }

  iframe, video {
    max-width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  figure {
    display: table;
    margin: 1rem auto;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 1.15em;
  }
  
  figure.align-left {
    float: left;
  }
  
  figure.align-right {
    float: right;
  }

  figure.align-center {
    text-align: center;
  }
  
  figure.image figcaption {
    color: #999;
    display: block;
    margin-top: 0.25rem;
    text-align: center;
    -webkit-user-modify: read-only;
  }
}



////////////////////////////////////////////////////////////////////////////////
// GLOBAL

.sv-content-view {
  @include styles.font-ui-normal;
  font-size: 0.85em;
  line-height: 1.35;
  color: styles.$color-text;
  background-color: styles.$color-background;
  @include styles.fullsize;
  overflow: hidden;
  @include styles.noselect;
}

.sv-logo {
  flex: 0 50 180px;
  min-width: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;

  height: 40px;
  user-select: none;

  .sv-short {
    flex-grow: 1;
    width: 0;
    max-width: 40px;

    .sv-logo-sm {
    }
  }

  .sv-full {
    flex: 1 0 180px;
    display: flex;
    height: 100%;

    .sv-logo-full {
      flex: auto;
      height: 100%;
    }
  }

}

.ff-flex-spacer {
  @include styles.noselect;
}

// Screen reader only elements
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@keyframes spin { 100% { transform:rotate(360deg); } }

.sv-prompt, .sv-spinner {
  @include styles.fullsize;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.sv-spinner-wheel {
  height: 120px;
  width: 120px;
  animation:spin 5s linear infinite;
}




