/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #FFF;
    font-size: 0.9em;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight:300;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #FFF;
    text-shadow: none;
}

::selection {
    background: #FFF;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, p, span, ul, li, div, a, h1, h2, h3, h4, h5, h6 { margin:0; padding:0; }
body { background:#000; font-weight:300; }
strong { font-weight:700; }
a {color:#FFF; text-decoration:underline; transition: all 0.2s; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; }
a:hover { color:#CCC; text-decoration:none; }
#page { position:absolute; width:100%; min-width:1200px; z-index:2; }
#header { position:fixed; width:100%; background:rgba(0,0,0,0.85); min-width:1200px; z-index:3; }
#header-align, #main-align { width:1200px; margin:0 auto; }
#main, #main-inner, #header-inner { float:left; width:100%; }
#footer, #main { float:left; width:100%; }
#header-inner { height:90px; }
#main { margin-top:450px; padding-top:20px; }
#footer { padding-top:20px; margin-top:20px; padding-bottom:60px; border-top:1px solid #FFF; }
#big-image, #overlay { position:fixed; width:100%; min-width:1200px; height:857px; z-index:1; text-align:center; overflow:hidden; color:#FFF; }

.overlay { position:absolute; left:50%; top:0; margin-left:-645px; z-index:5; }

#header-inner h1, #header-inner h1 a { float:left; width:140px; height:57px; margin-top:8px; }
#header-inner h1 a { display:block; background:url(../img/logo.png) no-repeat; text-indent:-99999px; }

.teaser-outer { float:left; width:285px; margin-right:20px; }
.teaser, .content { background:rgba(0,0,0,0.85); }
.container { float:left; width:100%; }
.teaser { float:left; width:285px; margin-bottom:20px; margin-right:20px; min-height:307px; }
.teaser-outer .teaser { min-height:0; }
.teaser-last { margin-right:0px; }
.content { float:left; width:855px; padding:20px; }
.content ul { margin-left:3em; margin-top:1em; margin-bottom:1em; }

#footer p { float:left; width:100%; height:50px; background:url(../img/kultur-st-logo.png) no-repeat right top; }
#footer p a { margin-left:30px; }

.content h1, .content h2 { font-weight:300; margin-bottom:20px; }
.content h2 { margin-top:-20px; }

.content h1, .csc-header-date, .tx-in-gallery-flickr h2, .fb-like, .tx-in-gallery-flickr { float:left; width:100%; }
.tx-in-gallery-flickr { margin-bottom:1em; }

.teaser .teaser-body { padding:20px; width:245px; }
.teaser .teaser-body h1 { font-size:1.5em; }
.teaser a { display:block; text-decoration:none; }
.teaser { transition: all 0.2s; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; }
.teaser:hover { background:rgba(0,0,0,0.75); }

strong { font-weight:700; }

#rootmenu { float:right; margin-top:60px; }
#nav{
  list-style:none;
  font-weight:bold;
  margin-bottom:10px;
  float:left;
  width:100%;
}
#nav li{
  float:left;
  margin-right:10px;
  position:relative;
}
#nav a{
  display:block;
  padding:5px;
  color:#fff;
  transition: all 0.2s; -webkit-transition: all 0.2s; -moz-transition: all 0.2s;
  text-decoration:none;
}
#nav a:hover{
  color:#fff;
  background:rgba(0,0,0,0.85);
  text-decoration:none;
}
#nav ul{
  list-style:none;
  position:absolute;
  display:none;
}
#nav ul li{
  padding-top:1px; 
  float:none;
}
#nav ul a{
  white-space:nowrap;
}
#nav li:hover ul{ 
  display:block;
}
#nav li:hover a{ 
  background:rgba(0,0,0,0.85);
  text-decoration:none;
}
#nav li:hover ul a{ 
  text-decoration:none;
}
#nav li:hover ul li a:hover{
  background:#333;
}

.news .article .news-img-wrap {
  float: right;
  margin: 10px;
  background:none;
}

.news-img-wrap-list {
  float: left;
  margin: 3px 12px 5px 0;
  background: none;
}

.news-img-wrap-list a {
  display: block;
  float: left;
  padding: 4px;
  border: 0;
  background: none;
}
.news .article h3 {
  margin-bottom: 0.5em;
}
.more {
  font-weight:700;
}
.news-img-wrap-home {
  border:0;
  background:none;
  margin:0;
  padding:0;
}
input, textarea { display:block; border:0; outline:0; background:#FFF; color:#333; padding:4px; }
/*label, select { display:block; height:0; margin:0; padding:0; margin-bottom:0.5em; }*/
button, #field-9, .btn { border:0; outline:0; color:#333; padding:4px; margin-top:1em; background:#333; border:1px solid #999; color:#FFF; transition: all 0.2s; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; text-decoration:none; }
button:hover, #field-9:hover, .btn:hover {  background:#000; text-decoration:none;}
form select { color:#333; }
.toggle1, .toggle2 { float:right; width:35px; border:1px solid #f0f0f0; margin-top:0em; margin-bottom:0.9em; margin-right:0.9em; margin-top:-30px; }
.toggle1 a, .toggle2 a { display:block; padding-bottom:5px; padding-left:4px; padding-right:5px; }
.toggle1 hr, .toggle2 hr { border:none; border-bottom:2px solid #f0f0f0; margin:0; padding:0; padding-top:4px; }

.toggle1, .toggle2 { display:none; }

.toggle1, .toggle2 {
  border-radius: 5px 5px 5px 5px;
  -moz-border-radius: 5px 5px 5px 5px;
  -webkit-border-radius: 5px 5px 5px 5px;
}

.news .article .news-img-wrap {
  background: none;
}

.news .article .news-img-wrap a {
  border: none;
  background: none;
}


form ol, form ol li { display:block; width:100%; margin:0; padding:0; }
form ol li input { display:block; margin-bottom:1em; width:50%; }
form ol li label { display:block; width:100%; margin-bottom:0.3em; }
form ol li label em { margin-left:0.5em; color:#FFF; }
form ol li label strong { display:block; text-transform:none; color:red; font-weight:300; }
#field-9 { width:auto; }

.teaser-body label, .teaser-body b { display:block; width:100%; margin:0; padding:0; font-weight:300; margin-bottom:0.5em; }
.hiddengender { display:none; }

.imageList .item { float:left; margin-right:1em; margin-bottom:1em; }

iframe {
    /*position: absolute;
    top: 0;
    left: 0;*/
    width: 100%;
    /*height: auto;*/
}

@media only screen and (max-width: 1200px) { 
  #page, #header, #header-align, #main-align, .content, #big-image { width:100%; min-width:100%; }
  #header-inner h1 { margin-left:0.5em; }
  .overlay { position:absolute; left:0; top:0; margin:0; z-index:5; }
  #big-image img { width:100%; height:auto; }
  
  #main { width:100%; margin-top:150px; padding-top:20px; }
  .teaser-outer { float:right; width:30%; margin:0; overflow:hidden; }
  .teaser { float:right; width:286px; margin-right:20px; }
  .content { float:left; width:62%; min-width:62%; padding:0; margin:0; padding:0; padding:2%;  }

.news { margin:0 auto; width:612px; }
.news-single { width:100%; }

}

@media only screen and (max-width: 720px) { 

  .teaser-outer {float:right; width:100%; }
  .teaser { float:none; margin:0 auto; margin-bottom:20px; }
}

@media only screen and (max-width: 720px) {  
  #footer p { width:100%; text-align:center; background:none; }
  #footer p a {display:block; margin-left:10px; margin-right:10px; }

  #rootmenu { position:absolute;  width:100%; left:0; top:0; }
  #nav { background:rgba(0,0,0,0.85); margin-top:20px; }
  #nav, #nav li, #nav ul, #nav ul li { float:left; width:100%; min-width:100%; display:block; position:static; }
  #nav li { border-bottom:1px solid #FFF; }
  #nav ul li { border:0; }
  #nav ul li a { padding:0.7em; }
  
  .content { float:left; width:90%; padding:0; margin:0; padding:5%; }
  
  .content div { width:100%; float:left; }
  .content div img { float:left; width:100%; height:auto; }
  .content div .csc-textpic-text { float:left; margin:0; padding:0; }
  
  .news .article .news-img-wrap {
    float: left;
    margin: 0px;
    margin-bottom:10px; margin-top:10px;
  }
.teaser { float:none; }
  .teaser-outer { display:none; }
  .news { margin:0 auto; width:286px; }
  #header { position:static; float:left; }

}

@media print {
  /*#top, #header, #footer, #header-bottom, #root-menu, #search-overlay, .col-b, #top-banner { display:none; }*/
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}



/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
