body {
  font-family: 'Montserrat', sans-serif;
}

.overlay-footer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

}

.a-dom-overlay button {
  padding: 1em;
  appearance: none;
  background: #18255A;
  border: 0.5px solid white;
  border-radius: 1em;
  margin: 1em 1em 0 0;
  color: white;
  position: relative; 
  max-height: 10dvh;
}

#transparent {
  z-index: 2;
  position: absolute;
}

#panelframe {
  top: 1em;
  display: block;
  width: 100vw;
  height: 80dvh;
  left: 1vw;
  border: none;
}

#splashframe {
  top: 1em;
  display: block;
  width: 100vw;
  height: 80dvh;
  left: 1vw;
  border: none;
}

.a-dom-overlay h2 {
  font-family: 'Merriweather', serif;
  margin: 0px;
}

.a-dom-overlay p {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  margin-bottom: 0px;
}

#my-interface {
  user-select: none;
  background-color: white;
  top: 27dvh;
  left: 5vw;
  position: fixed;
  width: 90vw;
  height: 60dvh;
  border-radius: 2em;
  border-color: white;
  border-width: 1px;
  z-index: 2;
}

#X {
  position: fixed;
  top: 24dvh;
  left: 88vw;
  border-radius: 5em;
  height: 5dvh;
  width: 5dvh;
  padding: 0px;
  z-index: 22;
}

#my-interface fieldset {
  padding: 0;
  margin-bottom: 0.5em;
}

#dom-overlay-message {
  padding: 1em;
  background: #33333355;
  border-top: 5px solid #ffffff55;
  color: white;

}

#UI {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: absolute;
  width: 100vw;
  bottom: 1dvh;
}

#pointers {

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100vw;
  bottom: 5dvh;
  left: 0;
  z-index: 1;
}

#pointers > div {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  z-index: 11;

}

#infoPointer {
  width: 50px;
  min-width: 50px;
  padding-right: 1.1em;
  z-index: 12;
}

#mapPointer {
  width: 50px;
  min-width: 50px;
  padding-left: 1.1em;
  z-index: 12;
}


#infoPointer > svg {
  width: 50px;
  height: 50px;
}

#mapPointer > svg {
  width: 50px;
  height: 50px;
}

#overlay {
  background-color: beige;
  border-radius: 3em;
}

#info {
  position: relative;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 4;
}

#map {
  display: none;
  width: 90vw;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 4;
}

#info img {
  max-width: 80vw;
  width: 200px;
  height: 200px;
}

#map img {
  max-width: 80vw;
  height: 200px;
}



.inputs {
  width: 50px;
  height: 50px;
}

/* DETAILS */
/* <div id="details" style="display: none;">
                <h2 id="title"></h2>
                <img id="painting">
                <p id="description"></p>
                <p id="metadata"></p>
    </div> */

#details {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  justify-items: center;
  overflow:auto;
  width: 100%;
}

#title {
  padding: 0.5em;
  font-family: 'Merriweather', serif;
  margin: 0px;
  font-size: medium;
}

#painting {
  max-width: 60vw;
  max-height: 40dvh;
}

model-viewer {
  width: 100%;
  height: 90%;
  background-color: #ffffff;
}

#description {
  font-size: small;
  max-width: 90%;
  font-weight: 400;
  overflow:auto
}

#metadata {
  font-size: small;
  max-width: 90%;
  font-family: 'Merriweather', serif;
}

@media only screen and (max-width : 1200px), only screen and (max-device-width : 1200px) {
  #panelframe {
    height: 93dvh;
    padding-bottom: 10dvh;
  }

  /* #details {
    bottom: 77px;
  } */
}

/* 
MOBILE
 */

@media only screen and (max-height :965px), only screen and (max-device-height: 965px) {
  #my-interface {
    bottom: 20dvh;
    top: 10dvh;
    height: 80dvh;
  }

  #X {
    top: 10dvh;
  }




}

:not(:defined) > * {
  display: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

model-viewer {
  width: 100%;
  height: 90%;
  background-color: #ffffff;
}


.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 {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color:#4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
}

#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: 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;
}