﻿
html
{
    margin: 0px;
    padding: 0px;
    border: 0px;
}

body
{
    background-color: black;
    margin: 0px;
    padding: 0px;
    border: 0px;
    font-family: Arial, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/**********************************************************************************************************************
 *                                                  APPLICATION CONTAINER
 **********************************************************************************************************************/

#applicationContainer
{
    display: block;
    position: absolute;
    width: 1000px;
    height: 600px;
    z-index: 1;
    top: calc(50% - 300px);
    left: calc((100% / 2) - 500px);
    background-image: url('../images/background.jpg');
    border: 1px solid #4ba8c2;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    #applicationContainer.fullscreen
    {
        left: 0px;
        width: calc( 100% - 2px );
        height: calc( 100% - 2px );
        top: 0px;
        overflow: hidden;
    }


    #applicationContainer #vehicleName
    {
        position: absolute;
        top: 20px;
        width: 100%;
        text-align: center;
        color: white;
        font-weight: bold;
    }

#signature
{
    display: block;
    z-index: 0;
    position: absolute;
    right: 0;
    bottom: -35px;
    width: 81px;
    height: 25px;
    background-image: url('../images/spritesheet.sprite.png');
    background-repeat: no-repeat;
    background-position: -10px -10px;
}

#applicationContainer.fullscreen #signature
{
    right: 10px;
    bottom: 10px;
}

canvas
{
    width: 100%;
    height: 100%;
    position: absolute;
}

/**********************************************************************************************************************
 *                                                  INTERFACE BUTTONS
 **********************************************************************************************************************/

button
{
    width: 50px;
    height: 50px;
    position: absolute;
    z-index: 2;
    margin: 0px;
    padding: 0px;
    border: 1px solid #4ba8c2;
    cursor: pointer;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    background-image: url('../images/spritesheet.sprite.png');
    background-repeat: no-repeat;
    background-color: transparent;
    display: block;
}

    button:not(#logo)
    {
        opacity: 0;
        transition: opacity ease-in-out 0.25s;
        pointer-events:none;
    }

.started button.visible:not(#logo)
{
    opacity: 1;
    pointer-events:auto;
}

button:hover, button:active, button:focus
{
    outline: 0;
}

button#fullscreenToggle
{
    top: -1px;
    right: -1px;
    width: 50px;
    height: 50px;
    background-position: -10px -142px;
}

    button#fullscreenToggle:hover
    {
        width: 50px;
        height: 50px;
        background-position: -10px -202px;
    }

#applicationContainer.fullscreen button#fullscreenToggle
{
    width: 50px;
    height: 50px;
    background-position: -10px -382px;
}

    #applicationContainer.fullscreen button#fullscreenToggle:hover
    {
        width: 50px;
        height: 50px;
        background-position: -10px -442px;
    }

button#logo
{
    top: 5px;
    left: 5px;
    border: none;
    width: 50px;
    height: 50px;
    background-position: -10px -45px;
}


button#hotspotsToggle
{
    bottom: -1px;
    left: calc(50% - 25px);
    width: 50px;
    height: 50px;
    background-position: -10px -262px;
}

    button#hotspotsToggle:hover, button#hotspotsToggle.enabled
    {
        width: 50px;
        height: 50px;
        background-position: -10px -322px;
    }

button#option
{
    bottom: -1px;
    left: calc(50% + 30px);
    width: 50px;
    height: 50px;
    background-position: -10px -502px;
}

    button#option:hover, button#option.enabled
    {
        width: 50px;
        height: 50px;
        background-position: -10px -562px;
    }


button#animation
{
    bottom: -1px;
    left: calc(50% - 80px);
    width: 50px;
    height: 50px;
    background-position: -10px -622px;
}

    button#animation:hover, button#animation.enabled
    {
        width: 50px;
        height: 50px;
        background-position: -10px -682px;
    }



#orbitView
{
    left : -1px;
    top : calc(50% - 25px);
    background-position: -10px -802px;
}

#leftView
{
    left : -1px;
    top : calc(50% - 80px);
    background-position: -10px -862px;
}

#frontView
{
    left : -1px;
    top : calc(50% - 25px);
    background-position: -10px -922px;
}

#perspView
{
    left : -1px;
    top : calc(50% + 30px);
    width: 50px;
    height: 50px;
    background-position: -10px -982px;
}









#opacitySlider
{
    position: absolute;
    top: calc(50% - 107px);
    right: -1px;
    width: 50px;
    height: 200px;
    padding: 7px;
    z-index: 1;
    color: white;
    text-align: center;
    border: 1px solid #4ba8c2;
    opacity: 0;
    transition: opacity ease-in-out 0.25s;
}

.started #opacitySlider
{
    opacity: 1;
}

#opacitySlider #ghost
{
    width: 50px;
    height: 50px;
    background-image: url('../images/spritesheet.sprite.png');
    background-repeat: no-repeat;
    background-position: -10px -742px;
}

input[type=range]
{
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    background: transparent;
    width: 150px;
    transform: rotate(270deg);
    -moz-transform: rotate(270deg); /*do same for other browsers if required*/
    -ms-transform: rotate(270deg);
    margin: 70px -50px;
}

    input[type=range]::-webkit-slider-thumb
    {
        -webkit-appearance: none;
    }

    input[type=range]:focus
    {
        outline: none;
    }

    input[type=range]::-ms-track
    {
        width: 100%;
        cursor: pointer;
        background: transparent;
        border-color: transparent;
        color: transparent;
        margin : 0px 20px 0 25px
    }


    /* Special styling for WebKit/Blink */
    input[type=range]::-webkit-slider-thumb
    {
        -webkit-appearance: none;
        border: 1px solid #000000;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #ffffff;
        cursor: pointer;
        margin-top: -8px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    }

    /* Edge hack */
    @supports (-ms-accelerator:true) 
    {
        input[type=range]::-webkit-slider-thumb
        {
            margin-top: 0; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
        }
    }

    /* IE hack */
    _:-ms-lang(x), input[type=range]
    {
        margin: 40px -42px;
    }

    /* All the same stuff for Firefox */
    input[type=range]::-moz-range-thumb
    {
        border: 1px solid #000000;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #ffffff;
        cursor: pointer;
    }

    /* All the same stuff for IE */
    input[type=range]::-ms-thumb
    {
        border: 1px solid #000000;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #ffffff;
        cursor: pointer;
    }

    input[type=range]::-webkit-slider-runnable-track
    {
        width: 100%;
        height: 8px;
        cursor: pointer;
        background: #4ba8c2;
        border-radius: 4px;
        border: 0.2px solid #010101;
    }

    input[type=range]:focus::-webkit-slider-runnable-track
    {
        background: #367ebd;
    }

    input[type=range]::-moz-range-track
    {
        width: 100%;
        height: 8px;
        cursor: pointer;
        background: #4ba8c2;
        border-radius: 2px;
        border: 0.2px solid #010101;
    }

    input[type=range]::-ms-track
    {
        width: 100%;
        height: 8px;
        cursor: pointer;
        background: transparent;
        border-color: transparent;
        border-width: 16px 0;
        color: transparent;
    }

    input[type=range]::-ms-fill-lower
    {
        background: #2a6495;
        border: 0.2px solid #010101;
        border-radius: 2px;
    }

    input[type=range]:focus::-ms-fill-lower
    {
        background: #3071a9;
    }

    input[type=range]::-ms-fill-upper
    {
        background: #3071a9;
        border: 0.2px solid #010101;
        border-radius: 2px;
    }

    input[type=range]:focus::-ms-fill-upper
    {
        background: #4ba8c2;
    }

/**********************************************************************************************************************
 *                                                  HOTSPOT DESCRIPTIONS
 **********************************************************************************************************************/

.hotspotDescription
{
    position: absolute;
    opacity: 0;
    width: 600px;
    height: 400px;
    z-index: 3;
    pointer-events: none;
    -moz-transition: opacity ease-in-out 0.25s;
    -o-transition: opacity ease-in-out 0.25s;
    -webkit-transition: opacity ease-in-out 0.25s;
    transition: opacity ease-in-out 0.25s;
    background-color: #fff;
    border: 1px solid black;
    -moz-box-shadow: 5px 5px 20px 0px #000;
    -webkit-box-shadow: 5px 5px 20px 0px #000;
    -o-box-shadow: 5px 5px 20px 0px #000;
    box-shadow: 5px 5px 20px 0px #000;
    max-width: 80%;
    max-height: 80%;
}

    .hotspotDescription.visible
    {
        opacity: 1;
        pointer-events: auto;
    }

    .hotspotDescription .close
    {
        height: 28px;
        cursor: pointer;
    }

    .hotspotDescription .header
    {
        line-height: 28px;
        cursor: move;
    }

    .hotspotDescription .header, .hotspotDescription .footer
    {
        color: #fff;
        background-color: #666;
        font-weight: bold;
    }

    .hotspotDescription .header, .hotspotDescription .footer, .hotspotDescription .body
    {
        padding: 10px;
    }

    .hotspotDescription .body
    {
        border-top: 1px solid black;
        border-bottom: 1px solid black;
        overflow: auto;
    }

    @media screen and (max-width: 500px)
    {
        .hotspotDescription .body
        {
            -webkit-flex-direction: column;
            flex-direction: column;
        }
    }

        .hotspotDescription .body .image
        {
            max-width: 400px;
        }

            .hotspotDescription .body .image img
            {
                margin: auto;
                border-radius: 10px;
                max-width:100%;
            }

        .hotspotDescription .body .description
        {
            width: 200px;
            border-left: 1px solid black;
            text-align: justify;
        }
        

        @media screen and (max-width: 500px)
        {
            .hotspotDescription .body .description
            {
                width: calc(100% - 40px);
                border-left: none;
            }
        }

        .hotspotDescription .body .image, .hotspotDescription .body .description
        {
            padding: 5px 20px;
        }


/**********************************************************************************************************************
 *                                                  PROGRESS
 **********************************************************************************************************************/

progress
{
    display: block;
    position: absolute;
    width: 200px;
    height: 26px;
    top: calc(50% - 13px);
    left: calc(50% - 100px);
    z-index: 2;
    border-radius: 1px;
    /*border           : 1px solid #4ba8c2;*/
}


    progress:before
    {
        display: block;
        position: absolute;
        top: 0;
        width: 100%;
        content: attr(value)" %";
        text-align: center;
        line-height: 26px;
        font-weight: bold;
        z-index: 3;
    }

@-webkit-keyframes progress
{
    from
    {
        background-position: 0 0;
    }

    to
    {
        background-position: 100% 100%;
    }
}

@keyframes progress
{
    from
    {
        background-position: 0 0;
    }

    to
    {
        background-position: 100% 100%;
    }
}

progress::-webkit-progress-bar
{
    border-radius: 1px;
    background-color: #9d7e0a;
}

progress::-webkit-progress-value
{
    border-radius: 1px;
    background-color: #ffcd11;
    background-image: -webkit-linear-gradient(-45deg, transparent 25%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.3) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.3) 75%, rgba(255, 255, 255, 0.3));
    background-image: linear-gradient(-45deg, transparent 25%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.3) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.3) 75%, rgba(255, 255, 255, 0.3));
    background-size: 40px 40px;
    -webkit-animation: progress 8s linear infinite;
    animation: progress 8s linear infinite;
}

progress::-moz-progress-bar
{
    border-radius: 1px;
    background-color: #ffcd11;
    background-image: linear-gradient(-45deg, transparent 25%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.3) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.3) 75%, rgba(255, 255, 255, 0.3));
    background-size: 40px 40px;
    -moz-animation: progress 8s linear infinite;
    animation: progress 8s linear infinite;
}
