/*
 * Copyright 2017 Google Inc. 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.
 */

body {
  font-family: monospace;
  margin: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
  -webkit-user-select: none;
  user-select: none;
  background-color: rgb(255, 255, 255);
}

div.demo-card {
  width: 80vw;
  margin: 20px auto;
  padding: 16px;
}

.container{
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.d-flex{
  display: flex !important;
}
.align-items-center{
  align-items: center !important;
}
header{
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
}

body.ar header{
  display: none;
}

header .logo{
  position: relative;
  display: block;
  margin-right: auto;
  white-space: nowrap;
}
header .logo .divider{
  display: inline-block;
  width: 1px;
  height: 57px;
  margin: 0 14px;
  vertical-align: middle;
  background-color: #666;
}
header .logo img{
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}

#enter-ar-info .mdl-card__title {
  color: #fff;
  height: 176px;
  background-color: rgb(96, 125, 139);
}
.asteroid-wrap{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

body.ar .asteroid-wrap{
  display: none;
}

#loading-screen {
  position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #ffffff;
  /*background-image: linear-gradient(to top, #302144, #592651 20%, #A53F5B 40%, #EF5966 60%, #F47C33 80%, #F9A000); */
	opacity: 1;
 	transition: 1s opacity;
}

#loading-screen.fade-out {
  opacity: 0;
}

#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #302144;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #EF5966;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #F9A000;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
  0%   {
      -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      transform: rotate(0deg);
  }
  100% {
      -webkit-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      transform: rotate(360deg);
  }
}
@keyframes spin {
  0%   {
      -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      transform: rotate(0deg);
  }
  100% {
      -webkit-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      transform: rotate(360deg);
  }
}


.asteroid{
  position: absolute;
  right: -100px;
  top: 0;
  width: 70%;
  z-index: -10;
}

#experienceInfo{
  margin: 0 5%;
}
#experienceInfo > h1{
  font-family: "TradeGothic","Roboto",sans-serif;
  margin: auto;
  padding-top: 0.25em;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.4;
  color:#A53F5B;
  text-transform: uppercase;
  font-size: xx-large;
}
#experienceInfo > p{
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.65;
  color: #302144;
}
body.ar #experienceInfo{
  display: none;
}

body.ar #orbit{
  display:none;
}


body.unsupported #enter-ar-info {
  display: none;
}

body.ar #enter-ar-info {
  display: none;
}

#unsupported-info {
  display: none;
}

body.unsupported #unsupported-info {
  display: block;
}

#info {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  margin: 1em 1em 2em 1em;
  z-index: 10;
  display: block;
  line-height: 2em;
  text-align: center;
  display: none;
  width: 100%;
}

body.ar #info {
  display: block;
}

#info * {
  color: #fff;
}

#info span {
  background-color: rgba(40, 40, 40, 0.4);
  padding: 0.4em 0.6em;
  width: 80vw;
  border-radius: 0.1em;
}

#stabilization {
  background-image: url(../assets/stabilization.gif);
  background-size: contain;
  background-repeat: no-repeat;
  width: 400px;
  height: 400px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  z-index: 10;
  display: none;
}
#recenter {
  left: 50%;
  font-family: "Roboto",sans-serif;
  font: bold;
  transform: translate(-50%, 0);
  position: absolute;
  bottom: 1rem;
  text-align: center;
  height: 3rem;
  background-color: #fefefeef;
  width: 9rem;
  justify-content: center;
  display: none;
}
#recenter > h2{
  color:#A53F5B;
  text-transform: uppercase;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.ar #stabilization {
  display: block;
}

body.ar.stabilized #stabilization {
  display: none;
}

body.ar.stabilized #recenter {
  display: block;
}

#wrong-hosting-root { display: none; }

.modal2{
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: #fefefeef;
  margin: auto;
  padding: 0;
  width: 90%;
}

.modal2.one{
  transform:scaleY(.01) scaleX(0) translate(-50%, -50%);
  animation:unfoldIn 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal2.one > .modal_content{
  transform:scale(0);
  animation: zoomIn 0.9s 0.4s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal2.out{
  transform:scale(1) translate(-50%, -50%);
  animation:unfoldOut 1s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal2.out > .modal_content{
  animation: zoomOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

@keyframes unfoldIn {
  0% {
    transform:scaleY(.005) scaleX(0) translate(-50%, -50%);
  }
  50% {
    transform:scaleY(.005) scaleX(1) translate(-50%, -50%);
  }
  100% {
    transform:scaleY(1) scaleX(1) translate(-50%, -50%);
  }
}

@keyframes unfoldOut {
  0% {
    transform:scaleY(1) scaleX(1) translate(-50%, -50%);
  }
  50% {
    transform:scaleY(.005) scaleX(1) translate(-50%, -50%);
  }
  100% {
    transform:scaleY(.005) scaleX(0) translate(-50%, -50%);
  }
}

@keyframes zoomIn {
  0% {
    transform:scale(1);
  }
  100% {
    transform:scale(1);
  }
}

@keyframes zoomOut {
  0% {
    transform:scale(1);
  }
  100% {
    transform:scale(1);
  }
}


.modal_content{
  font-family: "Roboto",sans-serif;
  font: bold;
  padding: 1.5rem 2rem;
}

.modal_content > h1{
  margin: auto;
  color:#A53F5B;
  text-transform: uppercase;
  font-size: xx-large;
}

.modal_content > p{
  margin: auto;
  color:black;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: x-large;
  font-family: "Helvetica", Arial, sans-serif;
}

.modal_content > a{

}

.link{
  position: relative;
  display: inline-block;
  padding: 0 40px 15px 0;
  font-family: "RobotoMono",sans-serif;
  font-size: x-large;
  letter-spacing: 1px;
  color: #302144;
  text-decoration: none;
  overflow: hidden;
  width: 30%;
}

.link::after{
  content: " ";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(200%);
  height: 2px;
  background-image: linear-gradient(to right, #302144, #592651 20%, #A53F5B 40%, #EF5966 60%, #F47C33 80%, #F9A000);
  background-repeat: repeat-x;
  background-size: calc(50%) 100%;
  transform: scaleY(1) translateX(0);
  transform-origin: 50% 100%;
  transition: transform 0.35s cubic-bezier(0.42, 0, 0.05, 0.99), -webkit-transform 0.35s cubic-bezier(0.42, 0, 0.05, 0.99), -o-transform 0.35s cubic-bezier(0.42, 0, 0.05, 0.99);
}

.link > div{
  display: flex;
  text-align: center;
  width: 100%;
}

#experienceInfo > .link{
  position: relative;
  display: block;
  width: 65%;
  padding: 0 0 15px 0;
  margin:auto;
  text-align: center;
}
#experienceInfo > .link::after{
  background-size: calc(50%) 100%;
}
#experienceInfo > .link > div{
  display: block;
}



/* Custom */
.modal{
  position: fixed;
  width: 10vw;
  height: 10vh;
  background: #ffffff;
  opacity: 0.7;
  padding: 2rem 3rem;
  flex-direction: column;
  display: flex;

}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#infoModal{
  animation: pop 0.3s linear;
}

.modal{
  display: none;
}

@keyframes pop{
  0%{
    transform: scale(0);
  }
  25%{
    transform: scale(.45);
  }
  50%{
    transform: scale(.75);
  }
  75%{
    transform: scale(1.2);
  }
  100%{
    transform: scale(1);
  }
}

@keyframes reversePop{
  0%{
    transform: translate(-50%, -50%);
    transform: scale(1);
    
  }
  25%{
    transform: translate(-50%, -50%);
    transform: scale(1.2);
  }
  50%{
    transform: translate(-50%, -50%);
    transform: scale(.75);
  }
  75%{
    transform: translate(-50%, -50%);
    transform: scale(.45);
  }
  100%{
    transform: translate(-50%, -50%);
    transform: scale(0);
  }
}