/*==========================================================
STORYBOOK VOICES
PUZZLE BUILDER
CLEAN CSS REBUILD

puzzle.css

Desktop:
Left Library | Stage | Right Options

Phone:
Header | Navigator | Stage | Toolbar | Library | Options

No Flexbox
No Grid
==========================================================*/


/*######################################################################
BEGIN CSS SECTION 01 — CUSTOM FONT
######################################################################*/

@font-face{

    font-family:"Monster Bash";

    src:url("../fonts/MonsterBash.otf")
        format("opentype");

    font-display:swap;

}




/*######################################################################
END CSS SECTION 01 — CUSTOM FONT
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 02 — GLOBAL
######################################################################*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


html,
body{

    width:100%;

    min-height:100%;

}


body{

    overflow:hidden;

    font-family:"Segoe UI",Arial,sans-serif;

    background:

        radial-gradient(
            circle at top left,
            rgba(255,214,230,.65),
            transparent 40%
        ),

        radial-gradient(
            circle at top right,
            rgba(205,235,255,.60),
            transparent 42%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(225,255,220,.55),
            transparent 38%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(255,247,205,.60),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #fbf8f2 0%,
            #f8f6f3 25%,
            #f5fbff 50%,
            #fffdf8 75%,
            #f9f7f3 100%
        );

    background-attachment:fixed;

}




/*######################################################################
END CSS SECTION 02 — GLOBAL
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 03 — PUZZLE ROOM
######################################################################*/

#puzzleRoom{

    position:relative;

    width:100vw;

    height:100vh;

    overflow:hidden;

}




/*######################################################################
END CSS SECTION 03 — PUZZLE ROOM
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 04 — HEADER
######################################################################*/

#headerBar{

    position:absolute;

    left:20px;

    top:20px;

    width:calc(100% - 40px);

    height:70px;

    background:rgba(255,255,255,.42);

    backdrop-filter:blur(26px);

    -webkit-backdrop-filter:blur(26px);

    border:1px solid rgba(255,255,255,.70);

    border-radius:28px;

    box-shadow:

        0 20px 45px rgba(90,90,90,.10),

        inset 0 1px rgba(255,255,255,.75);

    z-index:1000;

}


#roomTitle{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    width:calc(100% - 420px);

    overflow:hidden;

    color:#34504d;

    font-size:34px;

    font-weight:700;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;

}


#btnHome{

    position:absolute;

    right:20px;

    top:12px;

    width:170px;

    min-width:170px;

    height:46px;

    padding:0;

    margin:0;

    z-index:10;

}




/*######################################################################
END CSS SECTION 04 — HEADER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 05 — WORKSPACE
######################################################################*/

#workspace{

    position:absolute;

    left:20px;

    top:110px;

    width:calc(100% - 40px);

    height:calc(100% - 210px);

}




/*######################################################################
END CSS SECTION 05 — WORKSPACE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 06 — LEFT LIBRARY
######################################################################*/

#libraryPanel{

    position:absolute;

    left:0;

    top:0;

    width:260px;

    height:100%;

    min-height:0;

    padding:20px;

    overflow-x:hidden;

    overflow-y:auto;

    overscroll-behavior:contain;

    -webkit-overflow-scrolling:touch;

    touch-action:pan-y;

    background:rgba(255,255,255,.28);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.45);

    border-radius:24px;

    z-index:300;

}


#libraryPanel h2{

    margin:0 0 18px;

    color:#40615d;

    font-size:25px;

    line-height:1.2;

    text-align:center;

}


.libraryButton{

    position:relative;

    display:block;

    width:100%;

    min-width:0;

    height:46px;

    margin:0 0 12px;

    padding:0 10px;

    border:1px solid rgba(255,255,255,.78);

    border-radius:14px;

    background:rgba(255,255,255,.55);

    color:#405f58;

    cursor:pointer;

    font-family:inherit;

    font-size:18px;

    font-weight:600;

    line-height:44px;

    text-align:center;

    transition:
        transform .2s,
        background .2s;

}


.libraryButton:hover{

    transform:translateY(-2px);

    background:rgba(255,255,255,.92);

}


.libraryButton:disabled{

    cursor:default;

    opacity:.45;

    transform:none;

}


.libraryDivider{

    width:100%;

    margin:18px 0 14px;

    border:0;

    border-top:1px solid rgba(72,99,93,.35);

}


.librarySectionTitle{

    width:100%;

    margin:0 0 12px;

    color:#48635d;

    font-size:17px;

    font-weight:700;

    text-align:center;

}




/*######################################################################
END CSS SECTION 06 — LEFT LIBRARY
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 07 — CENTER STAGE PANEL
######################################################################*/

#stagePanel{

    position:absolute;

    left:280px;

    right:320px;

    top:0;

    bottom:58px;

    overflow:hidden;

    z-index:200;

}


#storyStage{

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:100%;

    overflow:hidden;

    background:transparent;

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border:3px solid #6f9187;

    border-radius:38px;

    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

/*==========================================================
NEW NUMBERED REPAIR BLOCK

CSS SECTION 20 — BACKGROUND COLOR PICKER
==========================================================*/



/*######################################################################
END CSS SECTION 07 — CENTER STAGE PANEL
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 08 — BACKGROUND COLOR PICKER
######################################################################*/

#backgroundColor{

    width:100%;

    height:48px;

    padding:4px;

    border:1px solid rgba(111,145,135,.55);

    border-radius:14px;

    background:rgba(255,255,255,.72);

    cursor:pointer;

}



/*######################################################################
END CSS SECTION 08 — BACKGROUND COLOR PICKER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 09 — EFFECT ORDER AND FLIP BUTTONS
######################################################################*/

#mirrorImageButton,
#moveEffectForwardButton,
#moveEffectBackwardButton{

    width:100%;

    min-height:46px;

    margin:6px 0;

}

#effectLayerPosition{

    margin:4px 0 10px;

    color:#48635d;

    font-size:16px;

    line-height:1.35;

}




/*######################################################################
END CSS SECTION 09 — EFFECT ORDER AND FLIP BUTTONS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 10 — STAGE MEDIA AND SHARED LAYER ORDER
######################################################################*/

#backgroundVideo,
#backgroundImage{

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:100%;

    object-fit:cover;

}


#backgroundVideo{

    z-index:1;

}


#backgroundImage{

    z-index:2;

}


#textLayer,
#imageLayer,
#effectsLayer,
#puzzleCanvas,
#decorationLayer,
#foregroundLayer{

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:100%;

}


#textLayer{

    z-index:auto;

    pointer-events:none;

}


#imageLayer{

    z-index:auto;

    pointer-events:none;

}


#effectsLayer{

    z-index:60;

    overflow:hidden;

    pointer-events:none;

}


#puzzleCanvas{

    z-index:70;

    pointer-events:none;

}


#decorationLayer{

    z-index:80;

    pointer-events:none;

}


#foregroundLayer{

    z-index:90;

    pointer-events:none;

}




/*######################################################################
END CSS SECTION 10 — STAGE MEDIA AND SHARED LAYER ORDER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 11 — USER IMAGE OBJECTS
######################################################################*/

.userImageObject{

    position:absolute;

    width:auto;

    height:auto;

    max-width:none;

    max-height:none;

    cursor:grab;

    pointer-events:auto;

    touch-action:none;

    transform-origin:center center;

    user-select:none;

    -webkit-user-select:none;

    -webkit-user-drag:none;

}


.userImageObject:active{

    cursor:grabbing;

}




/*######################################################################
END CSS SECTION 11 — USER IMAGE OBJECTS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 12 — RIGHT OPTIONS PANEL
######################################################################*/

#optionsPanel{

    position:absolute;

    right:0;

    top:0;

    width:300px;

    height:100%;

    min-height:0;

    padding:22px;

    overflow-x:hidden;

    overflow-y:auto;

    overscroll-behavior:contain;

    -webkit-overflow-scrolling:touch;

    background:rgba(255,255,255,.28);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.45);

    border-radius:24px;

    z-index:300;

}


#optionsPanel h2{

    margin:0 0 20px;

    color:#3f5e59;

    font-size:25px;

    text-align:center;

}


#optionsPanel h3{

    margin:18px 0 10px;

    color:#4b6c67;

}


#optionsPanel h4{

    margin:12px 0 8px;

    color:#4b6c67;

}


#optionsPanel label{

    display:block;

    margin:0 0 12px;

    color:#48635d;

}


#optionsPanel > button,
.shapeButton,
#clearBackground,
#clearEffectsButton,
#createPuzzle,
#previewPuzzle,
#sendTracks{

    display:block;

    width:100%;

    min-width:0;

    height:44px;

    margin:10px 0 0;

    padding:0 10px;

    border:1px solid rgba(255,255,255,.75);

    border-radius:14px;

    background:rgba(255,255,255,.78);

    color:#405f58;

    cursor:pointer;

    font-family:inherit;

    font-size:17px;

}


#optionsPanel > button:hover,
.shapeButton:hover,
#clearBackground:hover,
#clearEffectsButton:hover,
#createPuzzle:hover,
#previewPuzzle:hover,
#sendTracks:hover{

    background:#fff;

}




/*######################################################################
END CSS SECTION 12 — RIGHT OPTIONS PANEL
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 13 — LAYER NAVIGATOR
######################################################################*/

#layerNavigator{

    position:relative;

    width:220px;

    height:90px;

    margin:8px auto 18px;

    background:rgba(255,255,255,.42);

    backdrop-filter:blur(24px);

    -webkit-backdrop-filter:blur(24px);

    border:1px solid rgba(255,255,255,.75);

    border-radius:24px;

    box-shadow:

        0 14px 32px rgba(75,85,100,.12),

        inset 0 1px rgba(255,255,255,.80);

}


#previousLayerButton,
#nextLayerButton{

    position:absolute;

    top:24px;

    width:42px;

    height:42px;

    border:0;

    border-radius:17px;

    background:rgba(255,255,255,.72);

    color:#315b4c;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    box-shadow:

        0 8px 18px rgba(70,85,95,.13),

        inset 0 1px rgba(255,255,255,.95);

}


#previousLayerButton{

    left:10px;

}


#nextLayerButton{

    right:10px;

}


#selectedLayerName{

    position:absolute;

    left:60px;

    top:24px;

    width:100px;

    height:42px;

    overflow:hidden;

    border-radius:16px;

    background:rgba(49,91,76,.10);

    color:#294f42;

    font-size:15px;

    font-weight:700;

    line-height:42px;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;

}




/*######################################################################
END CSS SECTION 13 — LAYER NAVIGATOR
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 14 — STORYBOOK MAGIC
######################################################################*/

#magicPanel{

    position:relative;

    width:100%;

    margin-top:15px;

}


#effectSelector{

    position:relative;

    width:100%;

    height:54px;

    margin-bottom:18px;

}


#effectSelector button{

    position:absolute;

    top:8px;

    width:86px;

    height:38px;

    padding:0 6px;

    border:0;

    border-radius:14px;

    background:rgba(255,255,255,.78);

    cursor:pointer;

}


#previousEffect{

    left:0;

}


#nextEffect{

    right:0;

}


#currentEffect{

    position:absolute;

    left:92px;

    right:92px;

    top:0;

    height:54px;

    overflow:hidden;

    font-size:16px;

    font-weight:700;

    line-height:54px;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;

}


#magicPanel input[type="range"]{

    width:100%;

}


#magicPanel input[type="color"]{

    width:100%;

    height:42px;

    border:0;

    border-radius:12px;

}


#magicPanel hr{

    margin:18px 0;

    border:0;

    border-top:1px solid rgba(0,0,0,.12);

}




/*######################################################################
END CSS SECTION 14 — STORYBOOK MAGIC
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 15 — GLASS BUTTONS
######################################################################*/

.storybookButton{

    position:relative;

    overflow:hidden;

    min-width:150px;

    height:46px;

    padding:0 20px;

    border:1px solid rgba(255,255,255,.92);

    border-radius:999px;

    color:#4b5658;

    cursor:pointer;

    font-family:inherit;

    font-size:18px;

    font-weight:600;

    letter-spacing:.25px;

    transition:
        transform .25s,
        box-shadow .25s,
        filter .25s;

    box-shadow:

        inset 0 2px 0 rgba(255,255,255,.95),

        inset 0 10px 18px rgba(255,255,255,.28),

        0 10px 24px rgba(130,140,150,.16);

}


.storybookButton::before{

    content:"";

    position:absolute;

    left:10px;

    top:7px;

    width:78%;

    height:42%;

    border-radius:999px;

    background:

        linear-gradient(
            180deg,
            rgba(255,255,255,.82),
            rgba(255,255,255,.10)
        );

    pointer-events:none;

}


.storybookButton::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:999px;

    background:

        radial-gradient(
            circle at 22% 22%,
            rgba(255,255,255,.70),
            transparent 20%
        ),

        radial-gradient(
            circle at 75% 76%,
            rgba(255,255,255,.16),
            transparent 46%
        );

    pointer-events:none;

}


.storybookButton:hover{

    transform:translateY(-2px);

    box-shadow:

        inset 0 2px 0 rgba(255,255,255,.96),

        inset 0 12px 22px rgba(255,255,255,.34),

        0 16px 30px rgba(120,130,145,.18);

}


.storybookButton:active{

    transform:translateY(1px);

}


.storybookButton:disabled{

    cursor:default;

    opacity:.45;

    transform:none;

}


.storybookCream{

    background:
        linear-gradient(
            180deg,
            #fffdf9,
            #f8eed8,
            #efe1b9
        );

}


.storybookPeach{

    background:
        linear-gradient(
            180deg,
            #fff8f4,
            #ffe0d1,
            #f6c7b3
        );

}


.storybookMint{

    background:
        linear-gradient(
            180deg,
            #f8fff9,
            #ddf4e8,
            #c0e2d1
        );

}


.storybookSage{

    background:
        linear-gradient(
            180deg,
            #fcfff9,
            #e3efd5,
            #cdddb7
        );

}




/*######################################################################
END CSS SECTION 15 — GLASS BUTTONS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 16 — PROJECT TOOLBAR
######################################################################*/

#toolbar{

    position:absolute;

    left:50%;

    bottom:58px;

    width:620px;

    height:44px;

    transform:translateX(-50%);

    z-index:500;

}


#toolbar .storybookButton{

    position:absolute;

    top:0;

    width:145px;

    min-width:145px;

    height:40px;

    padding:0 8px;

    font-size:16px;

}


#saveButton{

    left:0;

}


#exportButton{

    left:155px;

}


#previewButton{

    left:310px;

}


#resetButton{

    left:465px;

}




/*######################################################################
END CSS SECTION 16 — PROJECT TOOLBAR
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 17 — STATUS BAR
######################################################################*/

#statusBar{

    position:absolute;

    left:20px;

    bottom:15px;

    width:calc(100% - 40px);

    height:34px;

    padding:0 20px;

    overflow:hidden;

    border-radius:18px;

    background:rgba(255,255,255,.22);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    color:#35514e;

    font-size:17px;

    line-height:34px;

    text-overflow:ellipsis;

    white-space:nowrap;

}




/*######################################################################
END CSS SECTION 17 — STATUS BAR
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 18 — IMAGE CONTROLS
######################################################################*/

#imageControls,
#mp3Controls{

    position:relative;

    left:auto;

    top:auto;

    width:100%;

    height:auto;

    margin:0 0 14px;

    padding:4px 0 2px;

    clear:both;

}


#selectedImageFileName,
#mp3FileName{

    width:100%;

    margin:0 0 12px;

    overflow:hidden;

    color:#48635d;

    font-size:15px;

    line-height:1.35;

    text-overflow:ellipsis;

    white-space:nowrap;

}


#imageControls label,
#mp3Controls label{

    display:block;

    margin:8px 0 5px;

    color:#48635d;

    font-size:16px;

    font-weight:700;

}


#imageControls input[type="range"],
#mp3Controls input[type="range"]{

    display:inline-block;

    width:76%;

    margin:0 2% 10px 0;

    vertical-align:middle;

}


#imageControls span,
#mp3Controls span{

    display:inline-block;

    width:20%;

    color:#48635d;

    font-size:15px;

    text-align:right;

    vertical-align:middle;

}


/*######################################################################
########################################################################

             STORYBOOK VOICES — COMPLETE TEXT CSS

CTRL+F CONTENTS

CSS SECTION 01 — COMPLETE TEXT CONTROL PANEL
CSS SECTION 02 — TEXT AND LETTER NAVIGATORS
CSS SECTION 03 — FONT BROWSER
CSS SECTION 04 — LETTER AND WHOLE-TEXT MOVE CONTROLS
CSS SECTION 05 — COLOR AND GRADIENT CONTROLS
CSS SECTION 06 — PATH BUTTONS AND PATH CONTROLS
CSS SECTION 07 — SWATCH CONTROLS
CSS SECTION 08 — GLOW, SHADOW, OUTLINE AND DEPTH CONTROLS
CSS SECTION 09 — TEXT OBJECT ON THE STAGE
CSS SECTION 10 — CENTER GUIDES
CSS SECTION 11 — PATH GUIDE AND INDIVIDUAL LETTERS
CSS SECTION 12 — VISIBLE TYPING CARET AND RESIZE HANDLE

########################################################################
######################################################################*/


/*######################################################################
END CSS SECTION 18 — IMAGE CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 19 — COMPLETE TEXT CONTROL PANEL
######################################################################*/

#textControls{

    position:relative;

    left:auto;

    top:auto;

    width:100%;

    height:auto;

    min-height:0;

    padding:16px 0;

    overflow:visible;

}


#textControls h3{

    margin:0 0 14px;

    color:#46645e;

    font-size:21px;

    text-align:center;

}


#textControls h4{

    margin:18px 0 9px;

    color:#46645e;

    font-size:18px;

    text-align:center;

}


#textControls h5{

    margin:12px 0 8px;

    color:#46645e;

    font-size:16px;

    text-align:center;

}


#textControls label{

    display:block;

    margin:13px 0 5px;

    color:#46645e;

    font-size:15px;

    font-weight:700;

}


#textControls output{

    float:right;

    margin-top:-24px;

    color:#46645e;

    font-size:14px;

    font-weight:700;

}


#textControls input[type="range"]{

    width:calc(100% - 54px);

    margin:4px 0 3px;

    accent-color:#79a99f;

}


#textControls input[type="color"]{

    width:54px;

    height:38px;

    padding:2px;

    border:1px solid rgba(255,255,255,.92);

    border-radius:10px;

    background:rgba(255,255,255,.74);

}


#textControls button{

    font-family:inherit;

}


#textControls button:disabled,
#textControls input:disabled,
#textControls textarea:disabled{

    cursor:default;

    opacity:.42;

}




/*######################################################################
END CSS SECTION 19 — COMPLETE TEXT CONTROL PANEL
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 20 — TEXT NAVIGATORS
######################################################################*/



/*######################################################################
END CSS SECTION 20 — TEXT NAVIGATORS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 21 — TEXT AND LETTER NAVIGATORS
######################################################################*/

#textLayerNavigator,
#letterNavigator{

    position:relative;

    width:100%;

    height:46px;

    margin:9px 0;

    border-radius:15px;

    background:rgba(255,255,255,.58);

}


#textLayerNavigator button,
#letterNavigator button{

    position:absolute;

    top:5px;

    width:38px;

    height:36px;

    border:0;

    border-radius:12px;

    background:rgba(255,255,255,.82);

    color:#43685f;

    font-size:18px;

}


#textLayerNavigator button:first-child,
#letterNavigator button:first-child{

    left:5px;

}


#textLayerNavigator button:last-child,
#letterNavigator button:last-child{

    right:5px;

}


#selectedTextLayerName,
#selectedLetterName{

    display:block;

    padding:13px 45px 0;

    overflow:hidden;

    color:#405f58;

    font-size:14px;

    font-weight:700;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;

}




/*######################################################################
END CSS SECTION 21 — TEXT AND LETTER NAVIGATORS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 22 — FONT BROWSER
######################################################################*/

#openFontBrowserButton,
#addTextLayerButton{

    width:100%;

    height:48px;

    margin:5px 0;

    border:1px solid rgba(255,255,255,.85);

    border-radius:14px;

    background:rgba(255,255,255,.62);

    color:#405f58;

    font-size:17px;

    font-weight:700;

}


#fontBrowser{

    position:relative;

    width:100%;

    max-height:280px;

    margin:5px 0 10px;

    overflow-y:auto;

    border-radius:14px;

    background:rgba(255,255,255,.92);

    box-shadow:0 8px 24px rgba(72,99,93,.18);

    z-index:100;

}


.fontBrowserClosed{

    display:none;

}


.fontBrowserOpen{

    display:block;

}


.fontChoice{

    display:block;

    width:100%;

    min-height:48px;

    padding:7px 10px;

    border:0;

    border-bottom:1px solid rgba(90,125,117,.12);

    background:transparent;

    color:#3e5852;

    font-size:21px;

    text-align:left;

}




/*######################################################################
END CSS SECTION 22 — FONT BROWSER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 23 — TEXT MOVEMENT CONTROLS
######################################################################*/



/*######################################################################
END CSS SECTION 23 — TEXT MOVEMENT CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 24 — LETTER AND WHOLE-TEXT MOVE CONTROLS
######################################################################*/

#textMoveControls,
#letterMoveControls{

    position:relative;

    width:174px;

    height:126px;

    margin:13px auto;

    padding:0;

    border:0;

}


#textMoveControls legend,
#letterMoveControls legend{

    width:100%;

    padding:0;

    color:#46645e;

    font-size:15px;

    font-weight:700;

    text-align:center;

}


#textMoveControls button,
#letterMoveControls button{

    position:absolute;

    width:48px;

    height:38px;

    border:1px solid rgba(255,255,255,.88);

    border-radius:12px;

    background:rgba(255,255,255,.68);

    color:#41655d;

    font-size:18px;

}


#moveTextUpButton,
#moveLetterUpButton{

    left:63px;

    top:24px;

}


#moveTextLeftButton,
#moveLetterLeftButton{

    left:8px;

    top:65px;

}


#moveTextRightButton,
#moveLetterRightButton{

    right:8px;

    top:65px;

}


#moveTextDownButton,
#moveLetterDownButton{

    left:63px;

    top:65px;

}




/*######################################################################
END CSS SECTION 24 — LETTER AND WHOLE-TEXT MOVE CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 25 — TEXT COLOR AND PATH CONTROLS
######################################################################*/



/*######################################################################
END CSS SECTION 25 — TEXT COLOR AND PATH CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 26 — COLOR AND GRADIENT CONTROLS
######################################################################*/

.textModeButton{

    width:48%;

    height:42px;

    margin:8px 1% 6px;

    border:1px solid rgba(255,255,255,.88);

    border-radius:14px;

    background:rgba(255,255,255,.65);

    color:#405f58;

    font-weight:700;

}


.textModeSelected{

    border-color:#79a99f;

    background:

        linear-gradient(
            180deg,
            rgba(255,255,255,.93),
            rgba(184,229,219,.82)
        );

}




/*######################################################################
END CSS SECTION 26 — COLOR AND GRADIENT CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 27 — PATH BUTTONS AND PATH CONTROLS
######################################################################*/




/*######################################################################
END CSS SECTION 27 — PATH BUTTONS AND PATH CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 28 — SHAPE BUTTONS
######################################################################*/

#textPathButtons{

    position:relative;

    width:100%;

    padding-bottom:4px;

}


#textPathButtons button{

    display:block;

    width:100%;

    height:48px;

    margin:7px 0;

    border:1px solid rgba(255,255,255,.88);

    border-radius:14px;

    background:rgba(255,255,255,.65);

    color:#405f58;

    font-size:17px;

    font-weight:700;

}


#textPathButtons button.textPathSelected{

    border-color:#6f9f95;

    background:

        linear-gradient(
            180deg,
            rgba(255,255,255,.96),
            rgba(184,229,219,.88)
        );

    box-shadow:

        0 3px 10px
        rgba(76,119,110,.16);

}




/*######################################################################
END CSS SECTION 28 — SHAPE BUTTONS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 29 — LARGE PATH SLIDERS
######################################################################*/

#textPathPosition,
#textPathFit{

    width:100%;

    height:34px;

    margin:2px 0 8px;

    accent-color:#78ada3;

    cursor:pointer;

}




/*######################################################################
END CSS SECTION 29 — LARGE PATH SLIDERS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 30 — CHROME, EDGE AND SAFARI SLIDER LINE
######################################################################*/

#textPathPosition::-webkit-slider-runnable-track,
#textPathFit::-webkit-slider-runnable-track{

    height:10px;

    border-radius:10px;

    background:

        linear-gradient(
            90deg,
            #9bd1c6,
            #78ada3,
            #405f58
        );

    box-shadow:

        inset 0 1px 2px
        rgba(32,69,62,.20),

        0 1px 0
        rgba(255,255,255,.85);

}




/*######################################################################
END CSS SECTION 30 — CHROME, EDGE AND SAFARI SLIDER LINE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 31 — CHROME, EDGE AND SAFARI SLIDER HANDLE
######################################################################*/

#textPathPosition::-webkit-slider-thumb,
#textPathFit::-webkit-slider-thumb{

    width:25px;

    height:25px;

    margin-top:-8px;

    border:2px solid #ffffff;

    border-radius:50%;

    background:#78ada3;

    box-shadow:

        0 2px 6px
        rgba(45,79,72,.28);

    cursor:pointer;

    -webkit-appearance:none;

}




/*######################################################################
END CSS SECTION 31 — CHROME, EDGE AND SAFARI SLIDER HANDLE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 32 — FIREFOX SLIDER LINE
######################################################################*/

#textPathPosition::-moz-range-track,
#textPathFit::-moz-range-track{

    height:10px;

    border:0;

    border-radius:10px;

    background:

        linear-gradient(
            90deg,
            #9bd1c6,
            #78ada3,
            #405f58
        );

}




/*######################################################################
END CSS SECTION 32 — FIREFOX SLIDER LINE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 33 — FIREFOX SLIDER HANDLE
######################################################################*/

#textPathPosition::-moz-range-thumb,
#textPathFit::-moz-range-thumb{

    width:23px;

    height:23px;

    border:2px solid #ffffff;

    border-radius:50%;

    background:#78ada3;

    box-shadow:

        0 2px 6px
        rgba(45,79,72,.28);

    cursor:pointer;

}




/*######################################################################
END CSS SECTION 33 — FIREFOX SLIDER HANDLE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 34 — REVERSE AND CIRCLE-SIDE BUTTONS
######################################################################*/

#reverseTextPathButton,
#circleTextSideButton{

    width:100%;

    height:45px;

    margin:6px 0;

    font-size:16px;

}


/*==========================================================
ARCH BEND
Only appears while Arch is selected.
==========================================================*/

#archBendControls{

    display:none;

}


/*==========================================================
SOLID COLOR CONTROL
Existing matching text control.
==========================================================*/

#solidTextColorControls{

    padding:6px 0;

}


/*==========================================================
GRADIENT CONTROL
Existing matching text control.
==========================================================*/

#gradientTextControls{

    margin-top:8px;

    padding:12px;

    border-radius:16px;

    background:rgba(255,255,255,.48);

}


.gradientTextControlsHidden{

    display:none;

}


#gradientTextControls output{

    margin-top:-25px;

}


/*==========================================================
TEXT LAYER ORDER BUTTONS
Existing matching text controls.
==========================================================*/

#moveTextBackwardButton,
#moveTextForwardButton,
#deleteTextLayerButton{

    width:100%;

    height:40px;

    margin:6px 0 0;

}


/*==========================================================
SWATCH HELP
Existing matching text control.
==========================================================*/

.textSwatchHelp{

    margin:0 0 10px;

    color:#5b6f6a;

    font-size:14px;

    line-height:1.35;

    text-align:center;

}




/*######################################################################
END CSS SECTION 34 — REVERSE AND CIRCLE-SIDE BUTTONS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 35 — SWATCH CONTROLS
######################################################################*/

#textSwatchPanel{

    position:relative;

    width:100%;

    padding:2px 0 4px;

}


.textSwatchButton{

    position:relative;

    display:block;

    width:100%;

    height:50px;

    margin:0 0 9px;

    padding:0;

    overflow:hidden;

    border:2px solid transparent;

    border-radius:14px;

    background:rgba(255,255,255,.62);

    cursor:pointer;

}


.textSwatchButton.textSwatchSelected{

    border-color:#6f9187;

    box-shadow:0 0 0 2px rgba(111,145,135,.16);

}


.textSwatchPreview{

    position:absolute;

    left:8px;

    top:7px;

    width:64px;

    height:34px;

    border:1px solid rgba(72,99,93,.20);

    border-radius:10px;

    background-position:center;

    background-repeat:repeat;

    background-size:cover;

}


.textSwatchName{

    position:absolute;

    left:84px;

    right:10px;

    top:0;

    height:48px;

    color:#3f625a;

    font-size:16px;

    font-weight:700;

    line-height:48px;

    text-align:left;

}


.textSwatchNone{

    background:

        linear-gradient(
            45deg,
            #ffffff 25%,
            #e6ecea 25% 50%,
            #ffffff 50% 75%,
            #e6ecea 75%
        );

    background-size:14px 14px;

}


#textSwatchSize{

    width:100%;

}




/*######################################################################
END CSS SECTION 35 — SWATCH CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 36 — TEXT EFFECT CONTROLS
######################################################################*/



/*######################################################################
END CSS SECTION 36 — TEXT EFFECT CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 37 — GLOW, SHADOW, OUTLINE AND DEPTH CONTROLS
######################################################################*/

.textEffectSection{

    position:relative;

    width:100%;

    margin:12px 0;

    padding:12px;

    border-radius:16px;

    background:rgba(255,255,255,.42);

}


.textEffectButton,
.textEffectChoices button{

    display:inline-block;

    width:47%;

    min-width:0;

    height:40px;

    margin:4px 1%;

    padding:0 6px;

    border:1px solid rgba(255,255,255,.85);

    border-radius:12px;

    background:rgba(255,255,255,.68);

    color:#405f58;

    font-size:14px;

    font-weight:700;

}


.textEffectChoices{

    position:relative;

    width:100%;

}


.textEffectSelected{

    border:3px solid #2f7468;

    background:

        linear-gradient(
            180deg,
            #eafff8,
            #8fd8c8
        );

    color:#173f38;

    box-shadow:
        0 0 0 3px rgba(255,255,255,.95),
        0 0 0 6px rgba(47,116,104,.28),
        inset 0 2px 3px rgba(255,255,255,.95),
        0 5px 10px rgba(47,116,104,.22);

    transform:translateY(-1px);

}




/*######################################################################
END CSS SECTION 37 — GLOW, SHADOW, OUTLINE AND DEPTH CONTROLS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 38 — TEXT OBJECT ON THE STAGE
######################################################################*/

.storybookTextLayer{

    position:absolute;

    left:0;

    top:0;

    width:max-content;

    min-width:36px;

    max-width:94%;

    padding:8px 10px;

    overflow:visible;

    border:0;

    background:transparent;

    color:#6f4b91;

    cursor:move;

    text-align:center;

    touch-action:none;

    transform-origin:center center;

    user-select:none;

    -webkit-user-select:none;

    white-space:pre-wrap;

    z-index:30;

}


/*==========================================================
SHARED STAGE CENTER
The same exact center is used by text and puzzle placement.
Guides appear only while an object is being moved or centered.
==========================================================*/



/*######################################################################
END CSS SECTION 38 — TEXT OBJECT ON THE STAGE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 39 — CENTER GUIDES
######################################################################*/

.stageCenterGuide{

    position:absolute;

    display:none;

    pointer-events:none;

    z-index:9990;

    background:rgba(54,142,185,.68);

    box-shadow:0 0 0 1px rgba(255,255,255,.82);

}


#stageCenterVerticalGuide{

    left:50%;

    top:0;

    width:1px;

    height:100%;

}


#stageCenterHorizontalGuide{

    left:0;

    top:50%;

    width:100%;

    height:1px;

}


#stageCenterPoint{

    position:absolute;

    left:50%;

    top:50%;

    display:none;

    width:15px;

    height:15px;

    border:2px solid rgba(54,142,185,.88);

    border-radius:50%;

    background:rgba(255,255,255,.84);

    transform:translate(-50%,-50%);

    pointer-events:none;

    z-index:9991;

}


#storyStage.stageCenterX #stageCenterVerticalGuide,
#storyStage.stageCenterY #stageCenterHorizontalGuide,
#storyStage.stageCenterX.stageCenterY #stageCenterPoint{

    display:block;

}


#textCenterControls{

    position:relative;

    width:100%;

    margin:12px 0;

    padding:8px 4px 4px;

    border:0;

}


#textCenterControls button{

    position:relative;

    width:31%;

    min-height:42px;

    margin:3px .5%;

    padding:4px;

    border:1px solid rgba(255,255,255,.88);

    border-radius:12px;

    background:rgba(255,255,255,.68);

    color:#405f58;

    font-size:13px;

    font-weight:700;

}




/*######################################################################
END CSS SECTION 39 — CENTER GUIDES
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 40 — PATH GUIDE AND INDIVIDUAL LETTERS
######################################################################*/

.storybookTextContent{

    display:block;

    min-width:1ch;

    outline:none;

}


.storybookTextLayer.textLayerSelected{

    outline:2px solid rgba(70,132,186,.95);

    outline-offset:3px;

}


.storybookTextLayer.textLayerEditing{

    cursor:text;

}


.storybookTextLayer.textLayerEditing .storybookTextContent{

    min-width:80px;

    background:rgba(255,255,255,.16);

}


.textPathGuide{

    position:absolute;

    left:0;

    top:0;

    display:block;

    width:100%;

    height:100%;

    overflow:visible;

    opacity:0;

    pointer-events:none;

}


.storybookTextLayer.textLayerSelected .textPathGuide{

    opacity:1;

}


.textPathGuide path{

    fill:none;

    stroke:rgba(79,143,196,.55);

    stroke-width:2;

    stroke-dasharray:7 7;

    vector-effect:non-scaling-stroke;

}


.storybookTextCharacter{

    position:relative;

    display:inline-block;

    transform-origin:center center;

}


.storybookTextCharacterSelected{

    filter:

        drop-shadow(0 0 2px #ffffff)

        drop-shadow(0 0 2px #3986bd);

}




/*######################################################################
END CSS SECTION 40 — PATH GUIDE AND INDIVIDUAL LETTERS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 41 — VISIBLE TYPING CARET AND RESIZE HANDLE
######################################################################*/

.textTypingCaret{

    position:absolute;

    display:none;

    width:3px;

    min-height:22px;

    border-radius:3px;

    background:#2d79bd;

    box-shadow:

        0 0 0 1px rgba(255,255,255,.92),

        0 0 7px rgba(45,121,189,.72);

    transform-origin:center center;

    pointer-events:none;

    z-index:8;

    animation:storybookCaretBlink .9s steps(1,end) infinite;

}


@keyframes storybookCaretBlink{

    0%,
    48%{

        opacity:1;

    }

    49%,
    100%{

        opacity:0;

    }

}


.textResizeHandle{

    position:absolute;

    right:-13px;

    bottom:-13px;

    width:18px;

    height:18px;

    border:2px solid #fff;

    border-radius:50%;

    background:#4f8fc4;

    box-shadow:0 2px 7px rgba(0,0,0,.25);

    cursor:nwse-resize;

    touch-action:none;

}







/*######################################################################
END CSS SECTION 41 — VISIBLE TYPING CARET AND RESIZE HANDLE
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 42 — RECORDER
######################################################################*/

#voiceRecorder .recorderButton{

    position:relative;

    display:block;

    width:100%;

    min-width:0;

    max-width:100%;

    height:42px;

    margin:0 0 10px;

    padding:0 10px;

    transform:none;

    font-size:16px;

    line-height:42px;

    text-align:center;

}


.recordingNameSection{

    display:block;

    width:100%;

    margin:4px 0 12px;

}


.recordingNameInput{

    display:block;

    width:100%;

    height:38px;

    padding:0 9px;

}


.storybookTextCharacter{

    background-color:transparent;

    -webkit-box-decoration-break:clone;

    box-decoration-break:clone;

}


.textDepthHint{

    margin:8px 0 0;

    color:#48635f;

    font-size:14px;

    line-height:1.35;

}


#textDepthControls output{

    float:right;

    font-weight:700;

}


#textDepthControls input[type="range"]{

    width:100%;

    margin:5px 0 14px;

}



/*######################################################################
END CSS SECTION 42 — RECORDER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 43 — PAST RECORDINGS
######################################################################*/

#pastRecordingsPanel{

    margin:18px 0 12px;

    padding:12px;

    border:1px solid rgba(111,145,135,.32);

    border-radius:16px;

    background:rgba(255,255,255,.38);

}

#pastRecordingNavigator{

    position:relative;

    width:100%;

    min-height:92px;

    margin:8px 0 10px;

}

#previousRecordingButton,
#nextRecordingButton{

    position:absolute;

    top:48px;

    width:48%;

    min-height:38px;

}

#previousRecordingButton{
    left:0;
}

#nextRecordingButton{
    right:0;
}

#pastRecordingName{

    position:absolute;

    left:0;

    top:0;

    width:100%;

    min-height:38px;

    overflow:hidden;

    font-size:16px;

    font-weight:700;

    line-height:38px;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;

}




.blushButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffe8f0 45%,
            #f7bfd1 100%
        );

}


.lavenderButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f1ebff 45%,
            #d6c2ff 100%
        );

}


.coralButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff1eb 45%,
            #ffc9b7 100%
        );

}


.aquaButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eaf9ff 45%,
            #bdeaff 100%
        );

}


.pearlButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ececec 55%,
            #d9d9d9 100%
        );

}


.creamButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #d5e5fc 45%,
            #b6c4fa 100%
        );

}


.clearRecordingButton{

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #e9fbf7 45%,
            #b9ece2 100%
        );

}


/*######################################################################
END CSS SECTION 43 — PAST RECORDINGS
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 44 — TWINKLES
######################################################################*/

.storybookTwinkle{

    position:absolute;

    border-radius:50%;

    pointer-events:none;

    transform:scale(.25);

    animation:
        storybookTwinkle
        ease-in-out
        infinite;

}


@keyframes storybookTwinkle{

    0%{

        transform:scale(.25);

    }

    20%{

        transform:scale(.60);

    }

    50%{

        transform:scale(1);

    }

    80%{

        transform:scale(.60);

    }

    100%{

        transform:scale(.25);

    }

}




/*######################################################################
END CSS SECTION 44 — TWINKLES
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 45 — SAVE DIALOG
######################################################################*/

.dialogHidden{

    display:none;

}


#saveDialog{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    z-index:9999;

}


.dialogPanel{

    position:absolute;

    left:50%;

    top:50%;

    width:500px;

    max-width:calc(100% - 30px);

    padding:30px;

    transform:translate(-50%,-50%);

    border-radius:24px;

    background:#fff;

    box-shadow:0 20px 60px rgba(0,0,0,.25);

}


.dialogPanel input[type="text"]{

    width:100%;

    padding:12px;

    font-size:18px;

}


.dialogPanel button{

    margin:20px 12px 0 0;

    padding:12px 24px;

}




/*######################################################################
END CSS SECTION 45 — SAVE DIALOG
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 46 — SELECTED LAYER
######################################################################*/

.storybook-layer-selected{

    outline:3px solid rgba(49,91,76,.72);

    outline-offset:4px;

}




/*######################################################################
END CSS SECTION 46 — SELECTED LAYER
######################################################################*/

/*######################################################################
BEGIN CSS SECTION 47 — PHONE — SINGLE FINAL PHONE SECTION
######################################################################*/

@media (max-width:700px){

    body{

        overflow:auto;

    }


    #puzzleRoom{

        width:100%;

        height:auto;

        min-height:100vh;

        overflow:visible;

    }


    #headerBar{

        position:relative;

        left:10px;

        top:10px;

        width:calc(100% - 20px);

        height:58px;

        border-radius:20px;

    }


    #roomTitle{

        left:14px;

        top:9px;

        width:calc(100% - 145px);

        height:40px;

        transform:none;

        font-size:21px;

        line-height:40px;

        text-align:left;

    }


    #btnHome{

        right:8px;

        top:8px;

        width:125px;

        min-width:125px;

        height:40px;

        font-size:14px;

    }


    #workspace{

        position:relative;

        left:10px;

        top:26px;

        width:calc(100% - 20px);

        height:auto;

        min-height:0;

    }


    #stagePanel{

        position:relative;

        left:0;

        right:auto;

        top:0;

        bottom:auto;

        width:100%;

        height:360px;

        margin:0;

        overflow:visible;

        z-index:200;

    }


    #storyStage{

        border-radius:24px;

    }


    #toolbar{

        position:relative;

        left:0;

        bottom:auto;

        width:100%;

        height:42px;

        margin:14px 0 0;

        transform:none;

    }


    #toolbar .storybookButton{

        width:23%;

        min-width:0;

        height:40px;

        padding:0 4px;

        font-size:12px;

    }


    #saveButton{

        left:0;

    }


    #exportButton{

        left:25.5%;

    }


    #previewButton{

        left:51%;

    }


    #resetButton{

        left:76.5%;

    }


    #libraryPanel{

        position:relative;

        left:0;

        top:0;

        width:100%;

        height:auto;

        min-height:0;

        margin:18px 0 0;

        padding:18px;

        overflow:visible;

        border-radius:22px;

        z-index:100;

    }


    #optionsPanel{

        position:relative;

        right:auto;

        top:0;

        width:100%;

        height:auto;

        min-height:0;

        margin:18px 0 0;

        padding:18px;

        overflow:visible;

        border-radius:22px;

        z-index:100;

    }


    #layerNavigator{

        width:100%;

        max-width:280px;

        height:60px;

        margin:0 auto 14px;

    }


    #previousLayerButton,
    #nextLayerButton{

        top:9px;

    }


    #selectedLayerName{

        top:9px;

    }


    #statusBar{

        position:relative;

        left:0;

        bottom:auto;

        width:100%;

        margin:18px 0 20px;

    }


    #fontBrowser{

        max-height:240px;

    }


    .storybookTextLayer{

        max-width:96%;

    }


    .dialogPanel{

        width:calc(100% - 24px);

        padding:22px;

    }

}

/*######################################################################
END CSS SECTION 47 — PHONE — SINGLE FINAL PHONE SECTION
######################################################################*/

/* Saving controls have their own space above the existing two-sided workspace. */
#puzzlerSaveBar { position:absolute !important;left:20px;top:98px;width:calc(100% - 40px);min-height:78px;border-radius:14px; }
#puzzlerSaveBar button { min-width:0;padding:7px 12px;margin-right:7px;font-size:14px; }
#workspace {top:200px;height:calc(100% - 300px);}
#extraGradientColors input[type=color] {width:100%;height:36px;}
#extraGradientColors button, #addGradientColor {padding:8px;margin:5px 0;}
@media (min-width:701px) and (max-width:1050px) {
 #puzzlerSaveBar {min-height:110px;}
 #workspace {top:218px;height:calc(100% - 318px);}
}
@media (max-width:700px) {
 #puzzlerSaveBar {position:relative !important;left:10px;top:20px;width:calc(100% - 20px);}
 #puzzlerSaveBar button {margin-bottom:5px;}
 #workspace {top:32px;height:auto;}
}
