* {
    font-family: Helvetica, sans-serif;
}

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

::backdrop {
    background: rgba(255,255,255,0);
}


body {
    background-color: #fff;
    background-image: url(/static/0.3.5/media/background.png);
    background-size: cover;
}

body.transparent {
    background-color: transparent;
    background-image: none;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}

.bottom-right-button-row {
    position: fixed;
    bottom: 9px;
    right: 9px;
    height: 50px;

    text-align: right;
}
.bottom-right-button-row .ar-viewer-section {
    display: inline-block;
    height: 50px;
}
.bottom-right-button-row .ar-viewer-section .ar-view-button {
    display: none;
}
.bottom-right-button-row #fullscreen-button {
    display: none;
    box-sizing: border-box;

    transition: background-size 0.1s ease-in-out;

    width: 50px;
    height: 50px;

    border: 2px solid #ccc;
    border-radius: 5px;
    
    background: url(/static/0.3.5/media/fullscreen.png), #fff;
    background-position: center;
    background-size: 32px;
    background-repeat: no-repeat;
}
.bottom-right-button-row #fullscreen-button:hover {
    background: url(/static/0.3.5/media/fullscreen.png), #ccc;
    background-position: center;
    background-size: 32px;
    background-repeat: no-repeat;

    border-color: #aaa;
    cursor: pointer;
}
.bottom-right-button-row #fullscreen-button:active {
    background: url(/static/0.3.5/media/fullscreen.png), #ccc;
    background-position: center;
    background-size: 29px;
    background-repeat: no-repeat;
}


.ar-viewer-pane {
    position: absolute;
    bottom: 9px;
    left: 9px;
    right: 9px;
    text-align: right;
}

.ar-view-button {
    box-sizing: border-box;
    height: 50px;
    width: 160px;

    transition: background-size 0.1s ease-in-out;

    border: 2px solid #ccc;
    border-radius: 5px;

    background: url(/static/0.3.5/media/view-in-AR.png), #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85%;

    display: none;
}
.ar-view-button:hover {
    cursor: pointer;

    border-color: #aaa;

    background: url(/static/0.3.5/media/view-in-AR.png), #ccc;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85%;
}
.ar-view-button:active {
    background: url(/static/0.3.5/media/view-in-AR.png), #ccc;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
}

.ios-ar-view-window-container, .android-ar-warning-container {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px;
    padding: 0px;

    background: rgba(0,0,0,0.4);

    display: none;
}

.ios-ar-view-window, .android-ar-warning {
    position: absolute;

    max-width: 500px;
    max-height: 90%;

    padding: 10px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #000;
    border-radius: 2px;
    background: #fff;

}

.android-ar-warning {
    padding: 4px;
}


.ios-ar-view-window p,
.android-ar-warning p {
    margin-top: 0px;
    margin-bottom: 8px;
}

.ios-ar-view-window img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 240px;

    background-color: #eee;
    border: 1px solid #888;
    border-radius: 6px;
}

@media screen and (max-height: 420px) {
    #qr-code-mobile {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        margin: 0px;
        padding: 0px;
        background: rgba(0,0,0,0.4);
        font-size: 1.4em;
        display: none; /* flex */
        align-items: center;
        justify-content: center;
        z-index: 5;
    }
    #qr-code-mobile .window {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 10px;
        bottom: 10px;

        background: #fff;
        border: 1px solid #000;
    }
    #qr-code-mobile .window #qrcode {
        display: inline-block;
        position: absolute;
        left: 5px;
        top: 50%;
        right: calc(50% + 5px);
        transform: translateY(-50%);
    }
    #qr-code-mobile #qrcode>img {
        margin: 0px auto;
        width: 100%;
        height: auto;
    }
    #qr-code-mobile .window p {
        position: absolute;
        left: calc(50% + 10px);
        right: 15px;
        top: calc(50% + 5px);
        transform: translateY(-50%);
        
        margin: 0px;
        padding: 0px;

        font-size: 16px;
        font-family: Helvetica, sans-serif;
        text-align: justify;
    }
}

@media screen and (min-height: 420px) {
    #qr-code-mobile {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        margin: 0px;
        padding: 0px;
        background: rgba(0,0,0,0.4);
        font-size: 1.4em;
        display: none; /* flex */
        align-items: center;
        justify-content: center;
        z-index: 5;
    }
    #qr-code-mobile .window {
        background: #fff;
        border: 1px solid #000;
        width: 256px;
        padding: 10px;
    }
    #qr-code-mobile #qrcode>img {
        margin: 0px auto;
    }
    #qr-code-mobile .window p {
        margin-bottom: 6px;
        margin-left: 20px;
        margin-right: 20px;
        font-family: Helvetica, sans-serif;
        text-align: justify;
    }
}

#vendor-logo {
    pointer-events: none;

    position: absolute;
    right: 40px;
    bottom: 20px;
    height: 40px;
    text-align: right;

    opacity: 0.7;

    display: table-cell;
}

#vendor-logo>* {
    vertical-align: middle;
}

#vendor-logo>img {
    max-height: 100%;
}

.launcher-pane {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    border: none;
}

.launcher-pane .launcher-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    border: none;
}

.launcher-pane .launcher-button {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    border-radius: 100%;
    background-color: #f00;
    transition: width 0.2s ease-out,
        height 0.2s ease-out,
        margin-top 0.2s ease-out,
        margin-left 0.2s ease-out;
}
.launcher-pane .launcher-button:hover {
    background-color: #d55;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    cursor: pointer;
}
.launcher-pane .launcher-button:active {
    background-color: #a11;
    cursor: pointer;
}

.launcher-pane .launcher-button .launcher-button-icon {
    position: absolute;
    top: 16.6%;
    left: 20%;
    bottom: 16.6%;
    right: 13.3%;
    background-color: rgba(255,255,255,0);
    background-image: url("/static/0.3.5/media/playbutton.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.launcher-pane .launcher-button .launcher-button-text {
    position: absolute;
    top: 0x;
    left: 0px;
    width: 90%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 0;

    font-weight: bold;
    color: #534;
    font-family: sans-serif;
}

#toggleAnimationButton {
    min-width: 84px;
    padding: 10px 15px;
    color: #fff;
    font-weight: 400;
    font-size: 15px;
    border-radius: 0px;
    border: 2px solid #fa482a;
    background-color: #fa482a;
    transition: background-color linear 0.2s, color linear 0.2s;
}
#toggleAnimationButton:hover {
    color: #fa482a;
    background-color: #fff;
    cursor: pointer;
}

img.dot {
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out;

    z-index: 1;
}
img.dot:hover {
    cursor: pointer;
    width: 2.5em;
    height: 2.5em;
}
img.dot.dot-disabled {
    width: 0.8em;
    height: 0.8em;
}
img.dot.dot-disabled:hover {
    width: 0.8em;
    height: 0.8em;
}


div.popup-3d {
    font-family: Helvetica, sans-serif;

    position: absolute;
    top: 0px;
    left: 0px;
    width: 350px;

    padding: 20px;
    padding-top: 16px;
    padding-bottom: 26px;

    font-size: 14px;
    background-color: rgba(255,255,255,0.95);

    border-radius: 10px;
    box-shadow: 0px 5px 30px 4px rgba(120,120,120,0.6);

    z-index: 1;

    cursor: url(/static/0.3.5/media/cancel2.png), auto;
}
div.popup-3d.has-button {
    padding-bottom: 40px;
}
div.popup-3d>div.title {
    border-bottom: 1px solid #000;

    font-family: 'Changa', 'Open Sans', sans-serif;
    font-size: 24px;
}
div.popup-3d>div.content {
    margin-top: 8px;

    font-family: 'Open Sans', sans-serif;
}

/* Bouton "En Savoir Plus" sur les popups */
div.popup-3d button.more {
    font-family: 'Changa', 'Open Sans', sans-serif;

    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translate(-50%, 50%);

    width: 160px;

    padding-top: 5px;
    padding-bottom: 5px;

    color: #fff;
    font-weight: bold;
    font-size: 20px;
    
    background: #000;
    border: 1px solid #000;
    border-radius: 5px;

    cursor: pointer;
}

div.popup-3d button.more:hover {
    background: #fff;
    color: #000;
}


div.popup-fixed {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 300px;
    transform: translateY(-50%);
    border: 3px solid #333;
    border-radius: 0.5em;
    background-color: #fff;

    z-index: 1;

    cursor: url(/static/0.3.5/media/cancel2.png), auto;
}
div.popup-3d>div {
    margin: 4px;
}
div.popup-3d>div>p {
    margin-top: 4px;
    margin-bottom: 4px;
}

div.interaction-button {
    position: absolute;
    width: 1.3em;
    height: 1.3em;
    transform: translate(-50%, -50%);

    background-color: #009dde;
    background-size: 100%;

    aspect-ratio: 1;
    border-radius: 100%;
    transition: width 0.2s ease-out, height 0.2s ease-out;

    box-shadow: 0px 0px 15px 0px #fff;

    z-index: 1;
}
div.interaction-button:hover {
    cursor: pointer;
    width: 1.6em;
    height: 1.6em;
}
div.interaction-button-text {
    background-image: url(/static/0.3.5/media/Bouton_text.png);
}
div.interaction-button-video {
    background-image: url(/static/0.3.5/media/Bouton_video.png);
}
div.interaction-button-plus {
    background-image: url(/static/0.3.5/media/Bouton_plus.png);
}
div.interaction-button-3d {
    background-image: url(/static/0.3.5/media/Bouton_3d.png);
}

div.button-circle {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    
    border: 1.5px solid #009dde;
    border-radius: 100%;
}

/* mobile display rules */
@media only screen and (max-width: 850px) {
    div.header-bar {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        height: 100px;
    }

    div.header-bar>.header-thumbnail {
        position: absolute;
        top: 50%;
        left: 16px;
        width: 60px;
        height: 60px;

        transform: translateY(-50%);

        border-radius: 100%;
        border: 1px solid rgba(0,0,0,0.4);

        background-image: url(../media/logo_square_dark.png);
        background-color: #f4f4f4;
        background-size: 100%;
    }

    div.header-bar>div.right-side {
        position: absolute;
        left: 100px;
        right: 25px;
        top: 0px;
        height: 100px;
    }

    div.header-bar>div.right-side>div.title {
        position: absolute;
        top: 20px;
        left: 0px;
        right: 0px;
        bottom: 50%;

        border-bottom: 1px solid #000;
        
        font-size: 1.2em;
    }

    div.header-bar>div.right-side>div.description {
        position: absolute;
        top: 50%;
        left: 0px;
        right: 0px;
        bottom: 20px;

        margin-top: 5px;

        font-size: 0.9em;
    }


    div.header-bar>div.right-side>div.title>span,
    div.header-bar>div.right-side>div.description>span {
        font-family: 'Changa', 'Open Sans', 'Helvetica', sans-serif;

        position: absolute;
        left: 0px;
        top: 50%;
        transform: translate(0%, -50%);

        max-width: 100%;
        
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* desktop display rules */
@media only screen and (min-width: 851px) {
    div.header-bar {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        height: 190px;
    }

    div.header-bar>.header-thumbnail {
        position: absolute;
        left: 57px;
        top: 27px;
        bottom: 27px;
        width: 136px;

        border-radius: 100%;
        border: 1px solid rgba(0,0,0,0.4);

        background-image: url(../media/logo_square_dark.png);
        background-color: #f4f4f4;
        background-size: 100%;
    }

    div.header-bar>div.right-side {
        position: absolute;
        left: 230px;
        right: 100px;
        top: 0px;
        height: 190px;
    }

    div.header-bar>div.right-side>div.title {
        position: absolute;
        top: 20px;
        left: 0px;
        right: 0px;
        bottom: 50%;

        border-bottom: 1px solid #000;

        font-size: 40px;
    }

    div.header-bar>div.right-side>div.description {
        position: absolute;
        top: 50%;
        left: 0px;
        right: 0px;
        bottom: 20px;

        font-size: 24px;
    }


    div.header-bar>div.right-side>div.title>span,
    div.header-bar>div.right-side>div.description>span {
        font-family: 'Changa', 'Open Sans', 'Helvetica', sans-serif;

        position: absolute;
        left: 0px;
        top: 50%;
        transform: translate(0%, -50%);

        max-width: 100%;
        
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}