sb-script-editor {
    display: flex;
}

sb-script-editor .page{
    flex: 0 1 930px;
    min-height: 900px;
    background-color: white;
    box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.15);

    margin: 20px auto;
    padding: 80px 80px;
    padding-left: 120px; /* for prefix */
    cursor: text;
}

sb-script-editor .paragraph {
     position: relative; /* allow marker positioning */
 }

sb-script-editor .paragraph-prefix {
    position: absolute;
    top: 0px;
    left: -30px;
    bottom: 2px;

    width: 10px;
    border-radius: 5px;

    width: fit-content;
    left: -110px;

    text-align:center;
    padding: 5px 0;
}

sb-script-editor .paragraph-prefix .marker {
    position: absolute;
    top: 5px;
    bottom: 4px;
    right: 0px;
    width: 3px;
}

sb-script-editor textarea{
    display: block;
    border: none;

    height: 38px; /* initial height */
    width: 100%;
    margin: 0 auto;

    resize: none;
    overflow: hidden;

    font-family: "Courier New";
    font-size: 18px;
    font-weight: bold;
    color: #676767;

    padding-top: 8px;
    border-left: 2px solid transparent;
}

sb-script-editor .character textarea {
    text-align: center;
    width: 30%;
}
sb-script-editor .dialog textarea { width: 50%; }

sb-script-editor .header textarea,
sb-script-editor .character textarea {
    text-transform: uppercase;
}
sb-script-editor .parenthetical textarea {
    width: 40%;
}

sb-script-editor .paragraph-prefix select {
    width: 105px;
    border:none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 0;
}

sb-script-editor .paragraph-prefix select { outline: none; }

sb-script-editor .header .paragraph-prefix * { background-color: #3D9970; }
sb-script-editor .action .paragraph-prefix * { background-color: #FF4136; }
sb-script-editor .dialog .paragraph-prefix * { background-color: #FF851B; }
sb-script-editor .character .paragraph-prefix * { background-color: #001f3f; }
sb-script-editor .parenthetical .paragraph-prefix * { background-color: #AAAAAA;}

sb-script-editor { position: relative; /* allow for absolute position for children */}
sb-script-editor sb-info-bubble{
    position: absolute;
    top: 40px;
    right: 20px;
}

sb-script-editor h3 {
    margin: 0 0 8px 0;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
    color: #333;
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    padding: 6px 6px 3px;
    white-space: nowrap;
    margin: 2px;
   }

