/* ###   Reset default CSS   ### */
body               { padding: 0; margin: 0; background: #fcfcfc; }
a 				   { color: blue; text-decoration: none; outline: none; }

/* ###   Menu for mobiles   ### */
.mobile-menu-blackout       { position: fixed; z-index: 5; top: 0; left: 0; height: 100%; width: 100%; display: none; background: rgba(0,0,0,0.75); }
.mobile-menu-button         { display: none; margin: 0; }
.mobile-menu-button-login   { display: none; margin: 0; }
.mobile-menu-button-logout  { display: none; margin: 0; }
.mobile-menu-button-text    { font-size: 18px; }

/* ###   Header   ### */
.header                   { position: fixed; z-index: 10; top: 0px; left: 0px; height: 48px; width: 100%; background: rgba(34,34,34,0.95); font-family: 'Open Sans', sans-serif; font-weight: 600; transition: 0.5s all; }
.header-wrap              { position: relative; margin: 0 auto; height: 48px; width: 1800px; }
.header-mobile-menu       { display: none; }

.header-logo              { position: absolute; top: 12px; left: 15px; height: 28px; width: auto; }
.header-button-wrapper    { position: absolute; bottom: 0px; right: 10px; }
.header-button            { position: relative; margin: 0 10px; float: left; user-select: none; cursor: pointer; color: white; font-size: 18px; font-weight: 600; line-height: 48px; transition: 0.2s all; }
.header-button:hover      { color: #ADD1FC }
.header-button-spread     { margin: 16px 10px 0 10px; height: 18px; width: 1px; float: left; background: #aaa; }

.header-nick              { max-width: 100px; overflow: hidden; font-size: 14px; font-weight: 300; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; transition: color 0.5s, max-width 2s; }
.header-nick:hover        { max-width: 1000px; }
.header-logout            { position: relative; margin: 0 5px; float: left; user-select: none; cursor: pointer; color: #777; font-size: 14px; font-weight: 600; line-height: 48px; transition: 0.2s all; }
.header-logout:hover      { color: #aaa }

/* ###   Footer   ### */
.footer                   { position: relative; padding: 10px 20px; margin: 50px auto 0 auto; width: calc(100% - 40px); font-family: 'Open Sans', sans-serif; font-size: 25px; text-align: left; background: #2a2d38; box-shadow: 0 -5px 10px #0000004d; }
.footer-wrap              { margin: 10px auto; max-width: 1200px; width: calc(100% - 40px); }
.footer-logo              { margin-top: 10px; height: 30px; width: auto }
.footer-icon              { position: relative; margin-left: 10px; padding-top: 13px; float: right; color: #b1b1b1; transition: 0.5s all; }
.footer-icon-fb:hover       { color: #5b79b8; }
.footer-icon-twitter:hover  { color: #65bcfe; }
.footer-icon-reddit:hover   { color: #ff4500; }

/* ###   Background wrap   ### */
.backwrap                 { position: relative; overflow: hidden; height: 200px; width: 100%; }
.backwrap-image           { position: absolute; top: -10%; left: -10%; height: 120%; width: 120%; background: url('http://res.frozent.pl/live/backgrounds/allnews_background.jpeg'); background-size: cover; background-repeat: no-repeat; filter: blur(3px); }

/* ###   Wrap   ### */
.wrap                     { position: relative; width: 100%; border-top: 5px solid #3A718C; background: #fdfdfd; }
.wrap-centerize           { position: relative; margin: 20px auto 0 auto; width: 1200px; }

/* ###   News Wrap   ### */
.wrap-news                { margin: 0 auto 10px auto; width: 1200px; text-align: center; }
.wrap-news:after          { content: ''; display: block; clear: both; }
.wrap-news-header         { position: relative; z-index: 1; margin: 0 auto 10px auto; padding: 10px 0; width: calc(100% - 60px); color: black; font-family: 'Titillium Web', sans-serif; font-size: 26px; letter-spacing: 3px; }
.wrap-news-card:hover .wrap-news-background { box-shadow: 0 10px 20px -5px rgba(123,123,123,0.6); filter: brightness(90%) }
.wrap-news-card           { position: relative; vertical-align: top; float: left; margin: 5px 5px 20px 5px; padding: 2px; width: calc(33.33% - 14px); }
.wrap-news-background     { position: relative; height: 200px; width: 100%; background-position: center center; background-size: cover; transition: box-shadow 0.25s, filter 0.25s; }
.wrap-news-title          { overflow: hidden; padding-top: 15px; color: black; font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: bold; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.wrap-news-date           { padding-top: 10px; color: #999; font-family: 'Open Sans', sans-serif; font-size: 14px; text-align: left; }
.wrap-news-date-icon      { margin-right: 3px; }

.wrap-news-nav            { position: relative; margin: 30px 0; height: 24px; width: 100%; }
.wrap-news-nav-pages      { position: absolute; user-select: none; top: 0; left: 0; width: 100%; color: #8c8c8c; font-family: 'Titillium Web', sans-serif; text-align: center; line-height: 24px; }
.wrap-news-nav-prev       { left: 20px; }
.wrap-news-nav-next       { right: 20px; }
.wrap-news-nav-button     { position: absolute; z-index: 1; cursor: pointer; top: 0; color: #aaaaaa; font-family: 'Titillium Web', sans-serif; text-align: right; line-height: 24px; transition: color .25s;  }
.wrap-news-nav-button:hover  { color: #30395a; }
.wrap-news-nav-icon       { margin: 0 15px; }
.wrap-news-nav-text       { display: inline-block; }


/* ###   Desktop (from 971px to 1800px width)   ### */
@media (max-width: 1800px) and (min-width: 971px){
    /* ###   Header   ### */
    .header-wrap       { position: relative; margin: 0 auto; height: 48px; width: 100%; }
    /* ###   News Wrap   ### */
    .wrap-news-header  { width: calc(100% - 60px) }
}
/* ###   Small Desktops (from 1001px to 1200px width)   ### */
@media (max-width: 1200px) and (min-width: 1001px){
    /* ###   Header   ### */
    .header-wrap       { position: relative; margin: 0 auto; height: 48px; width: 100%; }
    /* ###   Footer   ### */
    .footer-wrap       { width: calc(100% - 80px) }
    /* ###   Wrap   ### */
    .wrap              { min-height: calc(100vh - 342px); }
    .wrap-centerize    { width: 100%; }
    /* ###   News Wrap   ### */
    .wrap-news             { width: 100%; }
    .wrap-news-header      { width: calc(100% - 60px) }
    .wrap-news-title       { word-wrap: break-word; }
    .wrap-news-background  { height: 150px; }
}
/* ###   Tablet (from 768px to 1000px width)   ### */
@media (max-width: 1000px) and (min-width: 768px){
    /* ###   Header   ### */
    .header-wrap       { position: relative; margin: 0 auto; height: 48px; width: 100%; }
    .header-logo       { position: absolute; z-index: 9; top: 13px; left: 13px; height: 22px; width: auto; }
    /* ###   Footer   ### */
    .footer-wrap       { width: calc(100% - 80px); }
    /* ###   Wrap   ### */
    .wrap              { min-height: calc(100vh - 342px); }
    .wrap-centerize    { width: 100%; }
    /* ###   News Wrap   ### */
    .wrap-news             { width: 100%; }
    .wrap-news-header      { width: calc(100% - 60px) }
    .wrap-news-title       { word-wrap: break-word; }
    .wrap-news-background  { height: 150px; }
}
/* ###   Phones (from 120px to 767px width)   ### */
@media (max-width: 767px) and (min-width: 120px){
    /* ###   Header   ### */
	.header                { position: fixed; z-index: 10; top: 0px; left: 0px; height: 54px; width: 100%; background: rgba(34,34,34,0.95); transition: 0.5s all; }
	.header-wrap           { position: relative; margin: 0 auto; height: 54px; width: 100%; }
	.header-logo           { position: absolute; z-index: 9; top: 15px; left: 10px; height: 24px; width: auto; }
    .header-button-wrapper { position: absolute; bottom: 0px; right: 90px; }
    .header-mobile-menu    { position: absolute; display: inline-block; cursor: pointer; top: -45px; right: -65px; color: white; font-size: 24px; }
	.header-button, .header-nick, .header-button-spread, .header-logout { display: none; }
    /* ###   Menu for mobiles   ### */
    .mobile-menu               { position: fixed; z-index: 10; top: 52px; left: 0; right: 0; }
	.mobile-menu-button        { position: relative; display: none; user-select: none; cursor: pointer; overflow: hidden; padding: 10px 15px; width: calc(100% - 30px); float: left; color: white; font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 600; text-align: center; white-space: nowrap; background: rgba(50,50,50,0.95); border-bottom: 1px solid #111; transition: 0.5s all; }
	.mobile-menu-button-login  { position: relative; display: none; user-select: none; cursor: pointer; overflow: hidden; padding: 15px 15px; width: calc(100% - 130px); float: left; color: white; font-family: 'Open Sans', sans-serif; text-overflow: ellipsis; line-height: 24px; white-space: nowrap; text-transform: uppercase; text-align: center; white-space: nowrap; background: rgba(35,35,35,0.95); border-bottom: 1px solid #111; transition: 0.5s all; }
	.mobile-menu-button-logout { position: relative; display: none; user-select: none; cursor: pointer; overflow: hidden; padding: 15px 15px; width: 70px; float: left; color: white; font-family: 'Open Sans', sans-serif; font-weight: 300; line-height: 24px; text-align: center; white-space: nowrap; background: rgba(20,20,20,0.95); border-bottom: 1px solid #111; transition: 0.5s all; }
    /* ###   Footer   ### */
    .footer               { padding: 5px 20px; }
    .footer-wrap          { margin: 0 auto; padding: 5px 10px; width: calc(100% - 40px); }
	.footer-logo          { margin-top: 10px; height: 20px; width: auto }
    .footer-icon          { font-size: 18px; }
    /* ###   Wrap   ### */
    .wrap-centerize       { width: 100%; }
    /* ###   News Wrap   ### */
    .wrap-news            { width: 100%; }
    .wrap-news-title       { word-wrap: break-word; }
    .wrap-news-card       { margin: 5px 25px; padding: 2px; width: calc(100% - 54px); }
    .wrap-news-background { height: 200px; }
    .wrap-news-title      { text-align: center; }
    .wrap-news-date       { text-align: center; }
    
    .wrap-news-nav-text   { display: none; }
}