#main,#header,#footer {
  max-width: 960px;
  margin: auto;
}

#header {
  padding-bottom: 0;
}

#main {
  padding: 0 7px 7px 7px;
}

#db-results-ul-ajax {
  padding: 0 !important;
  margin: 0 !important;
}

.img-beta {
  max-width: 50px;
  margin-bottom: 20px;
}

#brand {
  margin: 0;
}

#slogan {
  color: #555 !important;
  margin: 6px;
  font-size: .7rem;
  font-weight: 500 !important;
}

#slogan a {
  font-size: .7rem;
  font-weight: 500 !important;
}

#brand-wrapper {
  margin: 0 13px 0 0;
  display: inline-block;
  float: left;
}

#selection-wrapper {
  display: inline-block;
  margin: 0 0 5px 0!important;
  vertical-align: top;
}

#selection-wrapper .ui-btn-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  border: 2px solid #444;
  max-width: 130px;
  line-height:16px !important;
}

.button-image .ui-btn-inner{
  padding: 0 5px !important;
  border: 2px solid #444;
  height: 36px;
}


.button-image  img{
  margin:10px 2px 10px 0;
}

.ui-checkbox .ui-btn-text img{
  float:right
}


#search-wrapper {
  width: 270px;
  display: inline-block;
  margin: 2px 5px 5px 3px;
}

#search-wrapper .ui-input-search {
  border: 2px solid #444;
}

.ui-input-search {
  margin: 0 0 7px 0;
}

.filter-bar {
  height: 50px;
  display: none;
}
/*
.type-filter {
  float: right;
}
*/
.menu-button {
  position: absolute;
  right: 2px;
  margin: 2px 2px 0 0;
  color: #333 !important;
}

.organisation-info-box {
  display: block;
  background-color: #e4f1f4;
  border-radius: 10px;
  font-size: .8rem;
  padding: 5px 5px 5px 0;
}

.new-content {
  display: none;
}

.tags2 .ui-btn {
  margin-left: 0;
}

.close-button {
  float: right;
  clear: both;
  padding: 0 0 20px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.lt-ie8 #search-wrapper,.lt-ie8 #selection-wrapper,.lt-ie8 #brand-wrapper {
  float: left;
  margin-top: 5px;
}

.hidden-mobile {
  display: none;
}

.item {
  min-height: 95px;
}

.item .ui-li-thumb img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  margin: auto;
  max-height: 93px;
  min-width: 75px;
  max-width: 80px;
}

.item_img {
  max-height: 170px;
}

.item_img_3d {
  float: right;
  max-width: 38%;
  margin: 7px 5px 5px 5px;
  position: relative;
  -moz-perspective: 100px;
  transform: rotate(-2deg);
  -moz-transform: rotateY(-15deg);
  -ms-transform: rotate(1deg);
  -o-transform: rotate(-3deg);
  -webkit-transform: perspective(100) rotateY(-2deg);
  outline: 1px solid transparent;
}

.item_img_3d:before,.item_img_3d:after {
  position: absolute;
  top: .5%;
  height: 95%;
  content: ' ';
  z-index: -1;
}

.item_img_3d:before {
  width: 95%;
  left: 7.5%;
  background-color: #923e3f;
  box-shadow: 2px 5px 6px #555;
}

.item_img_3d:after {
  width: 5%;
  left: 97%;
  background-color: #efefef;
  box-shadow: inset 0 0 5px #aaa;
  -moz-transform: rotateY(15deg);
  -webkit-transform: perspective(100) rotateY(20deg);
}

.person {
  line-height: 1.8em;
  text-decoration: none;
  margin-right: 10px;
}

.publisher,.year,.edition,.description {
  line-height: 1.8em;
}

.description {
  line-height: 1.4em;
}

.formatnav {
  margin-bottom: 20px;
}

.formatnav .ui-btn {
  margin: 7px 4px 0 0;
}

.info_url {
  margin-left: 0;
}

.eisbn {
  font-size: 11px;
  font-size: .7rem;
  color: #555;
  line-height: 1.8em;
}

.url {
  font-size: 11px;
  font-size: .7rem;
  color: #555;
  line-height: 1.8em;
}

.url-index {
  color: #006300;
  margin-bottom:0.6rem;
}

.feed {
  margin:0rem 1rem 2rem 0rem;
}

.feed .ui-link {
  font-size:0.8rem;
}

.type-grid img{
  max-width: 150px;
  min-width: 115px;
  max-height: 225px;
  padding-bottom:5px;
}

.type-grid .ui-block-a,
.type-grid .ui-block-b,
.type-grid .ui-block-c,
.type-grid .ui-block-d {
  float: left;
  width: 49.95%;
  min-height: 140px;
}

.language {
  font-size: 11px;
  font-size: .7rem;
  color: #555;
  line-height: 1.8em;
  margin-right: 6px;
}

.socialcount {
  margin: 20px 0 20px 0;
}

#tagcloud {
  padding: 15px 10px 10px 10px;
  line-height: 32px;
}

#tagcloud a {
  margin-right: 25px;
}

#tagcloud a:link,#tagcloud a:visited {
  text-decoration: none;
  font-family: monospace,verdana,arial,helvetica,sans-serif;
}

#tagcloud a:hover,#tagcloud a:active {
  color: #fff !important;
  text-decoration: none;
  background-color: #111;
}

#organisation_selector {
  margin: 15px;
  border: 0;
}

.ui-listview {
  background: 0;
}

#organisation_selector li {
  padding: 0;
  border: 0;
}

label {
  white-space: normal;
}

.pagination {
  margin-bottom: 35px;
}

.pagination .ui-btn-inner {
  padding: .9em 18px .8em;
}

#footer {
  clear: both;
  padding: 10px 5px 0 5px;
  font-size: 10px;
  font-size: .6rem;
  color: #999;
  line-height: 1.5;
  float: right;
}

#footer a {
  text-decoration: none;
  font-weight: normal !important;
}

.navbar {
  margin: 15px 4px -16px 5px !important;
}

.navbar .ui-btn {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#db-results-ul-ajax .ui-last-child {
  margin-bottom: 30px;
}

/*
.ui-li-divider {
  background: linear-gradient(#db5f00,#c35500) repeat scroll 0 0 #a84900;
  border: 1px solid #a84900;
  text-shadow: 0 1px 0 #a84900;
}
*/

#availability, .interesting {
  margin: 25px 0 20px 0;
}

.available-text-touch {
	font-weight:normal;
	font-size:smaller;
	white-space: normal !important 
}

.alert {
  margin: 10px 25px 25px 25px;
  padding: 25px;
  border-radius: 5px;
  color: #468847;
  background-color: #dff0d8;
}

@media screen and (min-width:600px) {
  .type-grid .ui-block-a,
  .type-grid .ui-block-b,
  .type-grid .ui-block-c,
  .type-grid .ui-block-d {
    float: left;
    width: 25%;
  }
}


@media screen and (min-width:768px) {
  #content {
    width: 67%;
    float: right;
  }

  #sidebar {
    width: 29%;
    float: left;
  }
  
  #sidebar-horizontal-menu{text-align:center;margin:0;margin-top:30px;}
  
  #sidebar-horizontal-menu .ui-btn-inner{padding-left:19px}

  #search-wrapper {
    float: right;
    margin: 18px 5px 0 8px;
	width: 400px
  }

  #selection-wrapper {
    float: right;
    margin: 16px 5px 0 0 !important;
  }

  /*
  .html-content img {
    max-width: 250px;
    padding-right: 10px;
  }
  */

  .html-content table {
    padding-bottom: 35px;
  }

  /*
  .featured {
    padding: 15px;
  }

  .featured img {
    max-width: 250px;
    max-height: 170px;
    padding: 0 15px 0 0;
  }
  */
  
  .type-grid .ui-block-a,
  .type-grid .ui-block-b,
  .type-grid .ui-block-c,
  .type-grid .ui-block-d {
    float: left;
    width: 25%;
  }

  .new-content {
    display: block;
  }

  #open-new-content {
    display: none;
  }

  .item_img {
    float: right;
    padding: 0 5px 10px 12px;
    max-width: 100%;
    max-height: 600px;
  }

  .navbar .ui-btn {
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
  }

  .menu-button {
    display: none;
  }

  .hidden-mobile {
    display: block;
  }
}

.lt-ie9 #content {
  width: 67%;
  float: right;
  padding-left: 4%;
}

.lt-ie9 #sidebar {
  width: 29%;
  float: left;
  margin-top: 8px;
}

.lt-ie9 #search-wrapper {
  width: 300px;
  float: right;
  margin: 0 5px 0 0;
}

.ui-bar-e {
  border: 1px solid #ccc;
  background: #ccc;
  color: #000;
  font-weight: bold;
  text-shadow: 0 1px 0 #eee;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#e0e0e0),to(#b7b7b7));
  background-image: -webkit-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -moz-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -ms-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -o-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: linear-gradient(#e0e0e0,#b7b7b7);
}

.ui-bar-e .ui-link-inherit {
  color: #000;
}

.ui-bar-e a.ui-link {
  color: #7cc4e7;
  font-weight: bold;
}

.ui-bar-e a.ui-link:visited {
  color: #2489ce;
}

.ui-bar-e a.ui-link:hover {
  color: #2489ce;
}

.ui-bar-e a.ui-link:active {
  color: #2489ce;
}

.ui-bar-e,.ui-bar-e input,.ui-bar-e select,.ui-bar-e textarea,.ui-bar-e button {
  font-family: Helvetica,Arial,sans-serif;
}

.ui-body-e,.ui-overlay-e {
  border: 1px solid #aaa;
  color: #333;
  text-shadow: 0 1px 0 #fff;
  background: #f9f9f9;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#eee));
  background-image: -webkit-linear-gradient(#f9f9f9,#eee);
  background-image: -moz-linear-gradient(#f9f9f9,#eee);
  background-image: -ms-linear-gradient(#f9f9f9,#eee);
  background-image: -o-linear-gradient(#f9f9f9,#eee);
  background-image: linear-gradient(#f9f9f9,#eee);
}

.ui-overlay-e {
  background-image: none;
  border-width: 0;
}

.ui-body-e,.ui-body-e input,.ui-body-e select,.ui-body-e textarea,.ui-body-e button {
  font-family: Helvetica,Arial,sans-serif;
}

.ui-body-e .ui-link-inherit {
  color: #333;
}

.ui-body-e .ui-link {
  color: #2489ce;
  font-weight: bold;
}

.ui-body-e .ui-link:visited {
  color: #2489ce;
}

.ui-body-e .ui-link:hover {
  color: #2489ce;
}

.ui-body-e .ui-link:active {
  color: #2489ce;
}

.ui-btn-up-e {
  border: 1px solid #ccc;
  background: #ccc;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 #eee;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#e0e0e0),to(#b7b7b7));
  background-image: -webkit-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -moz-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -ms-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: -o-linear-gradient(#e0e0e0,#b7b7b7);
  background-image: linear-gradient(#e0e0e0,#b7b7b7);
}

.ui-btn-up-e:visited,.ui-btn-up-e a.ui-link-inherit {
  color: #000;
}

.ui-btn-hover-e {
  border: 1px solid #eaeaea;
  background: #eaeaea;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 #eee;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#d2d2d2));
  background-image: -webkit-linear-gradient(#fff,#d2d2d2);
  background-image: -moz-linear-gradient(#fff,#d2d2d2);
  background-image: -ms-linear-gradient(#fff,#d2d2d2);
  background-image: -o-linear-gradient(#fff,#d2d2d2);
  background-image: linear-gradient(#fff,#d2d2d2);
}

.ui-btn-hover-e:visited,.ui-btn-hover-e:hover,.ui-btn-hover-e a.ui-link-inherit {
  color: #000;
}

.ui-btn-down-e {
  border: 1px solid #eaeaea;
  background: #eaeaea;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 #eee;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#d2d2d2),to(#fff));
  background-image: -webkit-linear-gradient(#d2d2d2,#fff);
  background-image: -moz-linear-gradient(#d2d2d2,#fff);
  background-image: -ms-linear-gradient(#d2d2d2,#fff);
  background-image: -o-linear-gradient(#d2d2d2,#fff);
  background-image: linear-gradient(#d2d2d2,#fff);
}

.ui-btn-down-e:visited,.ui-btn-down-e:hover,.ui-btn-down-e a.ui-link-inherit {
  color: #000;
}

.ui-btn-up-e,.ui-btn-hover-e,.ui-btn-down-e {
  font-family: Helvetica,Arial,sans-serif;
  text-decoration: none;
}

.ui-body-c,.ui-overlay-c {
  background: linear-gradient(#e4f1f4,#fff 150px) repeat scroll 0 0 #fff;
}

.ui-btn-up-f:visited,.ui-btn-up-f a.ui-link-inherit,.ui-btn-hover-f .ui-btn-up-f,.ui-btn-down-f,.ui-btn-hover-f:visited,.ui-btn-hover-f:hover,.ui-btn-hover-f a.ui-link-inherit {
  color: #333;
}

.ui-btn-down-f:visited,.ui-btn-down-f:hover,.ui-btn-down-f a.ui-link-inherit,.ui-btn-active a {
  color: #333 !important;
  text-shadow: 1px #ccc !important;
}

.ui-btn-up-f,.ui-btn-hover-f,.ui-btn-down-f,.ui-btn-down-f .ui-btn-active {
  font-weight: bold;
  text-shadow: none !important;
  background: #FFF;
  color: #333 !important;
  border-right: 5px solid #999;
  border-left: 5px solid #999;
  border-top: 1px solid #bbb;
}

.ui-collapsible-set .ui-first-child,.ui-collapsible-set .ui-last-child {
  border-radius: 0 !important;
}

.ui-li.ui-li-static.ui-btn-up-a {
  padding: 0 !important;
  margin: 0 !important;
}

.symbol-ekirjat {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) 0 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-elehdet {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -25px 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-emusiikki {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -175px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-videot {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -50px 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-digikokoelma {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -75px 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-radio-ohjelmat {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -100px 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-aanikirjat {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -125px 0;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-sivustot {
  width: 20px;
  height: 26px;
  float: left;
  background: url(/assets/img/symbols-small-dark.png) -150px 4px;
  background-repeat: no-repeat;
  margin: 5px 0 0 10px;
  font-size: 9px;
  padding-left: 3px;
  line-height: 56px;
}

.symbol-light-ekirjat {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) 0 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-elehdet {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -25px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-emusiikki {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -175px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-videot {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -50px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-digikokoelma {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -75px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-radio-ohjelmat {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -100px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-aanikirjat {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -124px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.symbol-light-sivustot {
  width: 25px;
  height: 25px;
  float: left;
  background: url(/assets/img/symbols-small-light.png) -150px 0;
  background-repeat: no-repeat;
  margin: 10px 0 0 10px;
}

.ui-link {
  color: #c35500 !important;
  text-decoration: none;
}

 .ui-li-aside{
  width:90%;
  margin-bottom:0;
  margin-top:0;
}

.ui-li-aside img{
  vertical-align:middle;
  margin:0 4px 1px 0;
}

.cf:before,.cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}


.inset-inset > div.ui-collapsible-content.ui-body-d {
 padding:0;
 border-left:4px #444 solid;
}
