:root {
    --color-primary:  #000000;
    --color-accent:  #222222;
}

@font-face {
    font-family: "CircularStd-Bold";
    src: url("../fonts/CircularStd-Bold.ttf");
}

@font-face {
    font-family: "CircularStd-Book";
    src: url("../fonts/CircularStd-Book.ttf");
}

@font-face {
    font-family: "CircularStd-Medium";
    src: url("../fonts/CircularStd-Medium.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "CircularStd-Medium";
}

body {
	overflow: hidden;
	box-sizing: border-box;
	background-color: #fff;
	min-width: 100vw;
	min-height: 100vh;
}

::-webkit-scrollbar {
    width: 0;
}

#VTOUR-vtour-container {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 110;
}

#VTOUR-main-canvas {
    z-index: 98;
}

#VTOUR-logo-container {
    pointer-events: auto;
    z-index: 30;
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

#VTOUR-logo {
    width: 32vh;
    height: 16vh;
    margin-top: 15vh;
    background-image: url("../icons/logo.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#VTOUR-brand {
    font-size: 32px;
    color: var(--color-primary);
    text-align: center;
    padding: 0 2vh;
}

#VTOUR-brand span {
    font-size: 1.2em;
}

#VTOUR-author {
    color: var(--color-primary);
    margin-top: 15vh;
    margin-bottom: 10vh;
}

#VTOUR-3dd-logo {
    width: 12vh;
    height: 4vh;
    background-image: url("../icons/3dd-logo.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    margin-left: 1em;
}

#VTOUR-startVtour {
    width: 16vh;
    padding: 15px;
	font-size: 1.2vw;
	letter-spacing: 0.4em;
    text-align: center;
	text-transform: uppercase;
	color: var(--color-primary);
    border: solid 2px var(--color-primary);
    background-color: #fff;
	cursor: pointer;
	transition: all 200ms;
}

#VTOUR-startVtour:hover {
    background-color: var(--color-primary);
    border: solid 2px transparent;
    color: #fff;
}

#VTOUR-author {
    margin-top: 25vh;
}

#VTOUR-startDeviceOrientation {
    pointer-events: auto;
    position: fixed;
    top: 22vh;
    left: 2vw;
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
    box-shadow: 0 0 5px 1px #222;
    background-image: url("../icons/device-360.png");
    background-position: center;
    background-size: 50%;
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,0.6);
    z-index: 99;
    transform: scale(0.8);
    transition: background-color 500ms, transform 300ms;
}

#VTOUR-startDeviceOrientation.active {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1);
}

#VTOUR-loading-screen {
	position: absolute;
	z-index: 3000 !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
 	transition: 200ms opacity;
}

#VTOUR-loading-screen.fade-out {
    opacity: 0;
    display: none;
}

#VTOUR-loader {
    display: block;
    position: fixed;
	top: calc(50vh - 50px);
	left: calc(50vw - 50px);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ccc;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#VTOUR-loader:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #999;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

#VTOUR-loader:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ddd;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

#VTOUR-nav-menu-wrapper {
    pointer-events: auto;
    display: none;
    z-index: 10;
    background-color: var(--color-accent);
    position: fixed;
    width: 100%;
    height: 70px;
    max-height: 70px;
    bottom: 0;
    left: 0;
    text-align: center;
    transition: all 0.3s ease-out;
}

#VTOUR-nav-menu-wrapper.hidden {
    bottom: -70px;
}

#VTOUR-arrow {
    cursor: pointer;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 80px;
    left: calc(50% - 28px);
    background-image: url("../icons/arrow.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotateX(180deg);
    transition: all 0.3s ease-in;
}

#VTOUR-nav-menu-wrapper.hidden #VTOUR-arrow {
    transform: rotateX(0deg);
}

.nav-menu-container {
    opacity: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    scrollbar-width: none;
    text-align: center;
    transition: all 200ms ease-in, left 400ms;
}

.nav-menu-container.onscreen {
    opacity: 1;
}

.nav-item {
    cursor: pointer;
    opacity: 0.7;
    display: inline-block;
    height: 70px;
    width: 70px;
    padding-top: 20px;
    color: #fff;
    border-bottom: solid 4px transparent;
    transition: all 300ms ease-in;
}

.nav-item:hover {
    opacity: 0.9;
}

.nav-item.selected {
    opacity: 1;
    border-bottom-color: #ddd;
    position: relative;
}

#VTOUR-nav-menu-label {
    
    pointer-events: none;
    position: absolute;
    display: inline-block;
    left: 0;
    bottom: 180px;
    width: 100%;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease-in;
}

#VTOUR-nav-menu-label.close {
    bottom: 120px;
}

.label-item {
    pointer-events: auto;
    font-family: inherit;
    position: relative;
    background-color: rgba(0,0,0,0.6);
    padding: 0.3vw 1vw;
    margin: 2px;
    display: inline-block;
    font-size: 26px;
    color: #888;
    cursor: pointer;
    transition: all 200ms ease-in;
}

.label-item.selected {
    background-color: rgba(0,0,0,0.8);
    color: #ddd;
}

.releases {
    opacity: 1;
    font-family: inherit;
    margin-top: 5px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease-out;
}

.releases li {
    display: block;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    padding: 2px;
    margin: 4px 0;
    background-color: rgba(0,0,0,0.6);
    transition: all 200ms ease-in;
}

.releases li.selected {
    background-color: rgba(0,0,0,0.8);
}

#VTOUR-nav-menu-label.close .releases {
    opacity: 0;
    display: none;
}

#VTOUR-overlay {
    pointer-events: none;
    position: fixed;
    cursor: default;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    z-index: 1000;
}

#VTOUR-overlay.active {
    pointer-events: auto;
    opacity: 0.4;
}

#VTOUR-details-container {
    cursor: default;
    pointer-events: auto;
    position: fixed;
    /*width: 80vw;
    height: 80vh;
    left: 10vw;*/
    width: 60vw;
    height: 60vh;
    left: 20vw;
    top: 100vh;
    z-index: 1001;
    box-sizing: border-box;
    opacity: 0;
    /*background-color: #ffffff;
    border: solid 10px var(--color-primary);*/
    transition: all 0.3s ease-in, opacity 0.5s, top 0.8s;
}

#VTOUR-details-container.visible {
    opacity: 1;
    /*top: 10vh;*/
    top: 20vh;
}

/*
#VTOUR-details-container:before {
    content: '';
    border: solid 80px transparent;
    border-top-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    right: 0;
    transform: rotateZ(45deg) translate(79%, 0%);
}

#VTOUR-details-container:after {
    content: '';
    border: solid 70px transparent;
    border-top-color: #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: rotateZ(45deg) translate(70%, 1%);
}
*/

#VTOUR-close-details, #VTOUR-close-keyshot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-image: url("../icons/cross.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#VTOUR-close-keyshot {
    background-image: url("../icons/arrow.png");
    transform: rotateZ(-90deg);
}

#VTOUR-details {
    min-height: 100%;
    background-size: auto 90%;
    background-position: center left 5%;
    background-repeat: no-repeat;
}

#VTOUR-details-image {
    position: absolute;
    left: 3vw;
    top: 3vw;
    width: 40%;
    height: auto;
}

#VTOUR-description {
    position: relative;
    height: 77vh;
    min-height: 77vh;
    padding: 3vw;
    padding-bottom: 0;
    margin-left: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

#VTOUR-description:before {
    content: '';
}

#VTOUR-description h3 {
    font-family: "CircularStd-Bold";
    color: var(--color-primary);
    font-size: 2.8vw;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

#VTOUR-description h4 {
    color: #22f;
    font-size: 2.3vw;
    margin-bottom: 2vw;
}

#VTOUR-description p {
    font-family: "CircularStd-Book";
    font-weight: lighter;
    color: #777;
    font-size: 1.3vw;
    line-height: 1.8vw;
    margin-bottom: 2vw;
}

#VTOUR-buttons-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.VTOUR-details-button {
    font-size: 1.1vw;
    padding: 10px 20px;
    margin: 4px;
    color: var(--color-primary);
    background-color: #a8f0d2;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s ease-out;
}

.VTOUR-details-button:hover {
    opacity: 1;
    background-color: var(--color-primary);
    color: #fff;
}

#VTOUR-view-keyshot {
    left: auto;
}

#VTOUR-buy-product {
    left: 12vw;
}

#VTOUR-KeyShotXR {
    background-color: #fff;
    z-index: 1000;
    cursor: grab;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 1;
    transition: all 0.4s ease-in;
}

#VTOUR-KeyShotXR.hidden {
    right: 100%;
    opacity: 0;
    pointer-events: none;
}

.icon-360 {
    position: absolute;
    z-index: 1020;
    bottom: 10vh;
    left: 50%;
    width: 40px;
    height: 40px;
    background-image: url("../icons/360.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-50%);
}

#viewwindow {
    position: relative;
    width: 40vw !important;
    height: 40vw !important;
    transform: translateX(50%);
}

#viewwindow div {
    position: relative;
    width: 100% !important;
    height: 100% !important;
}

#turntable {
    width: 100% !important;
    height: 100% !important;
}

img#iframe-image {
    z-index: 101;
    position: absolute;
    left: 44%;
    top: 0;
    opacity: 0.6;
    width: 8%;
    height: auto;
}

@media only screen and (max-device-width: 1280px) and (orientation: portrait) {

    #VTOUR-logo-container h2 {
        font-size: 16px;
        margin-bottom: 10px;
        margin-top: -10px;
    }

    #VTOUR-startVtour {
        font-size: 12px;
    }

    #VTOUR-startDeviceOrientation {
        top: 2vh;
        left: 2vh;
        width: 8vh;
        height: 8vh;
    }

    #VTOUR-nav-menu-wrapper {
        height: 50px;
        max-height: 50px;
    }

    #VTOUR-nav-menu-wrapper.hidden {
        bottom: -50px;
    }

    #VTOUR-arrow {
        bottom: 50px;
    }

    .nav-menu-container {
        padding-top: 10px;
    }

    .nav-item {
        height: 8vw;
        width: 8vw;
        border-width: 2px;
        padding-top: 0;
    }

    #VTOUR-nav-menu-label {
        padding: 2px;
        bottom: 130px;
    }

    #VTOUR-nav-menu-label.close {
        bottom: 90px;
    }

    .label-item {
        padding: 3px 14px;
        font-size: 18px;
    }

    .releases {
        margin-top: 2px;
    }

    .releases li {
        font-size: 12px;
        margin: 2px 0;
    }

    #VTOUR-details-container {
        /*border: solid 5px var(--color-primary);*/
        left: 10vw;
        height: 80vh;
        height: calc(var(--vh, 1vh) * 80);
        max-height: calc(var(--vh, 1vh) * 80);
        width: 80vw;
    }

    #VTOUR-details-container.visible {
        top: 10vh;
    }

    #VTOUR-details-container:before, #VTOUR-details-container:after {
        content: '';
        display: none;
    }

    #VTOUR-details {
        background-size: 90% auto;
        background-position: top 5% center;
    }

    #VTOUR-details-image {
        top: 6vw;
        left: 15vw;
        width: 70%;
    }

    #VTOUR-description {
        padding: 3vw;
        margin-left: 0;
        max-height: auto;
        min-height: auto;
        height: calc(100vh - 87vw);
        position: absolute;
        bottom: 0;
        padding-bottom: 15%;
    }

    #VTOUR-description h3 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    #VTOUR-description h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    #VTOUR-description p {
        font-size: 2vh;
        line-height: 2.4vh;
        margin-bottom: 5px;
    }

    .VTOUR-details-button {
        padding: 5px 10px;
        font-size: 12px;
    }

    #VTOUR-view-keyshot {
        right: 3vw;
        left: auto;
    }

    #VTOUR-buy-product {
        left: 130px;
    }

    #VTOUR-KeyShotXR {
        padding-top: 20%;
    }

    .icon-360 {
        width: 30px;
        height: 30px;
    }

    #viewwindow {
        width: 97vw !important;
        height: 50vh !important;
        transform: translateX(0);
    }

}

@media only screen and (max-device-width: 1280px) and (orientation: landscape) {

    #VTOUR-startVtour {
        width: 16vh;
        padding: 5px;
    }

    #VTOUR-logo-container h2 {
        margin-bottom: 10px;
        margin-top: -5px;
    }

    #VTOUR-startDeviceOrientation {
        top: 4vh;
        left: 4vh;
        width: 6vw;
        height: 6vw;
    }

    #VTOUR-nav-menu-wrapper {
        height: 40px;
        max-height: 40px;
    }

    #VTOUR-nav-menu-wrapper.hidden {
        bottom: -40px;
    }

    #VTOUR-arrow {
        bottom: 40px;
    }

    .nav-item {
        height: 40px;
        width: 40px;
        padding-top: 10px;
    }

    #VTOUR-nav-menu-label {
        padding: 2px;
        bottom: 110px;
    }

    #VTOUR-nav-menu-label.close {
        bottom: 80px;
    }

    .label-item {
        font-size: 1.8vw;
    }

    .releases {
        margin-top: 2px;
    }

    .releases li {
        font-size: 1.2vw;
        padding: 2px;
        margin: 2px 0;
    }

    .icon-360 {
        bottom: 0;
        width: 30px;
        height: 30px;
    }

    /*
    #VTOUR-details-container {
        height: 75vh;
        border: solid 5px var(--color-primary);
    }

    #VTOUR-details-container:before {
        content: '';
        border: solid 45px transparent;
        border-top-color: var(--color-primary);
        position: absolute;
        bottom: 0;
        right: 0;
        transform: rotateZ(45deg) translate(78%, 0%);
    }

    #VTOUR-details-container:after {
        content: '';
        border: solid 40px transparent;
        border-top-color: #fff;
        position: absolute;
        bottom: 0;
        right: 0;
        transform: rotateZ(45deg) translate(70%, 1%);
    }
    */

    #VTOUR-close-details, #VTOUR-close-keyshot {
        width: 20px;
        height: 20px;
    }

    .VTOUR-details-button {
        font-size: 1vw;
        padding: 5px 10px;
    }

    #VTOUR-details-image {
        left: 2vw;
        top: 2vw;
    }

    #VTOUR-description {
        padding: 2vw;
        padding-bottom: 0;
        height: 73vh;
        min-height: 73vh;
    }

    #VTOUR-description h3 {
        margin-top: 1vw;
        margin-bottom: 0.5vw;
    }

    #VTOUR-description h4 {
        margin-bottom: 1vw;
    }

    #viewwindow {
        height: 35vw !important;
    }

}

@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}