html,
body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

html,
body,
model-viewer {
    width: 100%;
    height: 100%;
}

model-viewer {
    display: block;
    max-width: 100%;
    transition: max-width 0.3s ease-in-out;
}

model-viewer.smaller {
    max-width: 66%;
}

a {
    color: inherit;
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

button {
    position: absolute;
    bottom: 16px;
    right: 16px;
    /*padding: 0.5em;*/
    /*background: #fff;*/
    /*border: 1px solid #ccc;*/
    /*border-radius: 0.5em;*/
    /*font-size: 1em;*/
    /*font-weight: bold;*/
    /*text-decoration: none;*/
    /*color: #000;*/
    /*cursor: pointer;*/
    /*z-index: 1000;*/
}

.qr-button {
    transition: opacity 0.3s ease-in-out;

    @media (pointer: coarse) {
        pointer-events: none;
        opacity: 0;
    }
}

.overlay {
    position:fixed;
    top:0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    padding: 40px;
    line-height: 1.5;
    border-left: 1px solid #e9e9e9;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.overlay * + *:not(button span) {
    margin-top: 1em;
}

.overlay.visible {
    transform: translateX(0);
}

/* Huus */
button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9rem;
    padding: 12px 20px;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
}

button svg {
    width: 20px;
    height: 20px;
}

button span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-left: 10px;
}

@media only screen and (min-width: 768px) {
    .overlay {
        width: 50vw;
        padding: 56px;
    }

    [slot=ar-button] {
        display: none;
    }

    .qr-button.active {
        pointer-events: auto;
        opacity: 1;
    }
}

@media only screen and (min-width: 992px) {
    .overlay {
        width: 33vw;
        padding: 80px;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        /*color-scheme: dark;*/
    }
    body {
        /*color: white;*/
        /*background: black;*/
    }
}