/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: black;
  font-size: 16px
}

/* fix for jlab site */
div[data-testid] {
  display: block !important;
}

/* #main-container{
  width: 100vw;
  height:100vh;
  display: flex;
  justify-content: center;
  align-items: center;
} */

#canvas-wrap {
  /* width: 100vw;
  height: 100vh; */
  margin: auto;
  overflow: hidden;
  position: relative;
}

#canvas {
  width: 100%;
  /* height: 100%; */
  display: block;
  object-fit: contain;
  max-height: 100vh;
}

#canvas-overlay-top{
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  width:100%;
  pointer-events: none;
}
#back-button{
  background: #0080A3;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 4px rgb(0 0 0 / 13%);
  font-family: HelveticaNeue-Light, 'Helvetica Neue Light', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  padding: 0.8em 1em;
  margin-right: auto;
  display:inline-flex; align-items:center;;
  overflow: hidden;
  font-size: 1.2em;
  box-sizing: border-box;
  box-shadow: 0px 8px 12px -4px rgba(0, 0, 0, 0.44);
  pointer-events: all;
  border-radius: 100px;
  /* width: 20%;
  max-width: 200px; */
  z-index: 3;
}

#canvas-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#jlab-logo-container {
  flex: 1;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#jlab-logo {
  object-fit: contain;
  max-height: 250px;
  max-width: 80%;
  box-sizing: border-box;
  z-index: 3;
}

#capture-button-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

#capture-button {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  object-fit: contain;
  cursor: pointer;
  z-index: 3;
}

#desktop-capture-button-spacer {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  object-fit: contain;
}

#learn-more-button-container {
  flex: 1;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#learn-more-button {
  background: #0080A3;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 4px rgb(0 0 0 / 13%);
  font-family: HelveticaNeue-Light, 'Helvetica Neue Light', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  padding: 0.8em 2em;
  margin-left: auto;
  display: block;
  overflow: hidden;
  font-size: 30px;
  box-sizing: border-box;
  box-shadow: 0px 8px 12px -4px rgba(0, 0, 0, 0.44);
  pointer-events: all;
  border-radius: 100px;
  width: 80%;
  max-width: 400px;
  z-index: 3;
}

#full-screen-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

#capture-preview-container {
  background: white;
  max-width: 50%;
  max-height: 80%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.94);
  position: relative;
}

#capture-image-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: calc(80vh - 150px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#capture-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

#capture-image-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100%; */
  /* padding: 20px 10px 0 10px; */
  padding: 10px 10px 0 10px
}

#save-button {
  background: #0080A3;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 4px rgb(0 0 0 / 13%);
  font-family: HelveticaNeue-Light, 'Helvetica Neue Light', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  padding: 0.8em 2em;
  border: none;
  border-radius: 100px;
  box-sizing: border-box;
  box-shadow: 0px 8px 12px -4px rgba(0, 0, 0, 0.44);
  pointer-events: all;
  cursor: pointer;
}

#close-button {
  position: absolute;
  top: -0.9em;
  right: -0.9em;
  background: #0080A3;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2em;
  pointer-events: all;
  text-shadow: 0 2px 4px rgb(0 0 0 / 13%);
  box-shadow: 0px 8px 12px -4px rgba(0, 0, 0, 0.44);
  color: #fff;
  padding: 0.5em 0.7em;
  cursor: pointer;
}

@media (max-width: 1100px) {
  
  #back-button{
    font-size: 0.8em;
  }
  #capture-button {
    width: 150px;
    height: 150px;
  }

  #desktop-capture-button-spacer {
    width: 150px;
    height: 150px;
  }

  #learn-more-button {
    font-size: 20px;
    max-width: 350px;
  }

  #capture-preview-container {
    padding: 15px;
  }

  #save-button {
    font-size: 1em;
  }
}

@media (max-width: 750px) {
  #capture-button {
    width: 150px;
    height: 150px;
  }

  #jlab-logo {
    max-height: 250px;
    max-width: 80%;
    box-sizing: border-box;
    z-index: 3;
  }

  #learn-more-button {
    font-size: 20px;
    width: 80%;
    max-width: 350px;
  }

  #desktop-capture-button-spacer {
    display: none;
  }

  #capture-button-container {
    bottom: 100px;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  #capture-preview-container {
    max-width: 70%;
  }

  #close-button {
    font-size: 1.1em;
  }
}

@media (max-width: 600px) {
  #capture-button-container {
    bottom: 80px;
    padding: 20px;
  }

  #capture-button {
    width: 120px;
    height: 120px;
  }

  #jlab-logo {
    max-height: 250px;
    max-width: 80%;
    box-sizing: border-box;
    z-index: 3;
  }

  #learn-more-button {
    font-size: 17px;
    width: 100%;
    max-width: 300px;
  }

  #desktop-capture-button-spacer {
    display: none;
  }

  #capture-button-container {
    position: absolute;
    bottom: 100px;
    width: 100%;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

}

@media (max-width: 420px) {
  #jlab-logo {
    max-width: 98%;
  }

  #learn-more-button {
    font-size: 14px;
    padding: 0.8em 1em;
  }
}         