/*
https://www.jsdelivr.com/package/npm/material-components-web
*/

.boxdbshadow {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28) !important;
}

.boxdbshadowy {
  box-shadow: 0 -9px 9px 0 rgba(0, 0, 0, 0.301),
    0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
}

.boxdtext {
  text-shadow: 1px 1px 2px #111 !important;
}

.bg-hover:hover,
.bg-hover:focus,
.bg-hover:active,
.bg-hover:target {
  opacity: 0.45 !important;
}

.form-check{
  padding-left: 0px!important;
}

.mgbtn {
  margin: 0.25rem 0.125rem;
}
@media print{.hidden-print{display:none !important}}

/*body {
    padding: 0;
    margin: 0;
  }*/

  /*main {
    display: flex;
  }*/

  canvas {
    border: 1px solid #ddd;
    max-width: 45vw;
    max-height: 90vh;
    margin-bottom: 15px;
  }

  .mdc-top-app-bar__row {
    height: 50px !important;
  }

  .mdc-top-app-bar--fixed-adjust {
    padding-top: 50px !important;
  }

  /*video {
    max-width: 45vw;
    max-height: 90vh;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
  }*/



  /*#videowidth{
    margin-bottom: 1rem;
    max-width: 100px;
    width: 22%;
    padding: 0 4px;
  }
  #videowidth .mdc-floating-label{
    left: 4px;
  }
*/
 #videoInfo {
    display: none;
    text-align: center;
    font-size: 14px;
  }

  /*main>div {
    margin: 20px 12px;
  }*/

  .select-source {
    padding: 12px;

  }
 .video-preview{
    text-align: center;
 }
  .instructions {
    padding: 12px;
    flex-wrap: wrap;
  }

  .toolbar-menu {
    color: #fff !important;
    padding-right: 12px;
  }

  .video_data {
    width: 50%;
  }

  /*.video_output {
    position: sticky;
    display: flex;
    flex: 1;
    top: 60px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .video_output > .mdc-card{
    width: 100%;
  }
*/
  .instructions ul {
    margin-bottom: -5px;
  }

  .play-controls{
    font-size: 17px !important;
  }

  .mdc-touch-target-wrapper {
    position: absolute;
    top: 22px;
    right: 12px;
  }

  .mdc-text-field--filled {
    background-color: #fff !important;
  }

  .mdc-text-field--filled:active {
    background-color: #fff !important;
  }

  .snap_photo_btn {
    margin-bottom: 7px;
    margin-left: 15px;
  }

  .buttons {
    display: flex;
  }

  .buttons h4 {
    padding-right: 15px;
    font-family: Roboto;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.87);
  }

  .space {
    width: 20px;
  }

  .mdc-card{
    font-family: Roboto, sans-serif;
    padding: 8px;
    margin: 4px 0;
  }

  .snap_button {
    background: #6200ee;
    border: 0;
    border-radius: 4px;
    padding: 0 15px 2px;
    font-size: inherit;
    color: #fff;
    cursor: pointer;
    box-shadow: 0px 5px 3px -3px rgba(0, 0, 0, 0.50);
    height: 37px;
    margin: 10px 0;
  }

  .snap_button:hover {
    background: #8731ff;
    transition: all 0.3s;
  }

  .snap_button:active {
    background: #c49dff;
  }

  .canvas-container{
    /*margin-top:16px;*/
    text-align: center;
    position: relative;
    /*padding-bottom: 40px;*/
    padding: 0px 0px 110px 0px;
    box-sizing: border-box;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 41px;
    background-color: #d1bebebd;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23fff9' viewBox='0 0 16 16'%3E %3Cpath d='M5 8c0-1.657 2.343-3 4-3V4a4 4 0 0 0-4 4'/%3E %3Cpath d='M12.318 3h2.015C15.253 3 16 3.746 16 4.667v6.666c0 .92-.746 1.667-1.667 1.667h-2.015A5.97 5.97 0 0 1 9 14a5.97 5.97 0 0 1-3.318-1H1.667C.747 13 0 12.254 0 11.333V4.667C0 3.747.746 3 1.667 3H2a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1h.682A5.97 5.97 0 0 1 9 2c1.227 0 2.367.368 3.318 1M2 4.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0M14 8A5 5 0 1 0 4 8a5 5 0 0 0 10 0'/%3E %3C/svg%3E");
  }



  #videoControls > div{
    margin: 8px 0;
  }
  #videoControls .button-container{
    text-align: center;
  }


  #videoControls button{
    font-size: 1px;
    border-radius: 5px;
    /*background-color: #eee;*/
    border: 1px solid #aaa;
    display: inline-flex;
    flex-direction: column;
  }


  #slider{
    width: 100%;
  }
  #videoControls button > span{
    font-size: 16px;
  }

  /*#snap{
    margin: 0 2%;
  }*/
  
  /*#snap2{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }*/
  /*#snap_each{
    border: 0px;
    background-color: #c49dff;
    border-radius: 0 .5rem .5rem 0;
    height: 36px;
    width: 94px;
  }*/

  .output-container{
    flex: 0 1 88px;
    position: relative;
  }
  
  .output {
    object-fit: contain;
    height: auto;
    width: 100%;
    border: 2px solid transparent;
  }
  .output-container label{
    font-size: 0.75em;
    background: #fff;
    color: #4e4c4c;
    padding: 2px 3px;
    border-radius: 3px;
    font-size: 8px;
    position: absolute;
    right: 3px;
    bottom: 6px;
    max-width: 82%;
  }
  .output-remove{
    position: absolute;
    top: 4px;
    right: 3px;
    background: #800000;
    color: #fff;
    padding: 0px 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    text-decoration: none;
  }
  
  #outputs{
    display: flex; 
    gap: 1%; 
    flex-wrap: wrap;
    cursor: pointer;
  }
  
  .output.selected {
    border-color: #6200ee;
  }
  
  /*
  
  @media (max-width:1166px){
    #videoControls button {
        font-size: 24px;
    }
  }
  
  @media (max-width:1023px){
    main{
      flex-wrap: wrap;
    }
    .video_data{
      width: 100%;
    }
    .video_output{
      width: 100%;
    }
    video{
      max-width: 90vw;
    }
    canvas{
      max-width: 90vw;
    }
    .video_output {
      max-height: 100%;
    }
  }
  @media (max-width:600px){
    #videoControls button {
      font-size: 20px;
    }
  }
  @media (max-width:480px){
    #snap{
      width: 80px;
      height: 54px;
    }
    #snap2{
      width: 85px;
      height: 54px;
    }
    #snap_each{
      height: 54px;
      width: 64px;
    }
    #videoControls > div{
      display: flex;
      justify-content: space-between;
    }
    #videoControls button {
      font-size: 3vw ;
      padding: 4px 4px;
    }
    #videoControls button > span{
      display: block;
      text-align: center;
      font-size: 3vw;
    }
    .play-controls{
      font-size: 5vw !important;
    }
    .output-container{
      flex: 0 1 31%;
    }
    #outputs{
      gap: 3px; 
    }
    .output-container label{
      font-size: 3vw;
    }  
  }
*/