.camera-header {
    background-color: #111;
    color: white;
}

.camera-parent {
    position: relative;
}

#vid_container {
    top: 0;
    left: 0;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#gui_controls {
    position: absolute;
    background-color: #111; /*rgba(255, 0, 0, 0.5);*/
    z-index: 2;
    bottom: 0;
}

#video_overlay {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: #111;
}

.button-camera {
    outline: none;
    position: absolute;
    color: white;
    display: block;
    opacity: 1;
    background: transparent;
    border: solid 2px #fff;
    padding: 0;
    text-shadow: 0px 0px 4px black;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: auto;
    z-index: 2;
}

#takePhotoButton {
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    width: 80px;
    height: 80px;
    background-image: url('../../../Content/images/camera-plugin/ic_photo_camera_white_48px.svg');
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

    #takePhotoButton:active {
        background-color: #fff;
    }

#toggleFullScreenButton {
    display: none;
    width: 64px;
    height: 64px;
    background-image: url('../../../Content/images/camera-plugin/ic_fullscreen_white_48px.svg');
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

#cameraExitButton {
    display: none;
    width: 48px;
    height: 48px;
    background-image: url('../../../Content/images/camera-plugin/ic_close.svg');
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border-color:transparent;
}

#toggleFullScreenButton[aria-pressed="true"] {
    background-image: url('../../../Content/images/camera-plugin/ic_fullscreen_exit_white_48px.svg');
}

#switchCameraButton {
    display: none;
    width: 64px;
    height: 64px;
    background-image: url('../../../Content/images/camera-plugin/ic_camera_rear_white_36px.svg');
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

    #switchCameraButton[aria-pressed="true"] {
        background-image: url('../../../Content/images/camera-plugin/ic_camera_front_white_36px.svg');
    }

@media screen and (orientation:portrait) {
    #vid_container {
        width: 100%;
    }

    #gui_controls {
        width: 100%;
        height: 20%;
        left: 0;
    }

    #switchCameraButton {
        left: calc(20% - 32px);
        top: calc(50% - 32px);
    }

    #toggleFullScreenButton {
        left: calc(80% - 32px);
        top: calc(50% - 32px);
    }

    #cameraExitButton {
        left: calc(80% - 32px);
        top: calc(50% - 32px);
    }
}

@media screen and (orientation:landscape) {

    #vid_container {
        width: 80%;
        height: 100%;
    }

        #vid_container.left {
            left: 20%;
        }

    /* we default to right */
    #gui_controls {
        width: 20%;
        height: 100%;
        right: 0;
    }

        /* for the lefties */
        #gui_controls.left {
            left: 0;
        }

    #switchCameraButton {
        left: calc(50% - 32px);
        top: calc(18% - 32px);
    }

    #toggleFullScreenButton {
        left: calc(50% - 32px);
        top: calc(82% - 32px);
    }

    #cameraExitButton {
        left: calc(50% - 32px);
        top: calc(82% - 32px);
    }
}
