.story #container {
    background: linear-gradient(90deg, #2A1D5F 0%, #2B1D50 100%);
    padding-bottom: 64px;
    padding-top: 358px;
}



audio {
    position: relative;
    left: 0;
    right: 0;
}

#story {
    font-size: 18px;
    line-height: 30px;
    text-align: left;
    margin-bottom: 50px;
    color: #fff;
    padding-top: 0px;
    min-height: calc(100% - 300px);
}

#story input {
    text-transform: initial;
}

#back_to_home {
    margin-bottom: 150px;
}

#story strong {
    display: inline;
    margin-top: 0px;
    color: #9855FD;
    line-height: 30px;
}

#cover {
    background-color: #2A1D5F;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 330px;
    background-position: center;
    background-size: cover;
    background-image: url("../img/bg2.jpg");
    max-width:var(--mobile-size);
    margin: auto;
}

#cover_alt{
    text-align: center;
    margin: auto;
    color:var(--color_1);
    position: relative;
    top: 130px;
}


.kid_data {
    padding: 0px;
    display: flex; flex-wrap: wrap;  flex: 0 0 33%; justify-content:space-between;
    margin-bottom: 15px;
}

.input-group {
    padding: 0px;
    margin-bottom: 5px;
    display: flex; flex-wrap: wrap;  flex: 0 0 33%; justify-content:space-between;
}

.kid_data * {
    width: calc(30%);
    text-align: center;
}

.input-group select {
    display: inline-block;
    margin-bottom: 15px;
    text-align: center;
    text-align-last: center;
    width:calc(50% - 30px);
    margin-left:5px;
    right:5px;
}

div#cover:before {
/*    background: linear-gradient(180deg, #fff -1.71%, rgba(21, 11, 73, 0.00) 74.57%);*/
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
}

div#cover {
    height: 330px;
    position: fixed;
    background-size: cover;
    z-index: 10;
}

div#story p {
    opacity: 0.95;
    margin-top: 0;
    margin-bottom: 1em;
}

h2 {
    margin-bottom: 4px;
    padding-top: 32px;
    margin-top:0;
}

a.small--button,button.small--button {
    height: 54px;
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.flex--buttons button,.flex--buttons a {
    background: #50417A;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);
    font-size: 16px;
    font-weight: 600;
}

button#back_to_home {
    margin-bottom: 0;
    min-width: 56px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='21' viewBox='0 0 13 21' fill='none'%3E%3Cpath d='M11.056 19.2578L1.9439 10.6289L11.056 2' stroke='white' stroke-width='3' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    width: 56px;
}

.flex--buttons {
    display: flex;
    margin-top: 16px;
    gap: 16px;
}

#story h2 {
    margin-bottom: 20px;
    padding-top: 22px;
}


#story_buttons .small--button {
    width: auto;
    flex-grow: 1;
}

#story_buttons {
    flex-wrap: wrap;
}

#back_to_home {
    flex-grow: 0 !important;
    width: 56px !important;
}
#share_btn {
    background: linear-gradient(90deg, var(--color_1) 0%, var(--color_2) 100%);
}

@media only screen and (min-width: 1024px) {

    .flex--buttons button,.flex--buttons a {
        background: linear-gradient(90deg, #2A1D5F 0%, #2B1D50 100%);
    }

    .story body {
        overflow-y: hidden;
    }
    .story #container {
        display: flex;
        flex-direction: row-reverse;
        gap: 20px;
        align-items: flex-end;
        height: calc(100vh - 40px);
        overflow-y: hidden;
        max-width: none;
        padding-top:20px;
        background: none;
        padding: 20px;
    }

    #story {
        flex: 1;
        height: calc(100vh - 80px);
        background: linear-gradient(90deg, #2A1D5F 0%, #2B1D50 100%);
        padding: 0px 20px;
        overflow-y: scroll;
        margin-top: 30px;
        margin-bottom: 0px;
        border-radius: 12px;
    }

    #story_buttons,#action_btns {
        flex:2;
    }

    #custom_audio_player {
        width: calc(66.66% - 66px) !important;
        left: 20px !important;
        bottom: 120px;
    }


    div#cover {
        width: calc(66.66% - 66px);
        background-size: cover;
        height: calc(100vh - 240px);
        background-position: center top;
        background-repeat: no-repeat;
        background-color: transparent;
        top: 60px;
        left: 20px;
        margin: initial;
        max-width: none;
        border-radius: 12px;
    }
    button#back_to_home {
    background-color: #2A1D5F;
    }
    #loader_img {top: calc(50% - 20px);transform: translate(0,-50%);}
}

