body {
    margin: 0;
    padding: 0;
    background: black;
    font-family: 'Lato', Arial, Helvetica, Garuda, sans-serif;
}

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

#bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

#bg img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    min-width: 55%;
    min-height: 50%;
}

#bg img.bg1 {
    animation: fadeIn 15s infinite alternate;
}

#bg img.bg2 {
    animation: fadeOut 15s infinite alternate;
}

@keyframes fadeIn {
    0% {
        opacity: 0.0
    }
    50% {
        opacity: 0.7
    }
    100% {
        opacity: 1.0
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1.0
    }
    50% {
        opacity: 0.7
    }
    100% {
        opacity: 0.0
    }
}

#titlebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 64px;
    width: 100%;
    background: white url('/themes/Default/css/controls/images/square_bg.png') center;
    z-index: 1;
    overflow: hidden;
    color: black;
}

#titlebar-content {
    margin: 0 10%;
    background: white;
    height: 64px;
}

#titlebar-logo {
    float: left;
    margin: 16px 0 16px 16px;
}

#titlebar-search-icon {
    float: left;
    margin: 16px 0 8px 8px;
}

#titlebar-search-icon .search-icon {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

#titlebar-search-icon.expanded .search-icon {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

.search-icon {
    background: url('icons.png') no-repeat;
    background-position: -350px -40px;
    width: 40px;
    height: 40px;
    display: inline-block;
}

#titlebar-basic-info {
    margin: 14px 6px;
    float: left;
    height: 32px;
    line-height: 18px;
    font-size: 12px;
}

#titlebar-extended-info {
    float: left;
    margin: 14px 0;
}

#titlebar-extended-info > a {
    height: 40px;
    width: 60px;
    background: url('icons.png') no-repeat;
    float: left;
    line-height: 32px;
}

#searchbox {
    display: none;
    position: fixed;
    top: 64px;
    width: 100%;
    z-index: 1;
}

#searchbox .searchbox-panel {
    width: 70%;
    margin: auto;
    background: white;
    border-radius: 0 0 10px 10px;
    padding-bottom: 5px;
}

#searchbox .searchbox-input {
    display: inline-block;
    margin: 5px 2% 5px;
    width: 96%;
    height: 24px;
    font-size: 16px;
    font-family: 'Lato', Arial, Helvetica, Garuda, sans-serif;
}

#searchbox .searchbox-loader {
    text-align: center;
}

#searchbox .searchbox-loader,
#searchbox .searchbox-empty {
    display: none;
}

#searchbox .searchbox-results {
    margin: 0 0 5px 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    overflow-x: hidden;
}

#searchbox .searchbox-empty {
    margin: 0 2% 5px;
    padding: 5px 0;
}

#searchbox .searchbox-results-item {
    font-size: 12px;
    margin: 0;
    padding: 5px 2%;
}

#searchbox .searchbox-results-item:hover {
    background-color: #0071bc;
}

#searchbox .searchbox-results-item:hover a {
    color: #fff;
}

#infobox {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
}

#infobox #infobox-lollipop {
    clear: both;
    text-transform: uppercase;
    min-width: 250px;
}

#infobox .infobox-lollipop-icon {
    width: 23px;
    height: 23px;
    display: inline-block;
    float: right;
    background: url('/themes/Default/css/controls/images/icon_event_today.png') no-repeat;
    cursor: pointer;
    transform: rotate(0deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

#infobox.expanded .infobox-lollipop-icon {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

#infobox-content {
    display: none;
    min-width: 250px;
}

#infobox .infobox-example {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 30px;
    float: left;
    clear: both;
    padding: 0;
    margin: 0;
}

#infobox .infobox-explanation {
    display: inline-block;
    float: left;
    padding: 0;
    margin: 5px;
}

#infobox .blue {
    background-color: rgba(52, 149, 255, 0.33);
}

#infobox .red {
    background-color: rgba(255, 0, 0, 0.33);
}

#infobox .yellow {
    background-color: rgba(255, 255, 0, 0.33);
}

#infobox .white {
    background-color: rgba(255, 255, 255, 0.33);
}

.count {
    font-size: 14px;
    float: left;
    margin-left: 35px;
}

.count:after {
    content: ')';
}

.count:before {
    content: '(';
}

#titlebar-extended-info > a.bio-photo-link {
    background-position: -63px 0;
}

#titlebar-extended-info > a.bio-video-link {
    background-position: -142px 0;
}

#titlebar-extended-info > a.bio-audio-link {
    background-position: -210px 0;
}

#titlebar-extended-info > a.bio-article-link {
    background-position: -280px 0;
}

#titlebar-extended-info > a.bio-external-link {
    background-position: -335px 0;
}

#titlebar-return {
    float: right;
    margin: 12px 15px 0 0;
}

#titlebar-return a {
    text-transform: uppercase;
    color: #9A9A9A;
    font-size: 18px;
    line-height: 40px;
    height: 40px;
    display: inline-block;
}

#titlebar-return a:before {
    content: url('back.png');
    float: left;
    margin-right: 10px;
}

.bio-name {
    text-transform: uppercase;
    font-size: 18px;
}

.bio-activities {
    clear: both;
    margin-top: 5px;
}

.bio-activities-list {
    margin: 0;
    padding: 0;
    list-style: disc inside;
}

.bio-activities-list-item {
    margin: 0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

@media screen and (max-width: 1080px) {
    #titlebar-content {
        margin: 0;
    }
}

@media screen and (max-width: 890px) {
    #titlebar,
    #searchbox {
        zoom: 0.75;
    }
}

@media screen and (max-width: 640px) {
    #titlebar,
    #searchbox {
        zoom: 0.6;
    }
}

.balloon {
    position: absolute;
    color: black;
    padding: 5px;
    font-size: 12px;
}

.balloon .bio-info,
.balloon .bio-activities {
    background: rgba(255, 255, 255, 0.85);
    padding: 5px;
}

.balloon .bio-name {
    font-size: 16px;
    float: left;
}

.balloon .bio-extended {
    height: 20px;
}

.bio-switch-link,
.balloon .bio-extended > a {
    float: left;
    width: 40px;
    height: 20px;
    display: inline-block;
    background: url('icons.png') no-repeat;
    margin: 0 8px;
}

.bio-switch-link {
    width: 20px;
    background-position: -273px -46px;
}

.bio-close-link {
    float: right;
    width: 20px;
    margin-left: 10px;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    background-image: none;
}

.balloon .bio-details,
.balloon .bio-extended {
    margin: 5px 0;
    clear: both;
}

.balloon a.bio-biography-link {
    background-position: -9px -46px;
}

.balloon a.bio-photo-link {
    background-position: -48px -46px;
}

.balloon a.bio-video-link {
    background-position: -109px -46px;
}

.balloon a.bio-audio-link {
    background-position: -163px -46px;
}

.balloon a.bio-article-link {
    background-position: -217px -46px;
}

.balloon a.bio-external-link {
    float: right;
    width: 30px;
    background-position: -309px -46px;
}

.balloon .count {
    margin-left: 22px;
}

#fancybox-close {
    top: 0;
    right: 0;
    background: #7B7B7B url('/themes/Default/css/controls/images/accept_cookie.png') no-repeat;
}

#fancybox-title {
    font-family: 'Lato', Arial, Helvetica, Garuda, sans-serif;
    font-size: 14px;
}

.fancybox-title-inside {
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    bottom: 0;
}

#fancybox-left-ico {
    background: url('/themes/Default/css/controls/images/cbox_prev.png');
    width: 35px;
    height: 105px;
    margin-top: -53px;
    margin-left: -18px;
}

#fancybox-right-ico {
    background: url('/themes/Default/css/controls/images/cbox_next.png');
    width: 35px;
    height: 105px;
    margin-top: -53px;
    margin-right: -18px;
}

.fancyboxTemplate .bio-content {
    overflow-y: scroll;
    font-size: 14px;
    padding: 0 15px 0 5px;
}

.fancyboxTemplate .bio-details {
    font-size: 14px;
}

.fancyboxTemplate .bio-volume-info {
    font-size: 12px;
    background-image: url('/themes/Default/css/controls/images/info.png');
    background-repeat: no-repeat;
    background-position: 5px 5px;
    padding: 5px 0 5px 30px;
    margin: 5px 0;
}

#fancybox-title .bio-photo-external,
#fancybox-title .bio-photo-source {
    display: inline-block;
    padding: 0 10px;
}

#fancybox-title .bio-photo-external {
    float: left;
    text-align: left;
}

#fancybox-title .bio-photo-source {
    float: right;
    text-align: right;
}

.fancyboxTemplate .bio-audio-items {
    overflow-y: auto;
}

.fancyboxTemplate .bio-audio-item {
    width: 50%;
    float: left;
    min-height: 42px;
    background: url('/themes/Default/css/controls/images/related_audio.png') no-repeat 5px 5px;
    margin: 5px 0;
}

.fancyboxTemplate .bio-audio-title {
    display: inline-block;
    margin: 5px 0 0 52px;
    color: #0071BB;
    font-size: 14px;
    font-weight: bold;
}

.fancyboxTemplate .bio-audio-playcount {
    margin: 3px 0 0 52px;
    color: #a8a8a8;
    font-size: 12px;
}

.fancyboxTemplate .bio-video-items {
    overflow-y: auto;
}

.fancyboxTemplate .bio-video-item {
    width: 33%;
    float: left;
    min-height: 130px;
    margin: 5px 0;
}

.fancyboxTemplate .bio-video-thumblink {
    float: left;
    margin: 5px 5px 10px;
    height: 123px;
    width: 134px;
}

.fancyboxTemplate .bio-video-title {
    display: inline;
    margin: 5px 0;
    color: #0071BB;
    font-size: 14px;
    font-weight: bold;
}

.fancyboxTemplate .bio-video-description {
    font-size: 12px;
    margin-bottom: 5px;
}

.fancyboxTemplate .bio-video-playcount {
    color: #a8a8a8;
    font-size: 12px;
    float: left;
    margin-left: 145px;
    margin-top: -5px;
}

.bottom-buttons {
    position: fixed;
    top: 88px;
    left: 20px;
    z-index: 2;
}

.bottom-buttons > .btn {
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 0px;
}

.bottom-buttons > .btn.active {
    background: rgb(255, 255, 255);
    color: #842424;
}


/* Biogramy Header */
header {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #616161;
}

header h1 > a {
    text-decoration: none !important;
}

header .container {
    max-width: 100%;
    padding: 0px 40px;
}

header .top-header {
    background: #3d3d3d;
    height: 24px;
    line-height: 24px;
    color: #fff;
    font-size: 1.2rem;
}

header .top-header .left-col > a {
    color: #fff;
    font-size: 11px;
    margin: 0 95px 0 3px;
    line-height: 24px;
    display: block;
    height: 100%;
    float: left;
    text-decoration: none;
}

header .bottom-border {
    position: relative;
    height: 8px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}

header .bottom-border:before,
header .bottom-border:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 100%;
}

header .bottom-border:before {
    top: 0;
    left: 0;
    background-color: #FFF;
}

header .bottom-border:after {
    top: 4px;
    left: 0;
    background-color: #e20612;
}

header #searchbox {
    display: block;
    position: unset;
    padding-top: 12px;

    padding-right: 32px;

    float: right;
    width: auto;
}

header #searchbox .searchbox-panel {
    background: none;
    margin: 0px;
    padding: 0px;
    width: 100%;
}

header #searchbox .searchbox-input {
    margin: 0px;
    height: 32px;
    width: calc(320px - 15px);
    padding: 0px 0px 0px 15px;
    line-height: 32px;
    border: 0px;
    font-size: 17px;
}


header #searchbox .searchbox-input {
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.45);
    -moz-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.45);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.45);
}
header #searchbox .searchbox-panel{
    position: relative;
    z-index: 20;
}
header #searchbox .searchbox-panel input[type="submit"] {
    content: '';
    height: 32px;
    width: 32px;
    margin: 0px;
    border: 0px;
    color: #FFF;
    background: #e6272c url(/themes/Default/css/controls/images/icon-search.jpg) center center no-repeat;
    padding: 0;
    position: absolute;
    right: -33px;
    top: 0px;
}

header #searchbox .searchbox-results{
    position: absolute;
    width: 369px;
}
header #searchbox .searchbox-results-item{
    padding: 0px;
}

header #searchbox .searchbox-results .searchbox-results-item > a{
    color: #808080;
    display: block;
    position: relative;
    width: 100%;
    font-size: 15px;
    background: #FFF;
    border-top: 1px solid #6161612e;
    padding: 2px 10px;

}

header #searchbox .searchbox-results .searchbox-results-item > a > div{
    display: inline;
    font-size: 13px;
}

.searchbox-results a .type.IPSB {
    background-image:url(/themes/Default/css/controls/images/searchlist_logo_ipsb.png);
    background-size:35px auto;
}
.searchbox-results a .type.biogramyPL {
    background-image:url(/themes/Default/css/controls/images/searchlist_logo_biogramy.png);
    background-size: 60px auto;
}

.searchbox-results .type {
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    width: 70px;
    background-repeat: no-repeat;
    background-position: right center;
    text-indent: -10000px;
    overflow: hidden;
}

header #searchbox .searchbox-results .searchbox-results-item > a:hover {
    background-color: #e6272c;
    text-decoration: none;
}