/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    background-color: #F7F7F7;
}

a {
    text-decoration: none;
}

#container {
    position: absolute;
    top: 0px;
    left: 20px;
    width: calc(100% - 40px);
    height: 100%;
    cursor: grab;
    border-radius: 8px;
    background-color: #EAEAEA;
}

#container:active {
    cursor: grabbing;
}

#preloader {
    position: absolute;
    left: calc(50% - 60px);
    top: calc(50% - 60px);
    height: 120px;
    width: 120px;
    
    background-image: url(../assets/images/loading.gif);
    background-size: 160% 160%;
    background-position: center;
    border-radius: 12px;
    opacity: 0.8;
    display: none;

}

#preloader-background {
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    background-color: #F7F7F7;
}

.preloader-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: auto;
}

.preloader-text {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: #333333;
    /*text-shadow: 0px 0px 3px rgb(255 255 255 / 50%);*/
}

.preloader-img {
    position: relative;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
}

.preloader-line-container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    /*border: 1px solid white;*/
    /*box-shadow: 0px 0px 5px #444d55;*/
    border-radius: 6px;
    overflow: hidden;
    background: #555555;
}

#preloader-line {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 4px;
    width: 0;
    border-radius: 6px;
    background: #1caad9;
}

.v3d-annotation {
    position: absolute;
    top: -16px;
    left: -16px;
    width: auto;
    min-width: 14px;
    height: 26px;
    padding: 2px 8px;
    border: 0px solid transparent;
    border-radius: 0;
    font-size: 36px;
    font-family: sans-serif;
    line-height: 26px;
    text-align: center;
    user-select: none;
    background: transparent;
    cursor: pointer;
    color: #dfb07a;
}

.v3d-annotation-transparent {
    opacity: 0.2;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/*WebGL报错提示*/
.v3d-webgl-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    height: 100%;
    color: #333333;
    background: rgba(0, 0, 0, .75);
    text-align: center;
    border-style: solid;
    border-width: 0;
    border-radius: 0;
    border-color: transparent;
    font-size: 14px;
    font-weight: 600;
    font-family: sans-serif;
    line-height: 30px;
    padding: 10px 60px;
    z-index: 999;
    display: block;
}

.v3d-webgl-error-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    background: white;
    padding: 30px 0px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.v3d-webgl-error-link {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: #333333;
    font-size: 12px;
    margin-top: 30px;
    width: 120px;
}

.v3d-webgl-error-link button {
    background: #333333;
    padding: 5px 25px;
    color: white;
    cursor: pointer;
    border-radius: 2px;
    border-width: 1px;
    position: relative;
    width: 120px;
    font-size: 12px;
    user-select: none;
}

.v3d-webgl-error-link button:hover {
    background: #000000;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, .5)
}

/* removes tap blinking on ios devices */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Animation keys */
@keyframes hide {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes show {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes lefthide {
    0% {
        opacity: 1;
        margin-left: 0;
    }

    100% {
        opacity: 0;
        margin-left: -160px;
    }
}

@keyframes leftshow {
    0% {
        opacity: 0;
        margin-left: -160px;
    }

    100% {
        opacity: 1;
        margin-left: 0;
    }
}

@keyframes downhide {
    0% {
        opacity: 1;
        margin-bottom: 0;
    }

    100% {
        opacity: 0;
        margin-bottom: -160px;
    }
}

@keyframes upshow {
    0% {
        opacity: 0;
        margin-bottom: -160px;
    }

    100% {
        opacity: 1;
        margin-bottom: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(0.6);
    }
}

@media only screen and (max-width: 540px) {
    .v3d-webgl-error-container {
        width: 60%;
    }
}

@media screen and (max-width: 800px) {
    .preloader-container {
        width: 160px;
    }
}