*{
    position: relative;
    box-sizing: border-box;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}

.full-height{
    height: 100%;
}
body {
    padding-top: 80px;
    padding-bottom: 50px;
    font-family: 'Nunito', sans-serif;
    background: #444;
    transition: all ease .3s;
    background-color:#444;
    /*background-image: url(/img/background_v2.png);*/
    background-size: cover;
    background-repeat: no-repeat;
}
.outer_mx{
    max-width: 960px;
    margin: auto;
    width:100%;
    height:100%;
}
.body_inner{
    position: fixed;
    z-index: 0;
    top:0;
    left:0;
    width:100%;
    height:100%;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.7+0,0.65+67,0+100 */
    background: -moz-linear-gradient(top,  rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.65) 67%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.65) 67%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.65) 67%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */

}

/*TOP NAVIGATION*/
#top_nav{
    z-index: 10000000;
    position: absolute;
    top:0px;
    left:0px;
    width:100%;
    height:70px;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.8+0,0+100;Neutral+Density */
    background: -moz-linear-gradient(top,  rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0.8) 0%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(0,0,0,0.8) 0%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
}

#top_nav a{
    /*display: inline-block;*/
}

#top_nav .logo{
    position: absolute;
    top:0px;
    left:0px;
    display: inline-block;
    vertical-align: top;
    height:70px;
    width:70px;
}
#top_nav .logo >img{
    height:100%;
}
#top_nav .item{
    user-select:none;
    /*font-family: 'Luckiest Guy', cursive;*/
    font-size: 18px;
    display: inline-block;
    vertical-align: top;
    height:70px;
    /*width:100px;*/
    line-height: 70px;
    color:#fff;
    padding: 0px 20px;
}

#top_nav .item.active{
    border-bottom: 5px solid yellowgreen;
}

#top_nav .item:hover{
    opacity: 0.8;
    color:#fff;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#3e826c+0,f1da36+100 */
    background: rgb(62,130,108); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(62,130,108,1) 0%, rgba(241,218,54,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(62,130,108,1) 0%,rgba(241,218,54,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(62,130,108,1) 0%,rgba(241,218,54,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3e826c', endColorstr='#f1da36',GradientType=0 ); /* IE6-9 */

}

#top_nav .item:active{
    opacity: 1;
}

#top_nav_inner{
    padding-left: 70px;
}

#top_nav .icon {
    padding: 14px 16px;
    color:#fff;
    font-size: 32px;
    display: none;
}
#top_nav .icon:hover {
    background-color: #ddd;
    color: black;
}

#top_nav .icon.active {
    background-color: #04AA6D;
    color: white;
}

#footer{
    position: absolute;
    bottom:0px;
    left:0px;
    background: rgba(255,255,255,.5);
    height:50px;
    line-height:50px;
    width: 100%;
}


/*FAMILY MEET THE FAMILY*/
.fml_hidden{
    text-align: left;
    overflow: auto;
    position: absolute;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    pointer-events: none;
    opacity: 0;
    transition: .2s all ease;
    transform: translate(0,100px);
    display:none;
    padding-top: 50px;
}
.fml_hidden.prepared{
    display:block;
}
.fml_hidden.active{
    pointer-events: auto;
    opacity: 1;
    transform: translate(0,0);
}
.fml_hidden p{
    color:#fff;
    padding-left: 10px;
    padding-right: 100px;
}
.fml_hidden .main{
    float:left;
    max-height: 100%;
    margin-right: 40px;
}

#fml_content{
    margin: auto;
    width:100%;
    height:100%;
    max-height:400px;
    max-width: 960px;
    position: absolute;               /* 2 */
    top: 50%;                         /* 3 */
    transform: translate(0, -50%);    /* 4 */
}

#fml_container{
    width:100%;
    height: calc(100% - 180px);
}

#fml_profiles .item{
    text-align: center;
    display: inline-block;
    vertical-align: top;
    width:150px;
    margin:10px;
    opacity: 0.8;
    transition: .1s all ease;
}
#fml_profiles .item:hover{
    opacity: 1;
    transform: scale(1.1,1.1);
}
#fml_profiles .item:active{
    background: rgba(220,50,255,.4);
    opacity: 0.8;
    transform: scale(1.05,1.05);
}
#fml_profiles .item.active{
    outline:5px solid rgba(0,0,0,.2);
    opacity: 1;
    transform: scale(1.1,1.1);
}
#fml_profiles .item >.img{
    pointer-events: none;
    display: inline-block;
    vertical-align: top;
    width:120px;
    height:120px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
#fml_profiles .item >.text{
    pointer-events: none;
    vertical-align: top;
    display: inline-block;
    width:100%;
    pointer-events: none;
    font-size: 16px;
    padding: 5px;
    /*border-radius: 5px;*/
    color:#fff;
    background: rgba(0,0,0,.3);
}


@media only screen and (max-width: 768px) {
    #footer{
        height:40px;
        line-height:40px;
    }
    body{
        padding-bottom: 40px;
    }
    #fml_content{
        height:100%;
        max-height: 100%;
    }
    .fml_hidden .main{
        width:100px;
    }
    .fml_hidden p{
        padding-right: 10px;
    }
    #fml_container{
        height: calc(100% - 160px);
    }
    #fml_profiles .item{
        width:calc(50% - 20px);
        margin:10px;
        height:60px;
    }
    #fml_profiles .item >.img{
        pointer-events: none;
        display: inline-block;
        width:50px;
        height:50px;
    }
    #fml_profiles .item >.text{
        width:calc(100% - 50px);
        pointer-events: none;
        font-size: 16px;
        background: rgba(0,0,0,.2);
        height:60px;
        line-height:60px;
        text-align: left;
    }
    #top_nav{
        /*transition: .1s all ease;*/
        background: rgba(0,0,0,.2);
        height:60px;
    }
    #top_nav .logo{
        height:60px;
    }
    #top_nav .item{
        width: 100%;
        text-align: left;
        height:50px;
        line-height:50px;
    }
    #top_nav_inner{
        padding-left: 0px;
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#4bad20+0,258dc8+100 */
        background: rgb(75,173,32); /* Old browsers */
        background: -moz-linear-gradient(top,  rgba(75,173,32,1) 0%, rgba(37,141,200,1) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(75,173,32,1) 0%,rgba(37,141,200,1) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(75,173,32,1) 0%,rgba(37,141,200,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4bad20', endColorstr='#258dc8',GradientType=0 ); /* IE6-9 */

    }
    #top_nav .item.active{
        border:none;
        background: rgba(0,0,0,.2);
    }
    .topnav a:not(:first-child) {
        display: none;
    }
    #top_nav .icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        padding-top: 80px;
        background: #444;
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        display: block;
    }
}