
html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    min-width: 320px;
    overflow:hidden;

}
body {
    background: #000000;
    color:white;
    font-family: 'Open Sans', sans-serif;
    word-wrap: break-word;

    -webkit-overflow-scrolling: touch;
    
    font-smooth: auto;
    -webkit-font-smoothing: antialiased;    
    -moz-osx-font-smoothing: grayscale;
    
    -webkit-user-select: none; /* Chrome/Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    -o-user-select: none;
    user-select: none;
}

::-webkit-scrollbar { 
    display: none; 
}


*{
    box-sizing: border-box;
}
body.block_scroll {
    overflow: hidden;
    /*position:fixed; - добавляется в скриптах Иначе возникают проблемы с всплывающими формами на IOS*/
}
.body_background{
    width:100%;
    height: 100%;
    top:0;
    left:0;
    position: fixed;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%,rgb(90, 90, 90), rgb(0, 0, 0));
}


h1,h2,h3,h4{
   /*font-family: 'Jura', sans-serif;*/
}

img{
    max-width: 100%; 
}

.hidden{
    display: none !important;
}

.key_color{
    color:#ffc107 !important;
}

.key_color_background{
    background-color: #ffc107;
}

.key_color_border{
    border: 1px solid #ffc107;
}

a {
    color:inherit;
    text-decoration:none;
}

.blur {
    -webkit-filter: blur(15px);
    filter: blur(15px);
}

.gpu_accel{
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.material-icons{
    vertical-align: middle;
}

/* --------  Кнопки ----------- */
.button {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    box-shadow: 4px 3px 15px 0px black;
    border-radius: 2px;
    padding: 0.25em 0.5em;

}

.button.round{
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.button.flat{
    box-shadow: none;
}

.button.small{
    width: 35px;
    height: 35px;
}

.button.small .material-icons{
    font-size: 15px;
}
.button span{
    margin-left: 1em;
    white-space: nowrap;
}

#sidebar_button{
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 110;
}

/* --------  Кнопки END ----------- */


/* --------  SIDEBAR ----------- */

.sidebar{
    width:80px;
    position: fixed;
    left:-90px;
    top:0;
    height: 100%;
    
    background-color: rgba(35, 35, 35, 0.90);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 25px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
    align-items: center;
    box-shadow: 0px 0 15px 0px rgb(0, 0, 0);
    z-index: 110;

}

.sidebar .top_items{
    width: 80%;
    overflow-y:scroll;
    overflow-x:hidden;

}
.sidebar .item{
    margin: 0 auto;
    padding: 15px 0;
    border-bottom: 1px solid #505050;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.sidebar .item p{
    font-size: 10px;
    text-transform: lowercase;
    font-weight: 100;
    margin: 0 auto;
    display: inline-block;
    white-space: nowrap;
    opacity: 0.4;
    margin-bottom: -1em;
    transition: opacity .3s ease;
}

.sidebar .item:hover p, .sidebar .item:active p{
    opacity: 1;
}

.sidebar .material-icons{
    font-size: 30px;
}

.sidebar .bottom_items{
    text-align: center;
    width: 80px;
    padding: 10px 0;

}
.sidebar #new_posts_count{
    background-color: white;
    font-size: 65%;
    margin-top: 5px;
}

.sidebar .bottom_items #up{
    opacity: 0.7;
}

#sidebar_button {
    overflow:hidden;
}

#sidebar_button .material-icons{
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

}

.sidebar_content{
    background: rgba(0,0,0,0.7);
    width:100%;
    height: 100%;
    position: fixed;
    top:0;
    overflow: auto;
    z-index: 2;
    padding: 70px 20px 20px 90px;
    color: white;
    left:-100%;
}
.sidebar_content .wrapper, .sidebar_content .wrapper form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar_content .additional_links{
    margin: 1em -15% 1em 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 2em;
    opacity: 0.7;
}

/* --------  SIDEBAR END ----------- */

/* --------  MODAL SOURCES ----------- */


.sidebar_content .sources h2{
    font-weight: normal;
    text-align: center;
}

.sidebar_content .sources .dot{
    padding-right: 5px;
}

.sidebar_content .sources .sources_list,.sidebar_content .sources_list .source {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.sidebar_content .sources .sources_list .source{
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width:250px;
    height: 200px;
    background-color: rgba(120,120,120,0.5);
    border-radius: 2px;
    margin: 0.5em;
    padding-top: 1em;
}

.sidebar_content .sources .sources_list .source md-switch{
    transform: scale(1.5);
}


.sidebar_content .sources .sources_list .source .logo_wrap{
    width: 100px;
}
.sidebar_content .sources .sources_list .source .source_logo{
    max-width: 100%;
    max-height: 50px;
    flex-shrink: 0;
    display: inline-block;
    border-radius: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
}

.sidebar_content .sources .sources_list .source .stats_wrap{
    width: 100%;
    text-align: center;
}

.sidebar_content .sources .sources_list .source .name, 
.sidebar_content .sources .sources_list .source .stats_wrap{
    opacity: 0.65;
}

.sidebar_content .sources .sources_list .source .name{
    height: 5.5em;
    overflow: hidden;
    word-break: break-all;
    white-space: normal;
}

.sidebar_content .sources .sources_list .source  .stats_wrap > *{
    display: inline-block;
    margin: 0.5em;
}
.sidebar_content .sources .sources_list .source  .tags .md-chip{
    padding: 0.1em 0.5em;
    margin: 0 0.1em;
    border-radius: 5px;
    display: inline-block;
}

.tags .md-chip.vk{
    background-color: #4a76a8;
}
.tags .md-chip.fb{
    background-color: #3b5998;
}
.tags .md-chip.twitter{
    background-color: #00aced;
}
.tags .md-chip.instagram{
    background-color: #8a3ab9;
}
.tags .md-chip.youtube{
    background-color: #ff0000;
}
.tags .md-chip.telegram{
    background-color: #0088cc;
}

.tags .md-chip.obscene{
    background-color: #ffca00;
    color: #585858;
}
.tags .md-chip.adult {
    background-color: #252525;
    color: #ca0404;
}

.sidebar_content .sources .sources_list .source .stats .material-icons {
    font-size: 115%;
    opacity: 0.5;
    margin-top: -3px;
}

.sidebar_content .sources .source.more-btn{
    cursor: pointer;
}
.sidebar_content .sources .source.more-btn .material-icons{
    font-size: 200%;
    top: -0.05em;
    position: relative;
}

.rss_url{
    margin: 3em 25% 1em;
    padding-top: 2em;
    border-top: 1px solid gray;
}
.rss_url a img{
    height: 2em;
    vertical-align: middle;
    margin-left: 0.5em;
    margin-bottom: 0.1em;
}



/* --------  MODAL SOURCES END ----------- */

/* --------  OWN SOURCES ----------- */

.sources .types{
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.sources .types .own_sources_button{
    background-position: center; 
    background-size:contain; 
    border-radius: 50%; 
    width:50px; 
    height:50px;
    margin: 0.5em;
    cursor: pointer;
    box-shadow: none;
    opacity: 0.5;
    transition: opacity .3s ease;
}

.sources .types .own_sources_button:hover{
    opacity: 0.8;
}
.sources .types .own_sources_button.active{
    opacity: 1;
}

.sources .add_form form{
    display: flex;
    max-height: 0px;
    overflow:hidden;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 1em 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .3s ease, visibility .3s ease;
}



.add_form form .input_wrap{
    display: flex;
    flex-flow: column;
    margin: 0 0.5em;
    align-items: center;
}

.add_form form .input_wrap.left{
    width:300px;
}

.add_form form .input_wrap.right{
    width:125px;
    background-color: rgba(120,120,120,0.5);
    padding: 1em 0;
    border-radius: 2px;
    justify-content: space-between;
    margin: 6px 0;
}

.sources .add_form form.visible{
    max-height: 800px;
    opacity: 1;
    visibility: visible;
}

md-input-container .md-errors-spacer{
    display: none;
}

.sources .add_form form md-input-container {
    width: 100%;
    margin-top: 0px;
}

.sources .add_form form md-input-container.md-input-has-value,
.sources .add_form form md-input-container.md-input-focused,
.sources .add_form form md-input-container.md-input-has-placeholder{
    margin-top: 18px;
}

.input_wrap.right input{
    opacity: 0;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    cursor: pointer;
}
.sources .add_form form .input_wrap.right .buttons{
    display: flex;
    flex-flow: row;
}
.sources .add_form form .input_wrap.right .button{
    box-shadow: none;
    width:40px;
    height: 40px;
    margin: 0 0.25em;
    position: relative;
    overflow:hidden;
}

.sources .add_form form .input_wrap.right .button:last-of-type{
    margin-bottom: 0;
}

.sources .add_form form .input_wrap.right .img-edit-preview img{
    height:60px;
    width:60px;
    margin: 0.25em;
    border-radius: 2px;
}

.sources .add_form .disabled{
    opacity: 0.5;
    cursor:initial;
}

/* --------  OWN SOURCES END ----------- */
/* --------  Всплывающее сообщение ----------- */


.message {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    max-height: 100%;
    overflow:scroll;
    background-color: rgba(91,154,0,0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
    z-index: 200;
    margin-left:0;
}
.message.error {
    background-color: rgba(192,0,0,0.9);
}
.message .close {
    position: absolute;
    right: 15px;
    top: 5px;   
    color: #fff;
    font-size: 30px;
    font-weight: 200;
    background-color: transparent;
    background: none;
    cursor: pointer;
    
}
.message .wrapper {
    display: block;
    margin: 20px;
}
.message .text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 40px;
    padding: 17px 0 18px;
    text-align: center;
    white-space: normal;
}


/* --------  Всплывающее сообщение END ----------- */
/* --------  Всплывающее окно ----------- */


.window {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 100;
}
.window .overlay {

    position: absolute;
    min-height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display:flex;
    align-items: center;
    padding: 2em 0;

}


.window .close {
    top: 10px;
    right: 10px;
    position: fixed;
    -webkit-transition: opacity .3s ease;
    transition: opacity .3s ease;
}
.window .close:hover {
    opacity: 0.8;
    -webkit-transition: opacity .3s ease;
    transition: opacity .3s ease;
}

/* --------  Всплывающее окно END ----------- */

/* --------  Angular ----------- */
form .messages, form .actions{
    display:none;
}

:focus {
    outline: none;
    border: 0;
 }

.md-button.md-default-theme.md-primary.md-fab, 
.md-button.md-primary.md-fab, 
.md-button.md-default-theme.md-primary.md-raised, 
.md-button.md-primary.md-raised{
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    padding: 5px 40px;
    background-color: rgb(93, 93, 93);
}

.md-button.md-default-theme.md-fab[disabled], 
.md-button.md-fab[disabled], 
.md-button.md-default-theme.md-raised[disabled], 
.md-button.md-raised[disabled]
{
    opacity: 0.3;
}
/* --------  Angular END ----------- */


/* --------  LOADING ----------- */
.loading_wrap{
    width: 100%;
    height: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    background-color: rgba(0,0,0,0.3);
    z-index: 100;

}

.visible{
    opacity: 1;
    visibility: visible;
    transition: visibility 0.3s, opacity 0.3s;
}
.visible.faded{
    opacity: 0;
    visibility: hidden;
}

.loading_wrap .loading {
    display: flex;
    height: 70px;
    width: 70px;
    border: 10px solid rgba(255, 193, 7, 0.2);
    border-left-color: rgb(255, 193, 7);
    border-radius: 50%;
    -webkit-animation: animation-rotate 1000ms linear infinite;
    animation: animation-rotate 1000ms linear infinite;
  
}

.infinity_loader  {
    width: 100%;
    height: 101vh;
    text-align: center;

}


.infinity_loader .loader_msg{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    min-height: 35vh;
}


.infinity_loader .material-icons{
    font-size:4em;
    -webkit-animation: animation-bounce 1000ms linear infinite;
    animation: animation-bounce 1000ms linear infinite;
}

@keyframes animation-rotate {
    100% {
        transform: rotate(360deg) translateZ(0);
    }
}

@keyframes animation-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    10%,90%{
        transform: translateY(-5px);
    }
    40%, 80% {
        transform: translateY(-30px);
    }
    50% {
        transform: translateY(-55px);
    }
    60%{
        transform: translateY(-60px);
    }
    
    
}

/* --------  LOADING END ----------- */

/* --------  CONTENT ----------- */



#container, #container .content, .content .posts_short, .content .posts_long{
    height: 100%;
}

#container{
    display: flex;
    justify-content: center;
}

.content{
    max-width: 1920px;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    
    padding: 0;
    margin-left: 0px;
    box-sizing: border-box;
    z-index: 1;
}

.content .posts_short, .content .posts_long {
    flex: 1 1 auto;
    overflow-y: scroll;
    height: 100%;
}

.content .post{    
    /*box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.3);*/
    border: 1px solid rgb(60, 60, 60);
    overflow-wrap: break-word;
    word-wrap: break-word;
      -ms-word-break: break-all;
      /* This is the dangerous one in WebKit, as it breaks things wherever */
      word-break: break-all;
      /* Instead use this non-standard one: */
      word-break: break-word;

      /* Adds a hyphen where the word breaks, if supported (No Blink) */
      -ms-hyphens: auto;
      -moz-hyphens: auto;
      -webkit-hyphens: auto;
      hyphens: auto;
}



.content .post .info, 
.content .post .title{
    position: absolute;
    left:0;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size:90%;
}

.content .post .info{
    z-index: 4;
    top:0;
    padding: 1em;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.content .post .info .source_logo{
    width: 120px;
    height: 30px;
    max-height: 2em;
    max-width: 100px;
    font-weight: bold;
    font-size: 125%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.content .post .info .source_logo img{
    max-height: 100%;
    width: auto;
    border-radius: 2px;
}

.content .post .info .additional_info{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
.content .post .info .additional_info > * {
    margin: 0 6px;
}
.content .post .info .post_time{
    opacity: 0.80;
    max-width: 80px;
    text-align: right;
    font-size: 95%;
}

.content .post .info .likes .material-icons{
    opacity: 0.70;
    font-size:125%;
    vertical-align: middle;
    margin: 0 3px;
}

.content .msg{
    display:flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin:0 15vw;
    max-width: 1024px;
}


/* --------  CONTENT END ----------- */

/* --------  CONTENT SHORT ----------- */

.content .posts_short{
    width: 220px;
    flex-wrap: wrap;
    padding:60px 0;
    flex-shrink: 0;
    display: none;

}

.content .posts_short .post{

    position: relative;

    width:200px;
    height: 200px;
    margin: 10px; 
    background-color: rgba(0,0,0,0.85);
    border-radius: 5px;

    
}
.content .posts_short .post .title{
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
.content .posts_short .post > *:not(.title){
    border-radius: 5px;
}

.content .posts_short .post .background,
.content .posts_short .post .background_gradient,
.content .posts_short .post .description,
.content .posts_short .post .url{
    position: absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    
}
.content .posts_short .post .background{
    background-size:cover;
    background-position: center center;
}

.content .posts_short .post .background_gradient{
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    height: 70%;
}

.content .posts_short .post .description{
    z-index: 0;
    overflow:hidden;
    padding: 60px 10px 0px;
    font-size:90%;
    font-family: 'Roboto', sans-serif;
}

.content .posts_short .post .url{
    z-index: 3;
}


.content .posts_short .additional_info .likes{
    display: none;
}

.content .posts_short .post .title{
    z-index: 2;
    bottom: 0;
    background-color: rgba(0,0,0,0.80);
    display: block;
    padding: 0.5em 1em;
    max-height: 3.5em;
    overflow: hidden;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
   
}
/* --------  CONTENT SHORT END ----------- */

/* --------  CONTENT LONG ----------- */

#container > .content .posts_long .content_header{
    margin-top: -1.35em;
    text-align: right;
}

.content .posts_long{
    padding: 50px 5px 0;
    width:100%;
    max-width: 1920px;
    margin: auto;
}


.content .posts_long .post .info,
.content .posts_long .post .title, 
.content .posts_long .post .post_content{
    display: inline-block;
    position: relative;
    padding: 10px;
}
.content .posts_long .post{
    /*background-color: rgba(0,0,0,0.3);*/
    background-color: rgb(33,33,33);
    margin: 20px 0;
    border-radius:5px;
}

.content .posts_long .post .title{
    font-weight: bold;
    margin: 1em auto 1.5em;
}
.content .posts_long .post .title h2{
    margin:0;
}

.content .posts_long .post .info .likes .material-icons{
    font-size: 150%;
    opacity: 1;
}

.content .posts_long .post .info .post_time{
    opacity: 1;
    max-width: 500px;
    text-align: right;
    font-size: 100%;
}
.content .posts_long .post .post_content{
    text-align:justify;
    white-space: pre-line;

}
.content .posts_long .post .post_image{
    display: block;
    margin: 0 auto 1em;
}

.content .posts_long .post .post_buttons{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 1em auto;
    align-items: center;
}

.content .posts_long .post .post_buttons .button{
    margin: 0 10px;
    box-shadow: none; 
    opacity: 0.7;
    -webkit-transition: opacity .3s ease, background-color .3s ease, color .3s ease;
    transition: opacity .3s ease, background-color .3s ease, color .3s ease;
}

.content .posts_long .post .post_buttons .button:hover{
    opacity: 1;
}


  
/* --------  CONTENT LONG END ----------- */

/* --------  MEDIA ----------- */

@media screen and (max-width: 1024px) {
    #container > .content, #container > .content .posts_short{
        margin-left: 0px!important;
    }
    .content .msg{
        margin:0 15vw 0 calc(15vw + 80px);
    }

}

@media screen and (min-width: 480px) {
    
    #container > .content .posts_long{
        padding: 50px 10px 0;
    }
    
    #container > .content .posts_long .post{
        margin: 20px 0;
        padding: 20px;
    }
    
    .content .posts_long .post .info,
    .content .posts_long .post .title, 
    .content .posts_long .post .post_content{
        padding: 0;
    }
    
    #container > .content .posts_long .post .post_buttons{
        margin: 1em 10vw;
    }
    
}

@media screen and (min-width: 768px) {
    
    #container > .content .posts_short{
        display: block;
        width:240px;
        margin-right: -30px;
    }
    
    .button.small{
        width:40px;
        height:40px;
    }

    .button.small .material-icons{
        font-size: 20px;
    }
    
    .sources .add_form form.visible{
        max-height: 400px;
    }

}

@media screen and (min-width: 1024px) {
    
    
    #container > .content .posts_short{
        width:360px;
        padding:60px 0 0 10px;
        
    }
    
    #container > .content .posts_short .post{
        width:300px;
    }

    #container > .content .posts_long{

        padding: 50px 20px 0 10px;
    }

}

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

    #container > .content .posts_short{
        display: flex;
        width: 530px;
    }
    #container > .content .posts_short .post{
        height: 225px;
        width: 225px;
    }
    #container > .content .posts_short .post:nth-child(2){
        margin-top: 140px;
    }
    #container > .content .posts_short .post:nth-child(2n+1):not(:first-child){
        top: -120px;
    }
    #container > .content .posts_long{

        padding: 50px 30px 0 10px;
    } 
    
}

@media screen and (min-width: 1480px) {
    
    #container > .content .posts_short .post{
        width:300px;
        height: 300px;
    }
    
    #container > .content .posts_short{
        width: 690px;
        padding:50px 0 0 20px;
        margin-left:0;
    }
  
}

@media screen and (min-height: 600px) {
    
    .sidebar .top_items{
        overflow-y:hidden;
    }
}

/* --------  MEDIA END ----------- */