html {
    
background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);

}

body {
    margin:0px;
    padding: 0px;
/*    background: #000;*/
    color: black;
/*    max-height: 100vh;*/
   -webkit-user-select: none;    
   -webkit-touch-callout: none;   
/*   font-family: 'PT Sans', Helvetica, Arial, serif;   */
   font-family: Helvetica, Arial, serif;   

}

#vid_container {
    position: fixed;
    top: 0; left: 0;
}      

#video{
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: 0;
    display: none;
} 

#video_overlay {
    position: fixed; 
    display: none;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 10;
    background-color:#111;
}

/*  Button style from: 
    https://googlesamples.github.io/web-fundamentals/fundamentals/media/mobile-web-video-playback.html */

button {
    outline: none;
    position: absolute;
    color: white;
    display: block;
    opacity: 1;
    background: transparent;
    border: 0px;
/*    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;
}

#header {
    width: 100vw;
    margin-top: 3vh;
    text-align: center;
}

.fit {
/*    padding: 10px 10px 0px 10px;*/
    padding-left: 10px;
    padding-right: 10px;
    display: none;
}

#footer {
    position: absolute;
    top: calc(100% - 4em - 60px);
    width: 100vw;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #46666a;
    z-index: -1;
}

#takePhotoButton {
    left: calc(50% - 40px);
    top: calc(100% - 2em - 70px);
    width: 80px;
    height: 80px;
/*    background-image: url('img/ic_photo_camera_white_48px.svg');*/
    background-image: url('img/qr-code.svg');
    background-size: 48px 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

#closePhotoButton {
    left: calc(50% - 40px);
    top: calc(100% - 2em - 70px);
    width: 80px;
    height: 80px;
    background-image: url('img/cancel_button.svg');
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: block;
    visibility: hidden;
}

#warning-terms{
    left: calc(50% + 60px);
    top: calc(100% - 2em - 50px);
    width: 40px;
    height: 40px;
    background-image: url('img/warning.svg');
    background-size: 40px 40px;
    display: block;
    opacity: 1;
}

.grayscale {
    filter: grayscale(100%);
}

.main-carousel {
/*    height: 30vh;*/
}

.carousel-cell {
/*    width: 20vw;*/
/*    max-width: 20vw;*/
    height: 41vh;
    max-height: 41vh;
    margin:10px;
    width: auto;
    padding: 12px;
    display: none;
    overflow: hidden;
    text-align: center;
}

.carousel-cell p {
    font-weight: bold;
    font-size: 1em;
}

.carousel-cell img {
/*    height: 30vh;*/
    height: 25vh;
    max-height: 25vh;
/*    width: 30vw;*/
    max-width: 70vw;
    border: 10px solid #eee;
    padding: 10px;
/*    position: absolute;
    top: 100%;
    transform:translateY(-50%);*/
    background-color: white;
}


@media screen and (orientation:portrait) {
    /* portrait-specific styles */

    /* video_container (video) doesn't respect height... 
       so we will fill it in completely in portrait mode
    */
    .main-carousel {
        display: block;
    }
    
    #vid_container {
        width:100%;
        /*max-height:80%;*/
    }  
/*
    #gui_controls {
        width: 100%;
        height: 20%;
        left:0;
    }

    #closePhotoButton { 
        left: calc(20% - 32px);
        top: calc(50% - 32px);
    }

    #takePhotoButton { 
        left: calc(80% - 32px);
        top: calc(50% - 32px);
    }
}
*/

/*@media screen and (orientation:landscape) {

    .main-carousel {
        display: none;
    }
    .carousel-cell {
        display:none;
    }
} */

/************/

/*body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

body > div {
  width: 100%;
  text-align: center;
}

#readout {
  font-size: 12rem;
  font-family: sans-serif;
  line-height: 12rem;
}*/

/*button {
  padding: 1rem 2rem;
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  font-size: 1.5rem;
  text-transform: uppercase;
}*/

/*button:focus {
  outline: none;
}

.selected {
  background-color: hotpink;
  color: #fff;
}

#start {
  margin-top: 1rem;
  background-color: hsl(114, 96%, 92%);
}

#start.selected {
  background-color: hsl(0, 96%, 92%);
  color: #000;
}
*/
