* {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

body {
  background-color: black;
}
canvas {
  width: 100%;
  height: 100%;
}

#loader {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/aden_loader.svg");
  background-size: 72px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  transition: opacity 0.5s ease-in;
  z-index: 1;
}

#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#2e2e2e+0,262626+100 */
  background: #2e2e2e; /* Old browsers */
  background: -moz-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #2e2e2e 0%, #202020 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e2e2e', endColorstr='#262626',GradientType=0 ); /* IE6-9 */
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.start-top-logo{
  position: absolute;
  top:120px;
}

#start-screen img {
  max-width: 224px;
  z-index: 2;
}

#start-energy {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#start-energy img {
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% {
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(0.8) rotate(360deg);
  }
}

#start-screen .button {
  position: absolute;
  bottom: 60px;
}
.button {
  border: solid 1px #fff;
  color: white;
  height: 60px;
  box-sizing: border-box;
  padding: 18px 24px;
  font-size: 18px;

  text-decoration: none;
  transition: all 0.3s ease;
}

footer {
  width: 100%;
  position: fixed;
  bottom: 24px;
  z-index: 20;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}


.button:hover {
  background-color: #45ba8c;
}

#instructions-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.background,
.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#instructions-screen .background {
  background: #45ba8c;
  opacity: 0.8;
}
#instructions-screen .content {
  display: flex;
  flex-direction: column;
  justify-items: center;
  padding: 0 36px;
  box-sizing: border-box;
  align-items: center;
}
#instructions-screen p {
  width: 100%;
}
.instructions-number {
  font: normal normal 200 48px/58px Montserrat;
  letter-spacing: 0px;
  color: #ffffff;
  opacity: 0.5;
  margin-top: 48px;
}

.instructions-text {
  font: normal normal normal 24px/29px Montserrat;
  letter-spacing: 0px;
  color: #ffffff;
  opacity: 1;
}

#instructions-screen .button {
  position: absolute;
  bottom: 60px;
}

#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#2e2e2e+0,262626+100 */
  background: #2e2e2e; /* Old browsers */
  background: -moz-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #2e2e2e 0%, #202020 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e2e2e', endColorstr='#262626',GradientType=0 ); /* IE6-9 */
  z-index: 10;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
}

.icon-corner {
  position: absolute;
  top: 24px;
  right: 24px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.icon-corner:hover {
  transform: scale(1.1);
}
.icon-close img {
  width: 12px;
  height: 12px;
}
.icon-menu img {
  width: 36px;
  height: 36px;
}
#menu > img {
  width: 224px;
}
#menu a.menu-link {
  text-decoration: none;
  font: normal normal normal 24px/29px Montserrat;
  letter-spacing: 0px;
  color: #45ba8c;
  margin-top: 48px;
  transition: color 0.3s ease;
}

#menu a.menu-link:hover {
  color: #58edb3;
}

#controls {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#control-interface {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100%;
  z-index: 1;
  height: 196px;

  transition: all 0.3s ease;
  text-align: center;
}

#control-interface.hidden {
  bottom: -460px;
}

#control-tabs {
  display: flex;
  width: 100vw;
  height: 100%;
  text-align: left;
  display: flex;
  align-items: top;
  justify-content: left;
  transition: all 0.3s ease;
  overflow: visible;
}

#control-tabs a {
  display: inline-block;
  flex: 1;
  margin: 24px;
  opacity: 0.4;
  transition: all 0.3s ease;
  max-width: 60px;
  max-height: 60px;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  -khtml-border-radius: 100%;
  text-align: center;
  overflow: visible;
  text-decoration: none;
}

#control-tabs a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 0.6;
}

#control-tabs a.active {
  background-color: rgba(255, 255, 255, 0.2);
  outline: #fff solid 3px;
  outline-offset: 9px;
  opacity: 1;
  transform: scale(1.1);
}

#control-tabs a p {
  transition: all 0.3s ease;
  opacity: 0;
  text-decoration: none;
  color: white;
  width: 180px;
  margin-top: 24px;
  margin-left: -60px;
  padding: 0;
  text-align: center;
}
#control-tabs a:hover p,
#control-tabs a.active p {
  opacity: 1;
}

#control-tabs a.active.photo {
  background-color: rgba(255, 255, 255, 0.4);
  outline: #fff solid 3px;
}

#control-tabs a div {
  width: 60px;
  height: 60px;
  display: block;
  transition: all 0.3s ease;
  transform: scale(1);
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  -khtml-border-radius: 100%;
    background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#control-tabs a.active div {
  margin-top: -6px;
  margin-left: -6px;
  width: 72px;
  height: 72px;
}

.controls-debug {
  position: fixed;
  width: 100%;
  bottom: 240px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  gap: 12px;
}
.controls-debug a {
  padding: 24px;
  background-color: whitesmoke;
  border-radius: 24px;
  flex-grow: 1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  text-decoration: none;

  display: inline-block;
}

.controls-debug a:hover {
  opacity: 0.8;
}
.controls-debug a:active {
  opacity: 1;
}

.controls-debug a p {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

:not(:defined) > * {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

model-viewer {
  width: 100%;
  height: 100%;
  background: #2e2e2e; /* Old browsers */
  background: -moz-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #2e2e2e 0%, #262626 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #2e2e2e 0%, #202020 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e2e2e', endColorstr='#262626',GradientType=0 ); /* IE6-9 */
 
}


.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 240px;
  background:none;

}

#ar-button:hover{
  background-color: #45ba8c;
}

@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: fixed;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

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;
}



.slider {
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: absolute;
  bottom: 16px;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  margin-right: 10px;
  border-radius: 10px;
  border: none;
  display: flex;
}

.slide.selected {
  border: 2px solid #4285f4;
}

.slide:focus {
  outline: none;
}

.slide:focus-visible {
  outline: 1px solid #4285f4;
}


@media only screen and (max-width: 320px) {
  .instructions-number {
    font-size:36px;
    margin-top: 12px;
  }
  
  .instructions-text {  
    font-size: 18px;
  }

  #instructions-screen .button {
    bottom: 24px;
  }

  #instructions-screen .content {
    padding: 0 24px;

  }
}

@media only screen and (max-height: 640px) {
  .instructions-number {
    font-size:24px;
    margin-top: 12px;
  }
  
  .instructions-text {  
    font-size: 16px;
  }

  #instructions-screen .button {
    bottom: 24px;
  }

  #instructions-screen .content {
    padding: 0 24px;

  }
}