:root {
    --backgroundColor: #399fda;
    --buttonColor: #0f52b6;
    --buttonColor2: #0b4bac;
    --pColor: white;
    --hColor: white;
    --bColor: white;
    --font: 'Bebas Neue', sans-serif;
    --hSize: 40pt;
}

html, body {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-weight: 200;
    display: flex;
    background-color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

img, video {
    width: 100%;
    height: 100%;
}

#renderCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;
}

/* Preview Container */

#overlay {
    z-index: 35;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

#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;
    width: 80%;
    height: 90%;
    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;
    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;
    text-align: center;
    color: white;
    filter: drop-shadow(0px 1px 2px #333);
}

#previewContainer:not(.downloaded) .show-after-download {
    display: none;
}
   
@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);
    }
}

/* 8thwall splash */

#loadImage {
    z-index: -1 !important;
    display: none;
}

#loadBackground {
    background-color: transparent !important;
}

#requestingCameraPermissions {
    visibility: hidden
}

#requestingCameraIcon {
    visibility: hidden
}