﻿.comic {
    display: flex;
    flex-wrap: wrap;
    font-family: 'Comic Sans', cursive;
    padding: 1vmin;
}

.panel {
    background-color: #fff;
    border: solid 2px #000;
    box-shadow: 0 6px 6px -6px #000;
    display: inline-block;
    flex: 1 1;
    height: 300px;
    margin: 1vmin;
    overflow: hidden;
    position: relative;
}

.panel2 {
    background-color: #fff;
    border: solid 2px #000;
    box-shadow: 0 6px 6px -6px #000;
    display: inline-block;
    flex: 1 1;
    height: 300px;
    margin: 1vmin;
    overflow: hidden;
    position: relative;
}

    .panel2:nth-child(1) {
        flex-basis: 300px;
    }

    .panel2:nth-child(2) {
        flex-basis: 800px;
    }

.text {
    background-color: #fff;
    border: solid 2px #000;
    margin: 0;
    padding: 3px 10px;
}

.top-left {
    left: -6px;
    position: absolute;
    top: -2px;
    transform: skew(-15deg);
    z-index: 900;
}

    .top-left input {
        border: none;
        outline:none;
    }

.bottom-right {
    bottom: -2px;
    position: absolute;
    right: -6px;
    transform: skew(-15deg);
    z-index: 900;
}

    .bottom-right input {
        border: none;
        outline: none;
    }

.speech {
    background-color: #fff;
    border: solid 2px #000;
    border-radius: 12px;
    display: inline-block;
    margin: .5em;
    padding: .5em 1em;
    position: relative;
    z-index: 900;
}

    .speech:before {
        border: solid 12px transparent;
        border-left: solid 12px #000;
        border-top: solid 12px #000;
        bottom: -24px;
        content: "";
        height: 0;
        left: 24px;
        position: absolute;
        transform: skew(-15deg);
        width: 0;
    }

    .speech:after {
        border: solid 10px transparent;
        border-left: solid 10px #fff;
        border-top: solid 10px #fff;
        bottom: -19px;
        content: "";
        height: 0;
        left: 27px;
        position: absolute;
        transform: skew(-15deg);
        width: 0;
    }

.panel:nth-child(1) {
    flex-basis: 400px;
}

.panel:nth-child(2) {
    flex-basis: 300px;
}

.panel:nth-child(3) {
    flex-basis: 200px;
}

.panel:nth-child(4) {
    flex-basis: 200px;
}

.panel:nth-child(5) {
    flex-basis: 200px;
}

.panel:nth-child(6) {
    flex-basis: 200px;
}

.panel:nth-child(7) {
    flex-basis: 400px;
}

.panel:nth-child(8) {
    flex-basis: 200px;
}

.panel:nth-child(9) {
    flex-basis: 200px;
}

/* background colours */

.panel:nth-child(4n+1) {
    background-image: radial-gradient(circle, #fff, #cbedeb);
}

.panel:nth-child(4n+2) {
    background-image: radial-gradient(circle, lightblue, #01a6a8);
}

.panel:nth-child(4n+3) {
    background-image: radial-gradient(circle, #fff, #ebff86);
}

.panel:nth-child(4n+4) {
    background-image: radial-gradient(circle, lightcoral, tomato);
}

.edit-menu {
    position: absolute;
    right: 0px;
    top: 0px;
    opacity: 0;
    margin-right: 10px;
    z-index: 910;
    -webkit-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
    transform: translate(0, -30px);
}

.edit-item:focus, .edit-item:hover .edit-menu {
    opacity: 1;
    transform: translate(0, 5px);
}

.story-chart-container {
    height: 300px;
    /*border: solid 2px #999999;*/
}

/* IE11 hide native button (thanks Matt!) */
.story-dropdown::-ms-expand {
    display: none;
}

.story-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 15px;
    color: #01a6a8;
    border: none;
    line-height: 1.5;
    border-bottom: dashed 2px #01a6a8;
    -ms-word-break: normal;
    word-break: normal;
}

textarea {
        box-sizing: border-box;
        max-width: 93%;
        -ms-word-break: break-all;
        word-break: break-all;
}

@media all and (-ms-high-contrast:none) {
    *::-ms-backdrop, textarea {
        white-space: pre;
    }
}

.chart-selected {
    border: 2px solid #4BAF4f !important;
}

.chart-preview-box {
    position: relative;
    height: 250px;
    width: 250px;
    -webkit-transition: -webkit-transform .1s linear;
    transition: -webkit-transform .1s linear;
    -o-transition: transform .1s linear;
    transition: transform .1s linear;
    transition: transform .1s linear, -webkit-transform .1s linear;
    transition: transform .1s linear,-webkit-transform .1s linear;
}

/* chart place holder */
/* Landing page banner */
.chart-placeholder {
    height: 300px;
    background-image: url("../img/chart-placeholder.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    background-size: 150px auto;
    border: solid 2px #999999;
}

.chart-holder {
    width: 97%;
    height: 300px;
}

.chart-placeholder:hover {
    border-color: #01a6a8;
}

.chart-ctainer {
    position: absolute;
    left: 0;
    top: 10px;
    height: 200px;
    width: 240px;
}

.chart-preview-footnote {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 30px;
    width: 250px;
}

.kid-floting-edit-menu-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: normal;
    align-content: center;
    position: fixed;
    top: 80px;
    right: 0.5rem;
    z-index: 920;
    line-height: 40px;
    border-radius: 7px;
    max-width: 300px;
    min-width: 250px;
    -webkit-box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.5);
    opacity: 0.5;
}

.kid-floting-edit-menu {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: normal;
    align-content: center;
    height: 40px;
    border-radius: 7px;
    min-width: 300px;
    background-color: transparent;
    margin-right: -1px;
}

.kid-menu-icon {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-content: center;
    background-color: #01a6a8;
    color: #cbedeb;
    height: 100%;
    min-width: 30px;
    margin: 0;
    border-right: solid 1px #cbedeb;
    cursor: pointer;
}

.kid-menu-share {
    display: block;
    background-color: #cbedeb;
    color: #01a6a8;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
}

.menu-share-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin: 5px 5px 20px 5px;
}

.link-to-copy {
    flex: 1 1 auto;
    border: dashed 1px #01a6a8;
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
    background-color: #fff;
    color: #000;
}

.copy-btn {
    /*flex: 1 1 auto;*/
    align-self: center;
    line-height: 1.5;
    margin: 10px 0 45px 0;
}

.menu-hide-btn {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 20px;
    width: 100%;
    border: 0;
    background-color: #cbedeb;
    color: #01a6a8;
    border-top: solid 1px #01a6a8;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
    cursor: pointer;
    line-height: 20px;
}

.kid-floting-edit-menu .menu-icon:first-child {
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

.kid-floting-edit-menu .menu-icon:last-child {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-right: 0;
}

.kid-menu-icon:hover {
    background-color: #cbedeb;
    color: #ef4129;
}

.kid-floting-edit-menu-container:hover,
.kid-floting-edit-menu-container:focus {
    opacity: 1;
}

.kid-menu-icon:active {
    background-color: #ef4129;
    color: #cbedeb;
}

/* vue transition style*/
.slide-enter-active {
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}

.slide-leave-active {
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}

.slide-enter-to,
.slide-leave {
    max-height: 400px;
    overflow: hidden;
}

.slide-enter,
.slide-leave-to {
    overflow: hidden;
    max-height: 0;
}

.kid-signeture {
    position: absolute;
    bottom: 5px;
    right: 30px;
    margin-bottom: -15px;
}