html,
body {
  margin: 0;
  background-color: #333;
}
body {
  font-family: sans-serif;
  margin-top: 0;
  margin-bottom: 0;
  -webkit-user-select: none;
}
h1 {
  font-weight: normal;
  font-size: 140%;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
}
ul li {
  list-style: none;
}
button {
  border: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
button:focus {
  outline: none;
}
.sub-title {
  font-size: 30px;
  line-height: 32px;
}
/* BASE ________________________________________________________________________________________*/
@font-face {
  font-family: "BBold";
  src: url("font-resource/Brandon_bld.ttf");
}

@font-face {
  font-family: "BMedium";
  src: url("font-resource/Brandon_med.ttf");
}

@font-face {
  font-family: "BReg";
  src: url("font-resource/Brandon_reg.ttf");
}

#preload-font {
  font-family: "BBold", sans-serif;
  text-indent: -9999px;
  font-size: 0;
}

#preload-font span.medium {
  font-family: "BMedium", sans-serif;
}

#preload-font span.regular {
  font-family: "BReg", sans-serif;
}

body,
button {
  font-family: BReg, sans-serif;
}

.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

svg {
  -webkit-transform: translateZ(0);
}

.ScannerWidget {
  position: relative;
}

.camera-container {
  position: absolute;
  z-index: 15;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.ScannerWidget .camera-container .row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: black;
}
.ScannerWidget .camera-container .row.end {
  justify-content: flex-end;
}

.ScannerWidget .scanner-container {
  z-index: 15;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.camera-container button {
  background-color: transparent;
  border: none;
}

.camera-container img.close {
  width: 50px;
}

.camera-container .spacer {
  width: 60px;
}

.camera-container .direction img {
  width: 55px;
}

.cameraContainer video {
  background-color: grey;
}

.CameraWidget {
  position: relative;
}

.CameraWidget .camera-container .row {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.CameraWidget .camera-container button.capture {
  height: 50px;
  width: 50px;
  border-radius: 50px;
  background-color: white;
  border: 5px solid black;
  box-shadow: 0 0 0 5px white;
}

/* base button styles_________________________________________________________________________________________*/
.pill-button {
  display: inline-block;
  background: white;
  padding: 2px 20px;
  border-radius: 14px;
  text-transform: uppercase;
  border: 2px solid black;
  font-size: 24px;
  font-family: Bbold;
  position: relative;
  color: black;
}
.pill-button:active,
.pill-button.play.playing-js {
  background: black;
  color: white;
  border-color: white;
}
.pill-button.pill-button--borderless {
  border: 0;
}
.pill-button.pill-button--secondary {
  margin-left: 20px;
}

.pill-button.play {
  padding-right: 42px;
  width: 56px;
}

.play:after {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid black;
  position: absolute;
  top: 6px;
  right: 11px;
}

.playing-js:after {
  content: "";
  width: 20px;
  height: 20px;
  background-color: white;
  position: absolute;
  top: 8px;
  right: 15px;
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
}

.button-label {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  width: 100%;
  overflow: visible;
  white-space: nowrap;
  position: absolute;
}

.close-button {
  display: block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  text-indent: -2000px;
  background-image: url(art/workshop/close_btn.png);
  background-size: 100%;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.close-button:active {
  background-image: url(art/workshop/close_btn__active.png);
}

/* dialog styles _________________________________________________________________________________________*/
.modal-overlay,
.dialog-overlay {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
}

.modal-overlay {
  background: #333;
}

.close-button--modal {
  position: absolute;
  right: 20px;
  top: 20px;
}

.modal-header {
  margin: 100px 0;
}

.dialog {
  position: absolute;
  z-index: 12;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background: #87bf19;
  width: 700px;
  height: 575px;
  box-sizing: border-box;
  padding: 10px;
  padding-top: 20px;
  text-align: center;
  overflow: hidden;
}

.dialog .close-button {
  position: absolute;
  right: 20px;
}

.dialog__hd,
.dialog__bd {
  margin-bottom: 50px;
}

.dialog__bd {
  min-height: 160px;
}

.dialog__hd {
  overflow-wrap: break-word;
}

.dialog__content {
  padding-top: 40px;
}

.dialog--failure .dialog__bd,
.dialog--success .dialog__bd {
  background-image: url(art/workshop/dialog/success.png);
  background-size: 400px;
  height: 266px;
  background-repeat: no-repeat;
  background-position: 50%;
}

.dialog--failure .dialog__bd {
  background-image: url(art/workshop/dialog/failure.png);
  background-size: 270px;
}

.dialog--try-again .dialog__bd {
  background-image: url(art/workshop/dialog/who-is-your-friend.png);
  background-size: 284px;
  height: 224px;
}

.dialog--try-again .share-step__camper--friend {
  margin-top: 40px;
}

.dialog--compact .dialog {
  height: 350px;
}

.dialog--compact .dialog__bd {
  min-height: 0px;
}
