#hero {
    background-image: url("../../files/5 team desk 1.png");
}

#viewer {
    width: 100%;
    height: 733px;
    /* overflow: hidden; */
    /* background-image: radial-gradient(circle at 50% 134%, #3B374E 0%, #242C49 28%, #040404 72%); */
    background: black;
    z-index: 0;
    transition: 0.5s ease;
}

#heroContainer{
    opacity: 1;
    transform: translate3d(0, 0px, 0px);
}

#heroContainer span{
    transform: translate3d(0, 0px, 0px);
}

#heroContainer.hidden span{
    transform: translate3d(0, 40px, 0px);
}

#heroContainer h1{
}

#heroContainer.hidden h1{
}

#heroContainer.hidden{
    opacity: 0;
    transform: translate3d(0, -100px, 0px);
}



#hStick{
    opacity: 1;
    transform: translate3d(0, 0px, 0px);
}

#hStick.down{
    opacity: 0;
    transform: translate3d(0, 100px, 0px);
}

#hStick.up{
    opacity: 0;
    transform: translate3d(0, -100px, 0px);
}

#fire{
    mix-blend-mode: color-dodge;
    position: absolute;
    top: 0;
    pointer-events: none;
    display: none;
}

#ipadScreen{
    position: fixed;
    z-index: 10;
    top: 400px;
    /* border: 1px solid #ff000057; */
    width: 523px;
    height: 365px;
    z-index: 100;
    pointer-events: none;
}

#pattern1{
    position: absolute;
    right: -422px;
    top: -221px;
    width: 866px;
    opacity: 0.5;
    z-index: 1;
}

#pattern2{
    position: absolute;
    left: -1px;
    top: 148px;
    width: 368px;
    opacity: 0.5;
    z-index: 1;
}

#viewer .spacer{
    height: 322px;
    margin-top: 191px;
    width: 100%;
    background: #f84536;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 36px;
    z-index: 10;
    display: none;
}

#viewer .modesContainer{
    position: fixed;
    top: 0;
    padding-top: 155px;
    z-index: 3;
    /* pointer-events: all; */
    /* transition: none; */
    display: flex;
}
/* https://www.shadertoy.com/view/wl2Gzc */

#viewer button{
    width: 180px;
    height: 60px;
    margin-top: 41px;
    background: #f84536;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* visibility: hidden; */
    pointer-events: all;
    z-index: 1000;
    display: none;
}

#viewer button span{
    font-weight: 800;
    font-family: 'Greycliff';
    color: white;
    font-size: 20px;
    opacity: 1;
    display: block;
}

#viewer .play{
    width: 19px;
    margin-right: 21px;
    margin-left: -12px;
}

#frameRef{
    position: fixed;
    z-index: 100;
    /* border: 1px solid red; */
    transition: 0.3s ease;
    box-sizing: border-box;
    pointer-events: none;
}

#viewer.preLoad{
    opacity: 0;
}

#viewer.preLoad #heroContainer h1{
    opacity: 0;
}

#viewer.preLoad #heroContainer span{
    opacity: 0;
}

#viewer.preLoad canvas{
    opacity: 0;
}



.perspectiveContainer{
    /* padding-bottom: 382px; */
    pointer-events: none;
    /* margin-bottom: 119px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.perspectiveContainer .center{
    position: absolute;
    width: 10px;
    height: 10px;
    margin: auto;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: cyan;
}

#videoButton.hidden span{

    opacity: 0;
}

#videoButton.hidden .play{
    opacity: 0;
}

#viewer button:hover{
    transform: scale(1.1);
}


#viewer canvas{
    /* margin-top: 130px; */
}
#viewer #mask {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 1000px;
    left: 0;
    z-index: 2;
    background: #e5e5e5;
}
#viewer .bg {
    position: absolute;
    width: 100%;
    height: 1000px;
    background-image: radial-gradient(circle at 50% 134%, #3B374E 0%, #242C49 28%, #040404 72%);
    top: 0;
    left: 0;
    z-index: -1;
    /* display: none; */
}
#viewer span {
    font-weight: 300;
    opacity: 1;
    font-size: 31px;
    letter-spacing: 0.6;
    max-width: 504px;
    margin-top: 15px;
    color: #ffffff;
}
#viewer .container {
    width: 1039px;
    text-align: center;
    flex-direction: column;
    margin-top: -110px;
}
#viewer h1 {
    font-size: 47px;
    margin-top: 0px;
    color: white;
    max-width: 558px;
    font-weight: 800;
    opacity: 1;
}




/* HERO 3D STUFF is above */


#viewer{
    /* width: 100%; */
    height: 3018px;
    justify-content: space-between;
    flex-direction: column;
    /* overflow: hidden; */
    /* position: relative; */
    /* perspective: 500px; */
}

#viewer .container{
    z-index: 3;
    padding-top: 271px;
    z-index: 1;
    width: 100%;
    position: fixed;
}

#viewer #scene{
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#viewer h2{
    position: relative;
    display: flex;
    justify-items: center;
    justify-content: center;
    /* margin-left: 55px; */
    margin-bottom: 8px;
    margin-top: -10px;
    font-size: 31px;
    pointer-events: all;
    max-width: 523px;
    /* text-shadow: 5px 2px 85px #0079ff; */
    text-shadow: 5px 2px 70px #000000;
}

#viewer .icon{
    position: absolute;
    width: 55px;
    left: -90px;
    top: 4px;
    filter: drop-shadow(0px 16px 22px rgba(0, 0, 0, 0.1));
}

#viewer p{
    font-weight: 100;
    color: #ffffff;
    margin-top: 16px;
    width: 569px;
    margin: 0;
    display: none;
}

#viewerCenterRef{
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

#viewer .bg{
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 75%, #3B374E 0%, #242C49 20%, #000000 72%);
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 1;
    /* display: none; */
}

#viewer #iPad{

    background-image: url('../../files/ipad.png');

    background-size: contain;

    background-position: center;

    background-repeat: no-repeat;

    position: fixed;

    top: -361px;

    left: -117px;

    right: 0;

    bottom: auto;

    margin: auto;

    opacity: 0;

    pointer-events: none;

    z-index: 3;

    /* display: none; */
}

#viewer #laptop{
    background-image: url('../../files/laptop.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 310px;
    left: -36px;
    right: 0;
    bottom: auto;
    margin: auto;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    width: 688px;
    height: 600px;
    /* display: none; */
    transition: 0.3s ease;
}



#viewer canvas{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* top: 0; */
    z-index: 0;
    /* background-image: radial-gradient(circle at 50% 77%, #3B374E 0%, #242C49 20%, #000000 72%);;margin: auto;
    /* bottom: 0; */
    /* right: 0; */
    margin: auto;
    transition: 0.3s ease;
    /* visibility: visible; */
}

#viewer .modes{

    margin-top: 1px;

    display: flex;

    position: relative;

    border-bottom: 1px solid #ffffff1f;

    width: 300px;
}

#viewer #modesHandle{

    position: absolute;

    width: 63px;

    height: 2px;

    background: #f44336;

    bottom: -1px;

    left: 4px;

    border-top-left-radius: 5px;

    border-top-right-radius: 5px;

    z-index: 0;

    transition: 0.2s ease;
}

#viewer .modes .mode{

    font-weight: 700;

    font-size: 15px;

    opacity: 0.5;

    width: 70px;

    text-align: center;

    height: 50px;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 2;

    cursor: pointer;

    text-shadow: 0px 4px 25px black;

    color: #ffffff;
}

#viewer .logo{
    width: 162px;
    height: 43px;
    background: url(../../files/logo.svg);
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    position: fixed;
    top: 76px;
    left: 6px;
    z-index: 10;
    display: none;
}


#viewer .modes .mode.active{
    opacity: 1;
    color: #ffffff;
}

#viewer.arMode h2{

    text-shadow: 5px 2px 70px #000000;
}

#viewer.vrMode h2{
    text-shadow: 5px 2px 85px #0079ff;
}

#viewer.ipadMode h2{
    text-shadow: 5px 2px 85px #0079ff;
}

#viewer.zoomMode h2{
    text-shadow: 5px 2px 85px #0079ff;
}



#viewer.ipadMode canvas{

    width: 551px !important;

    height: 366px !important;

    /* transition: 0.3s ease; */

    /* transform: translate3d(0, -237px, 0px); */
}

#viewer.ipadMode #iPad{
    width: 639px !important;
    height: 425px !important;
    left: 0;
    top: 380px;
    margin: auto;
    opacity: 1;
    z-index: 65;
    position: fixed;
}

#viewer.zoomMode #laptop{
    opacity: 1;
}