.topbar,
.breadcrumb,
.main-container {
    margin: 0;
    -webkit-transition: margin ease-out .3s;
    -moz-transition:    margin ease-out .3s;
    -o-transition:      margin ease-out .3s;
    transition:         margin ease-out .3s;
}

.has-tour {
    .topbar,
    .breadcrumb,
    .main-container {
        margin-right: 320px;
    }

    .tour-tooltip {
        
        -webkit-transform:  translate(0, 0);
         -ms-transform:     translate(0, 0);
        transform:          translate(0, 0);
    }
}

.tour-tooltip + .breadcrumb + .main-container {
    padding: 20px;
}

.tour-tooltip {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 320px;
    background: #0078e7;
    overflow: auto;
    z-index: 1100;
    -webkit-transition: transform ease-out .3s;
    -moz-transition:    transform ease-out .3s;
    -o-transition:      transform ease-out .3s;
    transition:         transform ease-out .3s;
    -webkit-transform:  translate(320px, 0);
     -ms-transform:     translate(320px, 0);
    transform:          translate(320px, 0);

    .tour-tooltip-content {
        padding: 20px;
        position: relative;
        -webkit-border-radius:  3px 3px 0 0;
        -moz-border-radius:     3px 3px 0 0;
        border-radius:          3px 3px 0 0;

        .tour-close {
            padding: 4px 8px;
            position: absolute;
            right: 5px;
            top: 5px;
            font-size: 18px;
            color: #fff;
            &:hover {
                color: #eee;
            }
        }

        h1 {
            border: 0;
            color: #fff;
            font-size: 18px;
            font-weight: 300;
        }
        p {
            color: #fff;
            margin-bottom: 0;
        }

        a.lnk {
            color: #eee;
            text-decoration: underline;

            &:hover {
                color: #ddd;
            }
        }
    }

    .tour-tooltip-video {
        margin: 10px;

        a {
            display: block;
            padding: 10px;
            text-align: center;
            color: #00adef;
            background-color: #f3f3f3;
            text-transform: uppercase;
            font-size: 13px;
            border-radius: 3px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);

            &:hover {
                background-color: #fff;
                color: #000;
            }
        }
    }

}

.video-modal {
    visibility: hidden;
    zoom: 1;
    filter: alpha(opacity=0);
    opacity: 0;
    background-color: rgba(0,0,0,0.85);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;

    .video-modal-content {
        background: #000;
        padding: 30px;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -350px;
        margin-top: -212px;
    }
}

.show-video {
    visibility: visible;
    filter: alpha(opacity=100);
    opacity: 1;
}


@-moz-keyframes tour {  
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@-webkit-keyframes tour {  
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes tour {  
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.blink-me {
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;

    -moz-animation-name: blinker;
    -moz-animation-duration: 1s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;

    animation-name: blinker;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@-moz-keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@-webkit-keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

.tour-button.tour-button {
    float: right;
    /*position: absolute;*/
    /*top: 20px;*/
    /*right: 20px;*/
    margin-left: 20px;
    background: #fff;
    font-weight: bold;
    text-transform: uppercase;
    color: #00adef;
    position: relative;
    padding-left: 30px;
}
.tour-button:before {
    position: absolute;
    left: 15px;
    margin-top: 2px;
    content: "";
    border: 10px solid #00adef;
    border-width: 8px 10px;
    border-color: transparent transparent transparent #00adef;
}
.tour-button:hover {
    color: #00adef;
}

.tour-progress {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    background-color: #fff;
}

.tour-progress span {
    display: block;
    height: 5px;
    width: 0;
    background-color: #21759b;
    position: relative;
}

.tour-progress span:before {
    content : "Tour Progress";
    position: absolute;
    top: -25px;
    text-align: center;
    font-size: 12px;
    width: 100px;
}
.tour-progress span:after {
    content : " ";
    position: absolute;
    height: 16px;
    right: 0;
    top: -5px;
    border-left: 1px solid #fff;
}


    .tour-0 span {
        width: 0;
    }

    .tour-1 span {
        width: 10%;
    }

    .tour-2  span {
        width: 20%;
    }

    .tour-3 span {
        width: 30%;
    }

    .tour-4 span {
        width: 40%;
    }

    .tour-5 span {
        width: 50%;

    }

    .tour-6 span {
        width: 60%;

    }

    .tour-7 span {
        width: 70%;

    }
    
    .tour-8 span {
        width: 80%;

    }
    .tour-9 span {
        width: 90%;

    }
    .tour-10 span {

    }


.tour-window {
    display: none;
    padding: 15px;
    color: #fff;
    clear: left;

    /*margin-top: 53px;
    margin-bottom: -53px;*/
    background-color: #00adef;

    .container {
        background: url('/tour/images/guide.png');
        background-repeat: no-repeat;
        background-position: left center;
        min-height: 90px;
        position: relative;

        ul {
            list-style: none;
            padding: 0;
            position: relative;
            width: 492px;
            margin:0 auto;

            &:before {
                content :"";
                position: absolute;   
                width: 380px;
                left: 55px;
                border-top: 1px solid #fff;
                top: 35px;
            }

            li {
                position: relative;
                display: inline-block;
                margin-top: 50px;
                text-align: center;
                width: 120px;

                &:before {
                    content: "";
                    position: absolute;
                    top: -25px;
                    left: 50%;
                    margin-left: -9px;
                    border-color: #fff;
                    height: 18px;
                    width: 18px;
                    border: 1px solid #fff;
                    background-color: #00adef;
                    -webkit-border-radius:  50%;
                    -moz-border-radius:     50%;
                    border-radius:          50%;
                }

            }
            li.done {
                &:before {
                    background: url('../tour/images/tour-tick.png') no-repeat center #fff;
                }
            }

            li.progress {
                &:before {
                    border: 4px solid #fff;
                    height: 13px;
                    width: 13px;
                    box-shadow: 0 0 8px #fff;
                }
            }
        }
    }
}


@-moz-keyframes tour-in {  
    0% { transform: translate(-50px,0); }
    50% { transform: translate(-20px,0); }
    100% { transform: translate(0,0); }
}

@-webkit-keyframes tour-in {
    0% { transform: translate(-50px,0); }
    50% { transform: translate(-20px,0); }
    100% { transform: translate(0,0); }
}

@keyframes tour-in {
    0% { transform: translate(-50px,0); }
    50% { transform: translate(-20px,0); }
    100% { transform: translate(0,0); }
}

.tour-box {
    background-color: #6cb5f4;
    padding: 10px;
    color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

    h2 {
        border: 0;
        color: #fff;
    }

    p:first-child {
        margin-top: 0;
    }
    p:last-child {
        margin-bottom: 0;
    }
}

// video tour page
.tour-alert {
    position: fixed;
    width: 400px;
    background: #222;
    z-index: 1200;
    left: 50%;
    top: 0;
    margin-top: -129px;
    margin-left: -200px;
    padding: 20px;
    visibility: hidden;
    
    zoom: 1;
    filter: alpha(opacity=0);
    opacity: 0;

    -webkit-box-shadow: 0 0 15px 1px rgba(0,0,0,0.4);
    -moz-box-shadow:    0 0 15px 1px rgba(0,0,0,0.4);
    box-shadow:         0 0 15px 1px rgba(0,0,0,0.4);

    -webkit-border-radius:  2px;
    -moz-border-radius:     2px;
    border-radius:          2px;

    
    -webkit-transition: opacity .3s linear, top .2s linear, visibility .3s linear;
    -moz-transition:    opacity .3s linear, top .2s linear, visibility .3s linear;
    transition:         opacity .3s linear, top .2s linear, visibility .3s linear;

    h2 {
        border: 0;
        color: #fff;
    }

    p {
        line-height: 21px;
        line-height: 1,6em;
        color: #fff;
    }
}

.tour-inner {
    border: 1px solid #ddd;
    padding: 10px;
    h1 {
        border: 0;
        font-size: 20px;
        line-height: 24px;

        span {
            display: block;
            color: #666;
            font-size: 14px;
        }
    }

    h3 {
        color: #fff;
        border: 0;
    }

    .tour-nav {
        float: left;
        width: 280px;

        ul {
            padding: 0;
            margin: 0;
            list-style: none;

            li + li {
                margin-top: 3px;
            }

            a {
                padding: 4px 8px;
                display: block;
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                border-radius: 4px;

                &:hover {
                    background-color: #ddd;
                }
            }

            .active {
                a {
                    background-color: #21759b;
                    color: #fff;
                }
            }
        }
    }

    .tour-content {
        margin-left: 300px;
        color: #fff;
    }
}

.show-tour {
    .md-wrapper {
        opacity: 1;
        visibility: visible;
    }

    .tour-inner {
        filter: alpha(opacity=100);
        opacity: 1;
        visibility: visible;
        display: block;
        left: 50%;
    }
}

.show-tour-alert {
    .tour-alert {
        top: 20%;
        opacity: 1;
        visibility: visible;
    }
}

.nav-main li a.help-icon {
    background: url(../icons/iconset_white.png) 3px -399px;
    text-indent: -999em;
    margin: 7px;
    border: 0;
    background-color: #0078e7;
    padding: 4px;
    width: 38px;
    border-radius: 4px;
}

.has-tour {
    .help-icon {
        display: none;
    }
}