* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 1em;
  background-color: hsl(0, 0%, 5%);
}
::-webkit-scrollbar-thumb {
  background-color: rgba(136, 136, 136, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

html,
body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;

  background-position: right;
  background-image: url(./resources/bg.jpg); /* relative to the css file, so in style/resources */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #1f1f1f;

  font-family: Lato,sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
}

#nudeBG {
  background-position: 200px;
  background-image: url(./resources/nudeBg.jpg);
}

h1 {
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  font-weight: 400;
  font-size: 60px;
  margin: 10px 10px 20px 10px;
  vertical-align: center;
}

a {
  text-decoration: underline;
  color: #aaaaaa;
}
a:hover {
  color: whitesmoke;
}

/* Page Positioning */
.wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column;
          flex-flow: column;
  height: 100vh;
}
.wrapper .row.header {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
  /* The above is shorthand for:
  flex-grow: 0,
  flex-shrink: 1,
  flex-basis: auto
  */
}
.wrapper .row.content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}
.wrapper .row.footer {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 40px;
          flex: 0 1 40px;
}

.content {
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 30px;
}

.footer {
  background-color: rgba(0,0,0,0.23);
}
.footer p {
  margin: 0;
  padding: 10px;
}

.gallery {
  margin: 0 auto;
  max-width: 980px;

  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -ms-flex-flow: wrap;
      flex-flow: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.gallery a {
  padding-right: 5px;
}

/* Navigation */

.navbar-links {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

ul.navbar-nav {
  margin: 0 auto;
  padding: 0;
  max-width: 800px;

  background-color: transparent;
  color: #999999;
}
ul.navbar-nav .link-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;

  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-pack: distribute;
      justify-content: space-around;
}
ul.navbar-nav li {
  float: left;
  margin-bottom: 18px;
  background-color: transparent;
  line-height: 25px;
  color: #666666;
}
ul.navbar-nav li a {
  margin: 0 11px;
  padding: 30px 0 5px;
  color: #bab9b9;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-transition: border-color .3s;
  -o-transition: border-color .3s;
  transition: border-color .3s;
}
ul.navbar-nav li.active a {
  border-color: #fff;
  color: #fff;
}
ul.navbar-nav li a:hover {
  border-color: #fff;
  color: #fff;
}

/* Burger */
.toggle {
  display: none;
  position: absolute;
  left: -55px;
  top: 0px;
  cursor: pointer;
  background: transparent;
  padding: 15px 15px 10px;
}
.toggle .bar1,
.toggle .bar2,
.toggle .bar3 {
  width: 25px;
  height: 2px;
  background: #FFF;
  margin-bottom: 8px;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}
/* Change it to an X */
.navbar-nav.open .toggle .bar1 {
  -webkit-transform: rotate(45deg) translate(8px, 7px);
      -ms-transform: rotate(45deg) translate(8px, 7px);
          transform: rotate(45deg) translate(8px, 7px);
}
.navbar-nav.open .toggle .bar2 {
  opacity: 0;
}
.navbar-nav.open .toggle .bar3 {
  -webkit-transform: rotate(-45deg) translate(7px, -6px);
      -ms-transform: rotate(-45deg) translate(7px, -6px);
          transform: rotate(-45deg) translate(7px, -6px);
}

/* Text */
.textbox {
  width: calc(100vw - 200px);
  max-width: 800px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 16px;
}
.center-column {
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-top: 20px;
}
.center-column p {
  margin: 0;
}

.news-article {
  width: calc(100vw - 200px);
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dotted #555555;
}
.news-article a {
  word-break: break-word;
}
.news-date {
  font-size: 12px;
}
.news-image {
  max-width: 250px;
}
#top-anchor {
  margin-top: -30px;
}

.video-wrapper iframe {
  margin-top: 10px;
  width: 100%
}

.initial {
  font-size: 30px;
}

.section {
  display: inline-block;
}
.section p {
  margin-bottom: 1em;
}
.no-margin-top {
  margin-top: 0;
}

.inline-image {
  margin: 0 20px 0 0;
  padding: 4px;
  border: 1px solid #333333;
}

/* Impressum */
#impressum {
  display: none;
  width: 100%;
  max-width: 600px;
  padding: 0;
  border-radius: 3px;
  -webkit-box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
          box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  background-color: #1f1f1f;
}
#impressum .fancybox-close-small {
  top: 5px;
}
#impressum .content-header {
  border-bottom: 1px solid #b5b5b5;
  padding-left: 20px;
}
#impressum .content-scroll {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 0 20px 0 20px;
}

/* Locks Scrolling */
.fancybox-active {
  overflow-x: hidden;
}

/* Responsive Design */
@media screen and (max-width: 921px) {
  body {
    min-width: 255px;
  }

  h1 {
    font-size: 50px;
  }

  ul.navbar-nav li a {
    font-size: 18px;
  }
}

@media screen and (max-width: 771px) {
  h1 {
    font-size: 40px;
  }

  ul.navbar-nav li a {
    font-size: 24px;
  }
}

/* At this point it switches to a burger menu */
@media screen and (max-width: 661px) {
  h1 {
    font-size: 30px;
    text-align: left;
  }

  .toggle {
    display: block;
  }

  ul.navbar-nav {
    width: 200px;
    height: 100vh;
    min-height: 380px;
    position: absolute;
    right: -200px;
    
    background-color: rgba(0, 0, 0, 0.9);
  }
  ul.navbar-nav .link-wrapper {
    height: 80%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column;
            flex-flow: column;
  }

  .navbar-links {
    position: absolute;
    top: 0;
    right: 0;
  }

  .menu-open {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: translate(-200px, 0);
        -ms-transform: translate(-200px, 0);
            transform: translate(-200px, 0);
    background-color: rgba(0,0,0,0.5);
  }

  .navbar-nav.open .toggle {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .textbox, .news-article {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column;
            flex-flow: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: calc(100vw - 100px);
  }
  .news-date {
    text-align: center;
  }
  
  .inline-image {
    margin: 0 0 10px 0;
  }

  .video-wrapper iframe {
    height: auto;
  }
}

@media screen and (max-width: 511px) {
  h1 {
    font-size: 25px;
    height: 36px;
  }

  .textbox:not(.center-column), .news-article {
    text-align: justify;
    width: calc(100vw - 30px);
  }

  .gallery a img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 431px) {
  h1 {
    width: 200px;
    margin-bottom: 40px;
  }

  .gallery a img {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 381px) {
  .gallery a img {
    width: 170px;
    height: 170px;
  }
}

@media screen and (max-width: 361px) {
  .gallery a img {
    width: 150px;
    height: 150px;
  }
}
@media screen and (max-width: 321px) {
  .gallery a img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-height: 421px) and (orientation: landscape) {
  .gallery a img {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-height: 381px) and (max-width: 661px) and (orientation: landscape) {
  ul.navbar-nav {
    min-height: 100px;
  }
  ul.navbar-nav .link-wrapper {
    -ms-flex-flow: wrap;
        flex-flow: wrap;
  }

  .gallery a img {
    width: 150px;
    height: 150px;
  }
}