@font-face {
    font-family: 'roboto_condensedregular';
    src: url('./font/RobotoCondensed-Regular-webfont.eot');
    src: url('./font/RobotoCondensed-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('./font/RobotoCondensed-Regular-webfont.woff') format('woff'),
         url('./font/RobotoCondensed-Regular-webfont.ttf') format('truetype'),
         url('./font/RobotoCondensed-Regular-webfont.svg#roboto_condensedregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotoregular';
    src: url('./font/Roboto-Regular-webfont.eot');
    src: url('./font/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('./font/Roboto-Regular-webfont.woff') format('woff'),
         url('./font/Roboto-Regular-webfont.ttf') format('truetype'),
         url('./font/Roboto-Regular-webfont.svg#robotoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body {    
  font-size: 16px;
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

body {
    font-family: robotoregular;
    color: #000;
    margin: 0;
    padding:0;
    overflow: hidden;
    background: #466693;
}

a,
a:visited,
a:hover,
a:focus {
    outline: none
}

#info {
    color: #fff;
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    z-index: 100;
    display: block;
}

#info a {
    color: #046;
    font-weight: bold;
}

#loading {
    width: 80px;
    text-align: center;
    z-index: 10;
    position: fixed;
    left: 50%;
    margin-left: -40px;
    top: 50%;
    margin-top: -35px;
    height: 70px;
}

#loading>div {
    width: 18px;
    height: 18px;
    background-color: #ffb72b;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

#loading .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

#loading .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay { 0%,80%,100% { -webkit-transform: scale(0) } 40% { -webkit-transform: scale(1.0) }}
@keyframes sk-bouncedelay { 0%,80%,100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1.0); transform: scale(1.0); } }

#model-viewer-container {
    height: 100%;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    z-index: 1;    
    background-image: radial-gradient( circle closest-side, #739ad1, #466693);
}

#model-viewer {
    width: 100%;
    height: 100%;
    position: relative;
}

#content {
    width: 100%;
    height: auto;
    position: fixed;
    z-index: 2;
    color: #fff;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    background: -moz-linear-gradient(top, rgba(70,102,147,0) 0%, rgba(70,102,147,0.98) 20%, rgba(70,102,147,0.98) 100%);
    background: -webkit-linear-gradient(top, rgba(70,102,147,0) 0%, rgba(70,102,147,0.98) 20%, rgba(70,102,147,0.98) 100%);
    background: linear-gradient(to bottom, rgba(70,102,147,0) 0%, rgba(70,102,147,0.98) 20%, rgba(70,102,147,0.98) 100%);    
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    transition: all ease 0.3s;
}

#content.show {
    opacity: 1;
    pointer-events: initial;
}

#scroll, #temp {
    margin: 60px auto 0;
    max-height: 116px;
    /*height: 50%;*/
    width: 52%;
    min-width:960px;
    padding-right: 2%;
    overflow-y: scroll;
    scrollbar-color: #2bc191 #2bc19133;
    scrollbar-width: thin;
    text-align: justify;
}

#temp {
    max-height: 100000px;
    z-index: -1;
    opacity: 0;
}

#scroll:before,
#scroll-after-fade {
    content: '';
    width: 53%;
    height: 60px;    
    margin-left: 22%;
    position: absolute;    
    left: 0;    
    background: linear-gradient(#466693 0px, transparent);
    z-index: 1000;
    pointer-events: none;
    -webkit-transition: all ease 0.16s;
    -moz-transition: all ease 0.16s;
    transition: all ease 0.16s;
}

#scroll:before {
    opacity: 0;
}

#scroll-after-fade {    
    opacity: 0;
    background: linear-gradient(transparent 0px, #466693);
    top: 50%;
    margin-top: -15px;
}

#scroll.show-top-fade:before,
#scroll-after-fade.show-bottom-fade {
    opacity: 1;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2bc191; } 
::-webkit-scrollbar-thumb:hover { background: #2bc191; }

#ui {
    width: 54%;
    min-width:992px;
    margin: 0 auto;
    position: relative;
    z-index: 5000;
}

#title-wrapper {
    display: inline-block;
    height: 86px;
    width: 45%;
    position: relative;
}

h1 {
    color: #fff; 
    font-family: roboto_condensedregular;    
    letter-spacing: 2px;    
    padding: 0;    
    margin: 0;       
    font-weight: normal;
    display: inline-block;
    line-height: 1em;
    font-size: 1.6rem;        
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

p {
    margin: 0;
    margin-top: 1rem;
    line-height:1.4rem;
}

#buttons {
    float:right;
    opacity: 1;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    transition: all ease 0.3s;
}

#buttons.active {
    opacity: 1;
}

#buttons a {
    margin-left: 15px;
    margin-top: 18px;
    vertical-align: middle;
    display: inline-block;
}

#buttons a:link span {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    transition: all ease 0.3s;
}

#buttons a.active span,
#buttons a:hover span {
    opacity: 1;
    background-position: 0 0;
}

#narration {
    opacity: 0;
    margin-left: 0;
    width: 188px;
    height: 50px;
    background: url(./btn-narration.png) no-repeat scroll 0 0 transparent;
}

#narration span {
    background: url(./btn-narration-active.png) no-repeat scroll 0 1px transparent;
}

#prev {
    width: 47px;
    height: 50px;
    background: url(./btn-prev.png) no-repeat scroll 0 0 transparent;
}

#prev span {
    background: url(./btn-prev-active.png) no-repeat scroll 0 1px transparent;
}

#next {
    width: 47px;
    height: 50px;
    background: url(./btn-next.png) no-repeat scroll 0 0 transparent;
}

#next span {
    background: url(./btn-next-active.png) no-repeat scroll 0 1px transparent;
}

#fullscreen {
    opacity: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: url(./btn-exit-fullscreen.png) no-repeat scroll center center transparent;
    background-size: 24px;
    z-index: 5;
    position: fixed;
    top: 0;
    pointer-events: none;
}

#fullscreen.show {
    opacity: 1;
    pointer-events: all;
}

/*#fullscreen.hide {
    background-image: url(./btn-exit-fullscreen.png);
}*/

#startButton {
    opacity: 1;
    left: 50%;
    width: 200px;
    height: 51px;
    background: url(./btn-start.png) no-repeat scroll center center transparent;
    background-position-y: -52px;
    background-size: 194px;
    z-index: 5;
    position: fixed;
    bottom: 30px;
    margin-left: -100px;
    pointer-events: all;
    -webkit-transition: all ease 0.1s;
    -moz-transition: all ease 0.1s;
    transition: all ease 0.1s;
}

#startButton.hide {
    opacity: 0;
    pointer-events: none;
}

#startButton::before {
    content: '';
    position: fixed;
    width: 200px;
    height: 51px;
    opacity: 0;
    background: url(./btn-start.png) no-repeat scroll center center transparent;
    background-position-y: 0px;
    background-size: 194px;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    transition: all ease 0.3s;
}

#startButton:hover::before,
#startButton:focus::before,
#startButton:active::before {
    opacity: 1;
}

@media screen and (min-width: 320px) {
    html,p {
        font-size: calc(10px + 6 * ((100vw - 320px) / 680));
    }
}

@media screen and (min-width: 1360px) {
    html,p {
        font-size: 16px;
    }
}

@media screen and (min-width: 560px) and (max-width: 1000px) {
    #scroll, #temp {
        width: 90%;
        min-width:1px;
    }   
    
    #scroll::before, #scroll-after-fade {
        width: 90%;
        margin-left: 4%;
    }

    #ui {
        width: 92%;
        min-width:1px;
    }

    h1 {
        font-size: 1.5rem;
    }

    #buttons {
        transform-origin: right center;
    }
}

@media screen and (min-width: 1px) and (max-width: 560px) {
    html, body {
        min-width: 300px;
    }
    
    #scroll, #temp {
        padding-right: 6%;
        width: 86%;
        min-width:1px;
    }    
    
    #scroll::before, #scroll-after-fade {
        width: 86%;
        margin-left: 4%;
    }

    #ui {
        width: 92%;
        min-width:1px;
    }    

    h1 {
        font-size: 2rem;
        display: block;
        text-align: center;
        line-height: 2.5rem;
        margin-top: 1.5rem;
    }

    #buttons {
        transform: scale(0.8);
        transform-origin: center center;
        float: none;
        text-align: center;
    }
}

@media (hover: none) {
    #buttons a:link span {
        opacity: 0;
        background-position: 0 0;
    }
}

#editor {
    position: fixed;
    left: 0;
    top: 0;
    padding:10px;
    background-color: #fff;
    z-index: 1000000;
    display: block;
}