/***********************************
* CORE STYLES (SEE THEME STYLES BELOW TO EDIT VISUALS)
************************************/
/* transform with vendor prefixes */
.sn {
  /* base styles */
  /* light box overlay styles */
  /* generic modal container styles */
  /* image shower view */
  /* no photo icon */
  /* styles for the flash overlay */
  /* live stream and video */
  /* mixin to place two buttons side-by-side */
  /* mixin for full width buttons */
  /* The add button with nested file */
  /* add image button */
}
.sn,
.sn * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  outline: none;
}
.sn img {
  outline: 0;
}
.sn.sn-overlay {
  bottom: 0;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  -webkit-transition: opacity 400ms ease;
  -moz-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
  z-index: 10;
}
.sn.sn-overlay.sn-overlay-shown {
  opacity: 1;
}
.sn.sn-modal {
  left: 50%;
  max-height: 100%;
  overflow-y: scroll;
  padding: 20px;
  position: fixed;
  top: -500px;
  -webkit-transition: top 400ms ease;
  -moz-transition: top 400ms ease;
  -o-transition: top 400ms ease;
  transition: top 400ms ease;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 90%;
  z-index: 11;
}
.sn.sn-modal.sn-modal-shown {
  top: 0;
}
@media screen and (min-width: 400px) {
  .sn.sn-modal {
    width: 400px;
  }
}
.sn .sn-img-wrapper {
  height: 270px;
  margin-bottom: 10px;
  position: relative;
  text-align: center;
  width: 100%;
}
.sn .sn-img-wrapper img:not(.sn-placeholder-avatar) {
  max-height: 100%;
  max-width: 100%;
}
.sn .sn-placeholder-avatar {
  max-height: 100%;
  max-width: 95%;
  position: relative;
  opacity: .2;
  top: 50%;
  /* todo - move to a mixin */
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}
.sn .sn-flash-overlay {
  background-color: white;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  /* todo - mixin for tranitions? */
  /* fade out slow */
  -webkit-transition: opacity 400ms ease;
  -moz-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}
.sn .sn-flash-overlay.sn-is-shown {
  opacity: 1;
  /* fade in fast */
  -webkit-transition: opacity 50ms ease;
  -moz-transition: opacity 50ms ease;
  -o-transition: opacity 50ms ease;
  transition: opacity 50ms ease;
}
.sn .sn-video-wrapper {
  /* selecting the video wrapper */
}
.sn .sn-video-wrapper > div:first-child {
  position: relative;
  /* for overlay */
}
.sn .sn-video-wrapper canvas {
  display: none;
}
.sn .sn-video-wrapper .sn-video {
  width: 100%;
  height: 270px;
}
.sn .sn-video-wrapper .sn-video-overlay {
  height: 270px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
}
.sn .sn-video-wrapper .sn-button-add,
.sn .sn-video-wrapper .sn-button-cancel {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}
.sn .sn-video-wrapper .sn-button-add button,
.sn .sn-video-wrapper .sn-button-cancel button {
  width: 100%;
}
.sn .sn-video-wrapper .sn-button-take-photo {
  width: 100%;
}
.sn .sn-video-wrapper .sn-button-take-photo button {
  width: 100%;
}
.sn .sn-video-wrapper.sn-is-streaming .sn-video-overlay {
  display: none;
}
.sn .sn-button button {
  margin: 10px 0;
}
.sn .sn-button-cancel,
.sn .sn-button-remove {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  padding-left: 5px;
}
.sn .sn-button-cancel button,
.sn .sn-button-remove button {
  width: 100%;
}
.sn .sn-button-save {
  width: 100%;
}
.sn .sn-button-save button {
  width: 100%;
}
.sn .sn-button-take-picture {
  width: 100%;
}
.sn .sn-button-take-picture button {
  width: 100%;
}
.sn .sn-button-add {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  overflow: hidden;
  padding: 10px 5px 10px 0;
  /* stretch the file input to take up the button space*/
}
.sn .sn-button-add button {
  width: 100%;
}
.sn .sn-button-add > div {
  position: relative;
}
.sn .sn-button-add button {
  margin: 0;
  vertical-align: top;
}
.sn .sn-button-add input[type=file] {
  display: none;
}
.sn .sn-button-add input[type=file].sn-is-shown {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  filter: alpha(opacity=0);
  transform: translate(-300px, 0) scale(4);
  font-size: 23px;
  direction: ltr;
  cursor: pointer;
}
/***********************************
* DEFAULT THEME
*
* copy and paste changing .sn-theme-default to .sn-theme-{{some name}}
* use the theme option when initializing the plugin, providing the theme name
************************************/
.sn.sn-theme-default {
  /* pick color and opacity for the light box overlay */
  /* modal container styles */
  /* mixin for basic button styles*/
}
.sn.sn-theme-default.sn-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}
.sn.sn-theme-default.sn-modal {
  background-color: white;
  /* add a nice border radius to the bottom of the modal container */
  /*border-radius: 0 0 10px 10px;*/
}
.sn.sn-theme-default .sn-button-add button {
  background-color: #8d9495;
  border-radius: 3px;
  border: none;
  box-shadow: 0px 3px 0px #737b7c;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  /* styles when the button is clicked */
}
.sn.sn-theme-default .sn-button-add button.sn-is-pressed {
  box-shadow: none;
  -webkit-transform: translateY(3px);
  -moz-transform: translateY(3px);
  -o-transform: translateY(3px);
  transform: translateY(3px);
}
.sn.sn-theme-default .sn-button-cancel button,
.sn.sn-theme-default .sn-button-remove button {
  background-color: #8d9495;
  border-radius: 3px;
  border: none;
  box-shadow: 0px 3px 0px #737b7c;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  /* styles when the button is clicked */
}
.sn.sn-theme-default .sn-button-cancel button.sn-is-pressed,
.sn.sn-theme-default .sn-button-remove button.sn-is-pressed {
  box-shadow: none;
  -webkit-transform: translateY(3px);
  -moz-transform: translateY(3px);
  -o-transform: translateY(3px);
  transform: translateY(3px);
}
.sn.sn-theme-default .sn-button-save button {
  background-color: #86a2b8;
  border-radius: 3px;
  border: none;
  box-shadow: 0px 3px 0px #6689a5;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  /* styles when the button is clicked */
}
.sn.sn-theme-default .sn-button-save button.sn-is-pressed {
  box-shadow: none;
  -webkit-transform: translateY(3px);
  -moz-transform: translateY(3px);
  -o-transform: translateY(3px);
  transform: translateY(3px);
}
.sn.sn-theme-default .sn-video-wrapper .sn-button-take-picture button {
  background-color: #86a2b8;
  border-radius: 3px;
  border: none;
  box-shadow: 0px 3px 0px #6689a5;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  /* styles when the button is clicked */
}
.sn.sn-theme-default .sn-video-wrapper .sn-button-take-picture button.sn-is-pressed {
  box-shadow: none;
  -webkit-transform: translateY(3px);
  -moz-transform: translateY(3px);
  -o-transform: translateY(3px);
  transform: translateY(3px);
}
.sn.sn-theme-default .sn-video-wrapper .sn-button-take-picture button[disabled] {
  cursor: default;
  background-color: #a7adae;
  border-radius: 3px;
  border: none;
  box-shadow: 0px 3px 0px #8d9495;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  /* styles when the button is clicked */
  box-shadow: none;
}
.sn.sn-theme-default .sn-video-wrapper .sn-button-take-picture button[disabled].sn-is-pressed {
  box-shadow: none;
  -webkit-transform: translateY(3px);
  -moz-transform: translateY(3px);
  -o-transform: translateY(3px);
  transform: translateY(3px);
}
