@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700');

:root {
    --ar-button-scale: 1;
    --poster-color: transparent;
    --progress-bar-height: 0;
}

* {
  box-sizing: border-box;
}

select {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    box-sizing: border-box;
    padding: 0.5em 2em 0.5em 0.5em;
    border: 1px solid #a7a7a7;
    border-radius: 0px;
    line-height: inherit;
    width: 100px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-color: white;
    background-position: right 15px top 1em, right 10px top 1em;
    background-size: 5px 5px, 5px 5px;
}

.webar-view {
    display: grid;
    position: absolute;
    grid-template-rows: min-content 1fr;
    grid-template-columns: repeat(2, 50%);

    width: 100%;
    top: 0px;
}
.webar-head {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    position: relative;
    z-index: 2;
}

.webar-head h1 {
    margin: 0;
    padding: 48px 0 0 24px;
    white-space: nowrap;
    color: #4a4a4a;
}

.webar-qr {
    position: relative;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 100%;
    position: relative;
    z-index: 2;
    display: none;
}

.webar-qr-img {
    display: block;
    position: absolute;
    top: 32px;
    right: 16px;
    width: 80%;
    max-width: 100px;
    max-height: 100px;
    padding: 1px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    -webkit-box-shadow: 1px 0px 4px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 1px 0px 4px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 1px 0px 4px 0px rgba(34, 60, 80, 0.2);

    display: none;
}

.webar-qr-img img {
    display: block;
    width: 100%;
    height: auto;

    display: none;
}

.webar-body {
    grid-row: 1 / -1;
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
}

model-viewer#model {
    width: 0px;
    height: 0px;
}

@media only screen and (min-width: 1024px) {
    .desktop .webar-qr {
        display: block;
    }

    .webar-head h1 {
        padding-left: 32px;
    }
    .webar-qr-img  {
        right: 32px;
        display: none;
    }

    #controls {
        left: 32px;
    }
}

.iframe-mode .webar-view,
.iframe-mode model-viewer#model {
    position: absolute;
    width: 100%;
    height: 100%;
}


#ar-button {
    /* border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);

    position: absolute;
    top: 48px;
    right: 24px;

    border: 0 none;
    outline: 0 none;

    display: none;
    height: 48px;
    width: 48px;

    background: white url('https://s3.eu-central-1.amazonaws.com/marevo.vision/RelevantProjects/webAR/img/gotoar.jpg') 50% 50% / contain no-repeat; */
}

@media screen and (min-width: 560px) {
    /* #ar-button {
        right: 32px;
    } */
}

#ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 60px;
    animation: 2s ease-in-out 0s infinite alternate none running elongate;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-name: elongate;
    display: none;
}

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

    to {
        transform: translateX(-100px);
    }
}

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

    to {
        transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

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

