.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: 160px;
    padding: 16px;
    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);
}

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

.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;
    }

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

