.viewmake {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* animations */

@keyframes viewmake-rotate {
    from {transform: rotate(90deg);}
    to {transform: rotate(0deg);}
}

/* control */
.viewmake-control {
    z-index: 5;
    opacity: .65;
    -webkit-transition: opacity .2s ease-in;
    -moz-transition: opacity .2s ease-in;
    -ms-transition: opacity .2s ease-in;
    -o-transition: opacity .2s ease-in;
    transition: opacity .2s ease-in;
}

.viewmake-control:hover {
    opacity: 1;
}

.viewmake-control-fullscreen {
    background-image: url(../images/controls/fullscreen.png);
    width: 28px;
    height: 28px;
    background-position: 0px 28px;
    background-size: 56px 56px;
    margin-top: 5px;
}

.viewmake-control-fullscreen:hover {
    background-position-x: 28px;
}

.viewmake-control-devicemotion {
    background-image: url(../images/controls/device-motion.png);
    width: 28px;
    height: 28px;
    background-size: 28px 56px;
    background-position-y: 0px;
    margin: 5px;
}

.viewmake-control-devicemotion--active {
    background-position-y: 28px;
}

.viewmake-control-fullscreen.viewmake-control-fullscreen--reduce {
    background-position-y: 0px;
}

.viewmake-control.viewmake-control-zoom {
    opacity: 1;
    margin: 5px 5px 0;
    border-radius: 2px;
    box-shadow: 0px 1px 1px #888;
}

.viewmake-controls-plus, .viewmake-controls-minus {
    text-align: center;
    background-color: white;
    padding: 2px;
}

.viewmake-controls-plus {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.viewmake-controls-minus {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.viewmake-controls-plus:hover, .viewmake-controls-minus:hover {
    background-color: #e0e0e0;
}

.viewmake-control-cardboard {
    padding: 5px;
}

.viewmake-control-vrsettings {
    margin: 5px 0;
}

.viewmake-control-cardboard img {
    display: block;
}

.viewmake-copyright {
    margin-right: 5px;
}


/* overlay */
.viewmake-overlay{
    background-color: rgba(0,0,0,0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.viewmake-overlay-landscape-image {
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 120px;
    position: absolute;
    /*animation: viewmake-rotate 2s infinite;*/
}

.viewmake-overlay-cardboard-profilecontainer {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
}
.viewmake-overlay-cardboard-title {
    color: #fff;
    text-align: center;
    margin-top: 50px;
    font-size: 2em;
}
.viewmake-cardboard-profile {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}
.viewmake-overlay.viewmake-overlay-profilechooser {
    background-color: rgba(0,0,0,0.5);
}

.viewmake-cardboard-profile img {
    width: 300px;
    max-width: 100%;
}

.viewmake-overlay-cardboard-left, .viewmake-overlay-cardboard-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    margin: auto;
}

.viewmake-overlay-cardboard-left {
    left: 10px;
}

.viewmake-overlay-cardboard-right {
    right: 10px;
}

.viewmake-overlay-iphonechooser h2 {
    text-align: center;
    margin: 15px auto;
    color: #fff;
    font-weight: normal;
    font-size: 1.3em;
}

.viewmake-overlay-iphone-model {
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    padding: 5px;
    border: 1px solid #fff;
    width: 200px;
    margin: 2px auto;
    border-radius: 2px;
}

.viewmake-overlay-display-chooser h2 {
    text-align: center;
    margin: 15px auto;
    color: #fff;
    font-weight: normal;
    font-size: 1.3em;
}

.viewmake-overlay-display-item {
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    padding: 5px;
    border: 1px solid #fff;
    width: 200px;
    margin: 2px auto;
    border-radius: 2px;
}

.webvr-polyfill-viewer-selector div:nth-child(2) {
    overflow: auto!important;
    bottom: 24px;
}