#promo, #promo * { z-index: 0 !important; }
a.card {
    text-decoration: none;
    color: inherit;
}
a.card:hover,
a.card:focus {
    animation: glow ease-in-out 1s;
    animation-iteration-count: 1;
    transform-origin: 50% 50%;
}
.card>header {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.card>header>.badge {
    display: block;
    position: absolute;
    bottom: 8px;
    right: -48px;
    transform: rotate(-30deg);
    padding: 1em 5em;
}
.card .profile-img {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: auto;
    top: 50%;
}
.size-hack>iframe {
    position: absolute;
    top:0;bottom:0;left:0;right:0;
}
.size-hack {
    position: relative;
    width: 100%;
    background-size: cover;
}
.size-hack:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.size-996x325:before { padding-top: calc(325 / 996 * 100%); }
.size-1x1:before { padding-top: 100%; }
.size-2x1:before { padding-top: 50%; }
.size-1x2:before { padding-top: 200%; }
.size-16x9:before { padding-top: calc(9 / 16 * 100%); }
.size-16x10:before, .size-8x5:before { padding-top: calc(10 / 16 * 100%); }
.size-4x3:before { padding-top: calc(3 / 4 * 100%); }
.size-7x5:before { padding-top: calc(5 / 7 * 100%); }
/* main navigation */
#menu { z-index: 10; }
#menu:before, #menu:after { content: " "; display: table; }
#menu:after { clear: both; }
#menu a { transition: background .5s, height .3s; position: relative; z-index: 10; }
#menu a .fa { margin-right: .2rem; box-sizing: content-box; }
/* custom headers */
header.contact {
    background-color: #333;
    background-image: url("https://pp.userapi.com/c824409/v824409054/578d0/6P2bf4QOREw.jpg");
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    color: #fff;
}
header.about {
    background-color: #000;
    background-image: url("https://pp.userapi.com/c824409/v824409054/578da/ZG62SLmj02Q.jpg");
    background-size: auto 125%;
    background-position: 80% 0;
    background-repeat: no-repeat;
    color: #fff;
}
header.music {
	background: url("http://cs631828.vk.me/v631828969/3e3e0/c89mtgsKJ2k.jpg");
	background-position: center;
	min-height: 360px;
}
header.radiopage {
	background: #000;
	background-image: url("http://cs631828.vk.me/v631828969/3e7ac/ZlDUi_WEwHE.jpg");
	background-position: 30% 50%;
	background-size: cover;
	color: #fff;
	text-shadow: -1px 0px 3px #000, 0px -1px 3px #000, 0px -2px 3px #000, 0px 0px 1em #fff;
}
header.projects {
    background-image: url("https://pp.userapi.com/c621702/v621702969/23d8/2C8vqJAJWwc.jpg");
    background-position: 50% 22%;
    background-size: cover;
    color: #fff;
}
header.projects>* {
    text-shadow: 0 0 1em #000;
    text-shadow: 0 0 1em #000, 0 0 2em #000, 0 0 3em #000;
}
header.friends {
    color: #fff;
    background-size: cover;
    background-position: center;
}
header.vt {
    background-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 58%, rgba(0,0,0,0) 100%), url(/assets/img/pages/header/vt.jpg);
    background-size: auto, cover;
    background-position: center, 50% 33%;
    color: #fff;
    text-shadow: 0 0 1em #000;
    text-shadow: 0 0 1em #000, 0 0 2em #000, 0 0 3em #000;
}
/* making nice footer */
.pre-footer {
	height: 480px;
	width: 100%;
	background-image: url("../img/footer-wheat-black.png");
	background-size: auto 480px;
	background-position: 50% 100%;
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-origin: border-box;
}
.page-footer {
	background: #000;
	color: #fff;
	padding: 1em 0 2em 0;
}
/* facebook comments zero-width fix */
#comments-fb .fb-comments iframe {
    width: 100% !important;
}
/* vk comments height fix */
#vk_comments {
    min-height: 200px;
}
#vk_comments iframe {
    height: 100% !important;
    min-height: 200px;
}
/* some fixes for spoilers */
.spolier-head {
	display: block;
}
.spoiler-body {
	display: none;
	margin: 1em 0;
}
/* text fixes */
dd > p { margin-bottom: 0; }
dd > p:last-child { margin-bottom: .5em; }
/* make glyphs more readable */
.btn > .fa {
	margin-right: 0.5em;
}
/* not for player */
.player .btn>.fa {
    margin-right: auto !important;
}
/* not for pager */
.pager .btn>.fa {
    margin-right: auto !important;
}
/* carousel modifications */
.carousel {
	min-height: 300px;
}
.carousel-control.left, .carousel-control.right {
	color: #000;
}
.carousel-control.left {
	background: linear-gradient(90deg, #fff, rgba(255,255,255,0.25));
}
.carousel-control.right {
	background: linear-gradient(2700deg, #fff, rgba(255,255,255,0.25));
}
@media (max-width: 767px) {
    .carousel .item {
        text-align: center;
        padding-left: 15%;
        padding-right: 15%;
    }
}
.carousel .item h2 {
	margin-top: 0.3em;
}
/* make columns for music catalogue */
.catalogue {
    columns: 15em;
    column-fill: auto;
    /*display: flex;
    flex-wrap: wrap;*/
}
.catalogue .catalogue-item {
    break-inside: avoid;
    break-before: left;
    break-after: left;
}
.catalogue-item .catalogue-item-description {
    opacity: 0;
    transition: opacity ease .3s;
}
.catalogue-item .catalogue-item-description:hover {
    opacity: 1;
}
/* resizing chat window */
#chat-wrapper, #chat-wrapper .chatbro_chat { height: 480px !important; }
@media (min-width: 768px) {
    #chat-wrapper, #chat-wrapper .chatbro_chat { height: 510px !important; }
}
@media (min-width: 992px) {
    #chat-wrapper, #chat-wrapper .chatbro_chat { height: 630px !important; }
}
@media (min-width: 1200px) {
    #chat-wrapper, #chat-wrapper .chatbro_chat { height: 697px !important; }
}
/* fix attachments' size in chat */
.chatbro_message_photo_attachment_preview {
    max-height: 320px !important;
    width: auto !important;
}
/* search results on radio page */
#search-results {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}
#search-results .thumbnail {
    flex-basis: calc(50% - .5em);
    display: flex;
    margin-bottom: 1em;
}
@media (max-width: 767px) {
    #search-results .thumbnail {
        flex-basis: 100%;
    }
}
#search-results .thumbnail h4>small {
    display: block;
    margin-top: .5em;
}
#search-results .thumbnail .cover-thumb {
    background-size: cover;
    background-position: center;
    margin: -4px 4px -4px -4px;
}
#search-results .thumbnail .description {
    padding-right: 0;
}
#search-results .thumbnail .description .btn-request {
    margin-right: -4px;
    margin-bottom: -4px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}
/* Animations */
@keyframes glow {
    0% { box-shadow: 0 0 0 0 #ccc; }
    50% { box-shadow: 0 0 5em 0 #ccc; }
    100% { box-shadow: 0 0 0 0 #ccc; }
}