/*
 * Copyright 2019 Google 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
 *
 *     https://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.
 */

#ar-button {
	background-image: url("../images/ic_view_in_ar_new_googblue_48dp.png");
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: 12px 50%;
	background-color: #f8d635;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	top: 30px;
	padding: 0px 16px 0px 40px;
	font-family: Roboto Regular, Helvetica Neue, sans-serif;
	font-size: 14px;
	color:#303033;
	height: 36px;
	line-height: 36px;
	border-radius: 18px;
	border: 1px #f2f0f0 ;
}

#ar-button:active {
	background-color: #E8EAED;
}

#ar-button:focus {
	outline: none;
}

#ar-button:focus-visible {
	outline: 1px solid #4285f4;
}

@keyframes circle {
	from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
	to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
	from { transform: translateX(100px); }
	to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
	position: absolute;
	left: 50%;
	bottom: 175px;
	animation: elongate 2s infinite ease-in-out alternate;
	display: none;
}

model-viewer > #ar-prompt-hand {
	display: none;
	font-family: Roboto Regular, Helvetica Neue, sans-serif;
	font-size: 14px;
	color:#fff;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 100vh;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
	display: block;
}

model-viewer[ar-status="session-started"] > #ar-prompt-hand {
	display: flex;
}

model-viewer > #ar-prompt > img {
	animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 175px;
  display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
  display: block;
}

/*------------*/

/*body {
  margin: 1em;
  padding: 0;
  font-family: Google Sans, Noto, Roboto, Helvetica Neue, sans-serif;
  color: #012446;
}*/


#card {
  margin: 3em auto;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: 40vh;
	margin: 0 auto;
  /*border:1px solid #00b6d7;*/

}

.attribution {
  display: flex;
  flex-direction: row;
  margin: 1em;
}

.attribution h1 {
  margin: 0 0 0.25em;
}

.attribution img {
  opacity: 0.5;
  height: 2em;
}

.attribution .cc {
  flex-shrink: 0;
  text-decoration: none;
}

.Hotspot {
    background: #fff;
    border-radius: 32px;
    border: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    cursor: pointer;
    height: 24px;
    padding: 8px;
    position: relative;
    transition: opacity 0.3s;
    width: 24px;
}

.Hotspot:not([data-visible]) {
    background: transparent;
    border: 4px solid #fff;
    box-shadow: none;
    height: 32px;
    pointer-events: none;
    width: 32px;
}

.Hotspot:focus {
    border: 4px solid rgb(0, 128, 200);
    height: 32px;
    outline: none;
    width: 32px;
}

.Hotspot>* {
    opacity: 1;
    transform: translateY(-50%);
}

.HotspotAnnotation {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.8);
    display: block;
    font-family: Futura, Helvetica Neue, sans-serif;
    font-size: 18px;
    font-weight: 700;
    left: calc(100% + 1em);
    max-width: 128px;
    padding: 0.5em 1em;
    position: absolute;
    top: 50%;
    width: max-content;
}

.Hotspot:not([data-visible])>* {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-50% + 4px));
    transition: transform 0.3s, opacity 0.3s;
}

#rotate {
  background-image: url("../images/ic_rotate_90.png");
  background-repeat: no-repeat;
  background-size: 40px 40px;
  background-position: 0px 50%;
  background-color: transparent;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 130px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color:#4285f4;
  height: 72px;
  line-height: 72px;
  border-radius: 18px;
  border: 0;
}

#rotate:hover{
  background-image: url("../images/ic_rotate_90_w.png");
  color: #fff;
  cursor: pointer;
}

