@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;700&family=Anton&family=Audiowide&family=Bad+Script&family=Birthstone+Bounce:wght@400;500&family=Bungee&family=Bungee+Shade&family=Caesar+Dressing&family=Caveat&family=Cinzel+Decorative:wght@400;700&family=Codystar&family=Corinthia:wght@400;700&family=Covered+By+Your+Grace&family=Creepster&family=Crimson+Text:ital,wght@0,400;0,700;1,400&family=Dancing+Script:wght@400;700&family=Ephesis&family=Euphoria+Script&family=Fuzzy+Bubbles:wght@400;700&family=Gluten:wght@400;700&family=Gorditas:wght@400;700&family=Grape+Nuts&family=Great+Vibes&family=Hachi+Maru+Pop&family=Inknut+Antiqua:wght@400;700&family=Josefin+Slab:wght@400;700&family=Long+Cang&family=M+PLUS+Code+Latin:wght@400;700&family=Mansalva&family=Megrim&family=Merriweather:wght@400;700&family=Mr+Dafoe&family=Nabla&family=Neonderthaw&family=Nothing+You+Could+Do&family=Noto+Color+Emoji&family=Noto+Sans+Mono&family=Noto+Serif+Display&family=Offside&family=Oooh+Baby&family=Oregano:ital@0;1&family=Oswald&family=Oxanium:wght@400;700&family=Passions+Conflict&family=Playfair+Display+SC:wght@400;700&family=Poppins:wght@400;700&family=Press+Start+2P&family=Raleway&family=Rampart+One&family=Roboto&family=Roboto+Slab:wght@400;700&family=Rubik+Wet+Paint&family=Sacramento&family=Satisfy&family=Schoolbell&family=Seaweed+Script&family=Silkscreen&family=Slackey&family=Special+Elite&family=Squada+One&family=Stick&family=Tangerine:wght@400;700&family=Tourney:wght@400;700&family=Train+One&family=Wire+One&family=Yomogi&family=Yuji+Boku&family=Zen+Dots&display=swap');



.ql-editor {
    z-index: 100;
}

#sizer {
    z-index: 101;
}

.ql-toolbar {
    min-height: 4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0px !important;
    border-left: 0px !important;

}

/* drop down height */
.ql-snow .ql-picker {
    height: 32px;
    font-size: 1rem;
}

.ql-snow .ql-color-picker .ql-picker-label,
.ql-snow .ql-icon-picker .ql-picker-label {
    display: flex;
}

/* button sizes */
.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
    display: flex;
    height: 32px;
    width: 32px;
    border: 1px transparent solid;
    /* border-radius: 5px; */
    align-items: center;
    justify-content: center;
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover {
    border: 1px gray solid;
}

.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
    border-color: #06c;
}

.ql-snow .ql-color-picker,
.ql-snow .ql-icon-picker {
    width: 32px;
    border: 1px transparent solid;
}

.ql-snow .ql-color-picker:hover,
.ql-snow .ql-icon-picker:hover {
    border: 1px gray solid;
}

.ql-snow .ql-icon-picker .ql-picker-item {
    height: 28px;
    width: 28px;
    padding: 2px 4px;
}

/* any drop down */
.ql-snow .ql-picker .ql-picker-label::before,
.ql-snow .ql-picker .ql-picker-item::before {
    height: 100%;
    display: flex;
    align-items: center;
}

.ql-toolbar.ql-snow .ql-font .ql-picker-label,
.ql-toolbar.ql-snow .ql-header .ql-picker-label {
    border: 1px solid gray;
}

.ql-snow .ql-picker-options {
    overflow-y: auto;
    max-height: 500px;
}

/* Header Customization Options */
.ql-snow .ql-picker.ql-header {
    width: 140px;
}

.ql-snow .ql-picker.ql-header .ql-picker-label {
    padding-left: 26px;
}

.ql-snow .ql-picker.ql-header::before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-image: url('../../assets/images/format-size.svg');
    background-repeat: no-repeat;
    background-position: 4px center;
}

.ql-snow .ql-picker.ql-header.ql-expanded::before {
    opacity: 0.3;
}

/* Font Customization Options */
.ql-snow .ql-picker.ql-font {
    width: 200px;
}

.ql-snow .ql-picker.ql-font .ql-picker-label {
    padding-left: 26px;
    /* padding-top: 1px; */
}

.ql-snow .ql-picker.ql-font::before,
#rsvp-font-label::before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-image: url('../../assets/images/format-font.svg');
    background-repeat: no-repeat;
    background-position: 4px center;
}

.ql-snow .ql-picker.ql-font.ql-expanded::before {
    opacity: 0.3;
}

/* Default Font Cover */
.ql-snow .ql-picker.ql-font:not(:has(.ql-active), .ql-expanded)::after {
    content: "Default Font";
    width: calc(100% - 40px);
    height: calc(100% - 2px);
    background-color: white;
    /* background-image: url('../../assets/images/format-size.svg');
    background-repeat: no-repeat;
    background-position: center left; */
    position: absolute;
    left: 26px;
    top: 0;
    pointer-events: none;
    margin: 1px;
    display: flex;
    align-items: center;
    vertical-align: middle;
    /* padding-left: 22px; */
    /* font-size: 14px; */
}




#editor {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

#back-editor {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
}

.ql-editor {
    line-height: 1.2;
    padding: 0px;
    overflow: visible;
    width: 100%;
}

/* Set dropdown font-families */
#toolbar-container .ql-font span[data-label="Helvetica"]::before {
    font-family: "Helvetica";
}


#template-form-css,
#template-form-js {
    font-family: Consolas, monaco, monospace;
}

/* 
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
    content: 'Small';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
    content: 'Medium';
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
    content: 'Big';
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    content: 'Large';
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    content: 'Huge';
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, 
 .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
    content: 'Gigantic';
} */

/* standardize label for size */
.ql-snow .ql-picker.ql-size .ql-picker-label::before {
    font-size: 0.875rem !important;
}

/* standardize label for font */
.ql-snow .ql-picker.ql-font .ql-picker-label::before {
    max-width: 80%;
    overflow: hidden;
    white-space: nowrap !important;
    white-space: -moz-pre-wrap !important;
    /* Firefox */
    white-space: -o-pre-wrap !important;
    /* Opera */
}

.ql-toolbar {
    background-color: white;
}


.tabs {
    margin-left: -20px;
    margin-right: -20px;
}

.tab-page {
    display: none;
    flex-direction: column;
    padding: 0.75rem;
    padding-bottom: 0px;
}

.tab-page.is-active {
    display: flex;
}

#background-modal-body .tab-page {
    height: 500px;
    overflow-y: auto;
}

/* color picker stuff */


.sp-replacer {
    height: 2.2rem;
}

.sp-dd {
    display: flex;
    align-items: center;
    border-left: #aaa 1px solid;
    padding-top: 0.2rem;
}

.sp-palette .sp-thumb-inner {
    border: 1px solid #ddd;
}

.sp-palette .sp-thumb-el {
    width: 24px;
    height: 24px;
}

.modal-card-body #envelope {
    /* margin-top: 15rem !important; */
    filter: drop-shadow(0.1rem 0.1rem 0.75rem #00000044);
}

.modal-card-body #flap:checked~#env-card {
    transform: translateY(-5vh);
    filter: drop-shadow(2px 7px 2px #0000002d);
    transition-delay: 0.1s;
}


#modal-colors-card .modal-card-body .columns {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#envelope-preview {
    padding-top: 13rem;
    padding-bottom: 13rem;
    border-radius: 1rem;
}

.ql-container.ql-snow {
    border: 1px solid transparent;
}

.selected .ql-container.ql-snow {
    border: 1px solid #85858573;
}

.ql-container.ql-snow.remove-border {
    border: 1px solid transparent;
}

#card-options-menu {
    flex-grow: unset;
}

.selected .flip.edit,
.selected .unflip.edit {
    right: 1vw !important;
    bottom: 1vw !important;
}

.ql-editor {
    white-space: unset;
}

.flex-center {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.media-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    overflow-y: auto;
    flex-grow: 1;
    height: 377px;
    margin: 0px -8px;
}

.media-item {
    margin: 0.25rem;
    cursor: pointer;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    /* border-radius: 4px; */
}

.media-item:hover {
    background-color: rgba(0, 102, 204, 0.192);
    border-color: #06c;
    color: white;
}

.media-image {
    width: 128px;
    /* height: 128px; */
    background-size: cover;
}


#unsplash-search-results {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    overflow: auto;
    justify-content: space-around;
    height: 400px;
}

.unsplash-search-result {
    margin: 0.25rem;
    cursor: pointer;
    background-size: cover;
    border-radius: 4px;
}

.unsplash-search-result .attribution:hover {
    background-color: #00000070;
    color: white;
}

.unsplash-search-result .attribution {
    background-color: transparent;
    color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 2px;
    font-size: 0.75rem;
    border: 3px solid transparent;
    border-radius: 4px;
}

.unsplash-search-result .attribution.selected {
    background-color: rgba(0, 102, 204, 0.192);
    border-color: #06c;
}

#unsplash-preview-div {
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    position: relative;
}


#unsplash-preview-img {
    position: absolute;
    left: 0;
    top: 0;
}


#wysiwyg-editor {
    display: flex;
    align-items: center;
}

.bulma-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 8px;
    min-height: 4rem;
}

.bulma-toolbar .button {
    padding-top: 0;
    padding-bottom: 0;
    height: 32px;
    width: 200px;
}

.bulma-toolbar .control,
.bulma-toolbar .field {
    display: flex;
    margin-right: 0.5rem;
    margin-bottom: 0;
    height: 2rem;
    align-items: center;
}

#rsvp-card.selected {
    outline: #06c 0.25rem solid;
}

#main-card.selected {
    outline: #06c 0.25rem solid;
}

#rsvp-font-label {
    width: 200px;
    text-align: left;
    margin-left: 1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#rsvp-font-select {
    max-height: 500px;
    overflow-y: auto;
}

.toolbar-label {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* .toolbar-label:not(:first-child) {
    margin-left: 1rem;
} */

/* load spinner */
.lds-facebook {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #dbdbdb;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}

/* end load spinner */


/* tooltips */
.tutorial-cover {
    z-index: 10000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.darken {
    background-color: rgba(0, 0, 0, 0.4);
}

[data-tutorial-top]::before {
    content: ' ';
    position: absolute;
    top: -1.3rem;
    left: 48%;
    width: 2%;
    height: 3rem;
    border: 1rem solid white;
    border-color: white transparent transparent transparent;
    z-index: 502;

}
[data-tutorial-top]::after {
    display: flex;
    align-items: center;
    justify-content: center;
    content: attr(data-tutorial-top);
    position: absolute;
    top: -4.8rem;
    left: 15%;
    width: 70%;
    height: 3.5rem;
    background-color: white;
    font-weight: bold;
    filter: drop-shadow(2px 4px 6px black);
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    animation: pulse 2s infinite;
    padding: 10px;
    text-align: center;
    z-index: 501;
}

[data-tutorial-bottom]::before {
    content: ' ';
    position: absolute;
    top: 2.5rem;
    width: 2%;
    height: 3rem;
    border: 1rem solid white;
    border-color: transparent transparent white transparent;
    z-index: 1;
    pointer-events: none;
    z-index: 502;
}
[data-tutorial-bottom]::after {
    display: flex;
    align-items: center;
    justify-content: center;
    content: attr(data-tutorial-bottom);
    position: absolute;
    top: 5.5rem;
    /* left: 15%; */
    /* width: 70%; */
    height: 3.5rem;
    background-color: white;
    font-weight: bold;
    filter: drop-shadow(2px 4px 6px black);
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    animation: pulse 2s infinite;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    pointer-events: none;
    z-index: 501;
    color: rgba(0, 0, 0, 0.7);
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

/* end toolips */


@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.apply-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}


@media only screen and (max-width: 600px) {

    [data-tutorial-top]::after {
        left: 5%;
        width: 90%;
    }
    [data-tutorial-bottom]::after {
        white-space: break-spaces;
        width: 50vw;
        height: unset;
    }


    /* .navbar-link {
        border-bottom: 1px solid whitesmoke;
    } */
    .navbar-dropdown {
        padding-bottom: 0px !important;
    }

    .navbar-divider {
        display: block !important;
        /* background-color: transparent !important; */
        height: 1px !important;
    }

    #wysiwyg-editor {
        padding-left: 0.2rem;
        padding-bottom: 0.2rem;
    }

    /* .ql-toolbar {
        height: 7rem;
    } */

    .flip.edit,
    .unflip.edit {
        right: 0.25rem !important;
        bottom: 0.25rem !important;
    }

    .ql-toolbar.ql-snow {
        padding-left: 12px !important;
    }

    #ui-layer {
        justify-content: flex-end !important;
    }


    #envelope-preview {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }



    .sp-container {
        flex-direction: column;
        align-items: center;
    }

    .sp-palette-container {
        border-right: unset;
        /* border-bottom: solid 1px #ccc; */
    }

    .navbar-link:not(.is-arrowless)::after {
        border-color: transparent !important;
        margin-top: -0.375em;
        right: 1.125em;
    }

    .navbar.is-fixed-top .navbar-menu,
    .navbar.is-fixed-top-touch .navbar-menu {
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 3.25rem);
        overflow: auto;
        border-bottom: 1px whitesmoke solid;
    }

}



/* DESKTOP ONLY */
@media only screen and (min-width: 601px) {

    .modal.desktop-side-view {
        padding: 0 !important;
        flex-direction: unset;
        align-items: unset;
        display: flex;
        pointer-events: none;
    }

    .modal.desktop-side-view.is-active {
        pointer-events: auto;
    }

    .modal.desktop-side-view .modal-background {
        background-color: unset;
    }

    .modal.desktop-side-view .modal-card {
        position: absolute;
        height: 100vh;
        max-height: unset;
        left: -640px;
        transition: transform 0.1s, opacity 0.1s, left 0.1s ease-out;
    }

    .modal.desktop-side-view.is-active .modal-card {
        left: 0;
        filter: drop-shadow(0px 0px 40px rgba(10, 10, 10, 0.8));
    }

    .modal.desktop-side-view .modal-card-head {
        border-top-left-radius: 0px;
    }

    .modal.desktop-side-view .modal-card-foot {
        border-bottom-left-radius: 0px;
    }



    #card-layer {
        transition: margin 0.1s ease-out, transform 0.1s ease-out;
    }

    .card-shift {
        /* margin-left: 300px; */
        /* margin-right: -300px; */
        transform: translateX(300px);
    }

}