html, body {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #d62932;
  display: flex;
  font-family: 'Bebas Neue', cursive;
  font-weight: 200;
}

#renderCanvas {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  touch-action: none;
}

* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
  -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
  outline: none !important;
} 

.center {
  margin-top: 50%;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  text-align: center;
  color: white;
  border: 1px solid rgb(146, 146, 146);
  background-color: #444444;
  display: none;
}

#loadingDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 7vmin;
  color: white;
  text-align: center;
  z-index: 35;
}

#actionButton {
  /* change color of action button */
  background-color: #007aff !important;
}
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape) {
  
  .recorder-container {
    /* move recorder button to side in landscape on mobile */
    left: unset !important;
    transform: unset !important;
    right: 3vw !important;
   }
  
}

/* Preview Container */

#previewContainer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  z-index: 30;
  opacity: 0.0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  box-sizing: border-box;
  pointer-events: none;
}

#previewContainer.fade-in {
  transition: 0.5s opacity;
  opacity: 1;
}

#videoPreview, #imagePreview {
  display: none;
  max-width: 90vw;
  max-height: calc(88vh - 12vmin);
  border-radius: 10px;
  border: 1vmin solid white;
  background-color: white;
}

.icon-button img, #videoPreview, #imagePreview {
  filter: drop-shadow(0 0 2px #333);
}

.video-preview #videoPreview {
  display: block;
}

.image-preview #imagePreview {
  display: block;
}

/* Top Bar */

.top-bar {
  position: relative;
  flex: 1 0 0;
}

.preview-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.icon-button {
  padding: 4vmin;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.icon-button img {
  display: block;
  height: 7.5vmin;
}

#toggleMuteButton, #closePreviewButton {
  position: absolute;
  z-index: 1;
}

#toggleMuteButton {
  left: 0;
  bottom: 0;
  display: none;
}

.video-preview #toggleMuteButton {
  display: block;
}

#closePreviewButton {
  top: 0;
  right: 0;
}

/* Bottom Bar */

.bottom-bar {
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0 5vmin;
}

.style-reset {
  background: none;
  border: none;
  outline: none;
  box-shadow: none !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.style-reset:focus { outline:0; }

#actionButton {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 0.3em 0.5em 0.3em 0.5em;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Nunito', sans-serif;
  text-align: right;
  color: white;
  background-color: #AD50FF;
  border-radius: 0.5em;
  font-size: 5vmin;
  min-width: 3.25em;
}

#actionButton img {
  height: 0.8em;
  margin-left: 0.4em;
}

.disabled-download.video-preview #openSafariText {
  display: block;
  font-size: 5vmin;
}

.disabled-download.image-preview #tapAndHoldText {
  display: block;
  font-size: 7.5vmin;
}

#openSafariText, #tapAndHoldText {
  display: none;
  padding: 0.3em 0.5em 0.3em 0.5em;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  color: white;
  filter: drop-shadow(0px 1px 2px #333);
}

#previewContainer:not(.downloaded) .show-after-download {
  display: none;
}

img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
} 


.content {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 35;
  background: -webkit-radial-gradient(rgba(1, 1, 1, 0.3), rgba(1, 1, 1, 0.1) 35%, rgba(1, 1, 1, 0.3));
  background: -moz-radial-gradient(rgba(1, 1, 1, 0.3), rgba(1, 1, 1, 0.1) 35%, rgba(1, 1, 1, 0.3));
  background: -ms-radial-gradient(rgba(1, 1, 1, 0.3), rgba(1, 1, 1, 0.1) 35%, rgba(1, 1, 1, 0.3));
  background: radial-gradient(rgba(1, 1, 1, 0.3), rgba(1, 1, 1, 0.1) 35%, rgba(1, 1, 1, 0.3));
} 

.grid {
  display: grid;
  height: 100%;
  grid-template-rows: 25% 37% 30% 8%;
}

.header_logo {
  object-fit: cover;
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  text-align: center;
  color: transparent;
  animation: blurFadeIn 0.5s ease-in backwards;
}
.logo {
   bottom: 0%;
   margin-top: 5px;
   margin-bottom: 5px;
   text-align: center;
   color: transparent;
   animation: blurFadeIn 0.5s ease-in backwards;
}
.loading {
  bottom: 0%;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  color: transparent;
  animation: blurFadeIn 0.5s ease-in backwards;
 }
 
 .splashTitle {
   bottom: 0%;
   font-family: "Helvetica Neue Black", "Arial Black", "Arial Bold", sans-serif;
   margin-top: 5px;
   margin-bottom: 5px;
   color: white;
   font-size: 40pt;
   text-align: center;
   animation: blurFadeIn 0.5s ease-in backwards;
  }
  .splashSubTitle {
    bottom: 0%;
    margin-top: 5px;
    margin-bottom: 5px;
    color: white;
    font-size: 30pt;
    text-align: center;
    animation: blurFadeIn 0.5s ease-in backwards;
   }
   
@keyframes blurFadeIn{
  0%{
      opacity: 0;
      text-shadow: 0px 0px 40px #474344;
      transform: scale(1.3);
  }
  50%{
      opacity: 0.5;
      text-shadow: 0px 0px 10px #474344;
      transform: scale(1.1);
  }
  100%{
      opacity: 1;
      text-shadow: 0px 0px 1px #474344;
      transform: scale(1);
  }
}

#loadImage {
  z-index: -1 !important;
  display: none;
}
#loadBackground {
  background-color: transparent !important;
}
#requestingCameraPermissions {
  visibility: hidden
}
#requestingCameraIcon {
  visibility: hidden
}

#splash {
  background: #d62932;
}

