*{
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    font-size: 18px;
}

body{
    margin: 0;
    padding: 0;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.container{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.container > *,
.livetype > *{
    width: 100%;
    max-width: 100%;
}

.container footer{
    display: flex;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 0 2rem;
    font-size: 1rem;
    line-height: 2rem;
    color: #999;
}

.container footer ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.container footer ul li{
    display: inline-block;
    margin-right: .5rem;
    vertical-align: top;
}

.container footer ul li:last-child{
    margin-right: 0;
}

.container footer ul.controls{
    margin-right: -.9rem;
}

.container footer ul.controls li{
    margin: 0;
    padding: 0;
}

.container footer a{
    text-decoration: underline;
}

.container footer button{
    vertical-align: top;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.container footer a,
.container footer button{
    color: #999;
}

.container footer a:hover,
.container footer a:focus,
.container footer button:hover,
.container footer button:focus{
    color: #333;
}


/*************************************************
 *                 Livetype base                 *
 *************************************************/

.livetype{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
}

.livetype .livetype-container{
    position: relative;
    flex: 1 1 auto;
    font-size: 15vh;
    overflow:hidden;
    padding-top: 2rem;
}

.livetype .livetype-container::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 10vh;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 30%,rgba(255,255,255,0) 100%);
    z-index: 100;
}

.livetype .livetype-container > #livetype-target{
    display: inline-block;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem 2rem 3rem 2rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.5;
}

.livetype form{
    margin: 0;
    padding: 0;
    position: relative;
    background: #eee;
}

.livetype form > *{
    background: none;
    border: none;
    font: inherit;
    line-height: 3rem;
    vertical-align: middle;
}

.livetype form textarea#livetype-source{
    width: 100%;
    padding: 0 30% 0 2rem;
    resize: none;
    overflow: hidden;
}

.livetype form textarea#livetype-source:focus{
    outline: none;
}


.livetype form button#livetype-reset{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1rem;
    font-size: 2rem;
    font-family: sans-serif;
    color: #999;
    cursor: pointer;
}

.livetype form button#livetype-reset:hover,
.livetype form button#livetype-reset:focus{
    color: #333;
}



/*************************************************
 *             EmojiOne autocomplete             *
 *************************************************/
 
.dropdown-menu {
    list-style: none;
    padding: .3em 0 0;
    margin: 0;
    border: 3px solid #eee;
    background-color: white;
    /*border-radius: 5px;*/
    overflow: hidden;
    font-size: 0.8em;
    letter-spacing: .025em;
    box-shadow: 0px 0px 10px rgba(0,0,0,.1);
}

.dropdown-menu a:hover {
    cursor: pointer;
}

.dropdown-menu li {
    letter-spacing: 0;
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    border:none;
    z-index: 100;
}

.dropdown-menu li:before {
    display: none;
}

.dropdown-menu .textcomplete-footer {
    margin-top: .3em;
    background: #eee;
}

.dropdown-menu .textcomplete-footer a {
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 2.1818em;
    padding-left: 1.8181em;
    font-size: .84em;
}

.dropdown-menu .textcomplete-footer .arrow {
    margin-left: .8em;
    font-size: 1.3em;
}

.dropdown-menu li .emojione {
    vertical-align: middle;
    font-size: 1.23em;
    width: 1em;
    height: 1em;
    top: -1px;
    margin: 0 .3em 0 0;
}

.dropdown-menu li a {
    display: block;
    height: 100%;
    line-height: 1.8em;
    padding: 0 1.54em 0 .615em;
    color: #000;
}

.dropdown-menu .active,
.dropdown-menu li:hover {
    background: #eee;
    color: #000;
}

.dropdown-menu .active a,
.dropdown-menu li:hover a {
    color: inherit;
}
