header{
    background: #fff;
}
#content{
    height: calc(100% - 100px);
}
#content-gradient-bottom {
    bottom: 48px;
}
#controls{
    display: block;
    height: 48px;
    margin: auto;
    margin-top: 5px;
    padding: 0px 10px 0px 0px;
    text-align: center;
    position: relative;
    z-index: 10000;
}
#limericks-burger-wrapper{
    position: absolute;
    left: 0px;
    bottom: 0px;
}
#limericks-burger-wrapper .burger-checkbox:checked + .burger-label + .navi-wrapper {
    top: -336px;
    left: 0px;
    padding: 10px 10px 20px 10px;
}
#prev-next-wrapper{
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -0%);
}
#speak-wrapper{
    display: inline-block;
    position: absolute;
    right: 10px;
}
#prev-next-wrapper, #speak-wrapper{
    margin-top: 6px;
}
.limerick-wrapper{
    display: block;
    position: relative;
    z-index: 1;
    padding: 0px 0px 30px 0px;
}
#limerick{
    min-height: calc(100% - 90px);
    margin: 0px 0px 0px 0px;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
}
#limerick * {
    width: calc(100% - 0px);
}
#ellipsis{
    font-size: 1em;
    line-height: 6px;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 10px 0px 5px 0px;
}
#ellipsis.transparent{
    padding: 0px;
    height: 0px;
}
#ellipsis::before{
    position: relative;
    z-index: 9000;
    content: " ";
    display: block;
    width: 100%;
    height: 40px;
    margin: -50px 0px 0px 0px;
    xxxborder: solid 1px red;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(250, 250, 250, 1) 90%);
}
#controls, #limerick, #ellipsis{
    min-width: 300px;
    max-width: 640px;
}
#btn-prev{
    
}
#btn-next{
    margin-right: 0px;
}
#btn-prev, #btn-next{
    float: left;
}
#btn-play{
    display: none;
}
#btn-stop{
    display: none;
}
#btn-speak.visible, #btn-loop.visible{
    opacity: 1;
}
#btn-speak, #btn-loop{
    float: right;
    background-position: 6px 5px;
    opacity: 0;
}
#btn-speak{
    background-position: 5px 6px;
    background-size: 24px 24px;
    background-image: url('/img/icons/speaker-simple-black.svg');
}
#btn-speak.mute{
    background-position: 9px 6px;
    background-image: url('/img/icons/speaker-simple-black-mute.svg');
}
#btn-loop{
    background-position: 1px 4px;
    background-size: 32px 32px;
    background-image: url('/img/icons/endless-black.svg');
    margin-right: 0px;
}

#btn-loop.enabled{
    -webkit-filter: none;
    filter: none;
    border: none;
}
.limerick-wrapper .text{
    word-break: break-word;
}
#limerick .limerick-wrapper .author{
    width: calc(100% - 10px);
    border-top: solid 1px #d4d4d4;
    padding: 10px 0px 10px 0px;
    margin: 20px 0px 0px 0px;
    font-size: 0.8em;
    display: block;
    color: #000;
}

/*iPhone 6 Portrait*/
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: portrait) {
    #menu-wrapper {
        right: 310px !important;
        width: 300px !important;
        min-width: auto !important;
        max-width: auto !important;
    }
    #controls, #limerick, #ellipsis{
        width: calc(100% - 20px);
    }
    #prev-next-wrapper, #speak-wrapper{
        float: none;
        margin-left: 0px;
    }
    #prev-next-wrapper{
        margin-right: 16px;
    }
}

/*iPhone 6 landscape*/
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: landscape) {
    #menu{
        xxxmax-height: 100% !important;
    }
}