html {
  font-size: 17px;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  scroll-behavior: smooth;
}

/* #############
 * Sticky footer
 * #############
 * Inspired by https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
 *
 * Alternative (not used here): https://youtu.be/KOvGeFUHAC0?t=177 via https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Grids
 */
body {
  margin: 0; /* Avoid a border around the entire page */

  line-height: 1.4;
}

div.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* CSS3: 100% viewport height */
  margin: 0;
  padding: 0;
}

main {
  /* 1 0 0 (instead of 1) ensures that the same mode is also used in IE 10 and
   * in IE 11. */
  flex: 1 0 0;
  margin-top: 4vw;
}


/* #######
 * General
 * #######
 */
body {
  /* Display a black background on mobile devices or in Chrome or Safari when
   * the user scrolls over or below the actual website. On the iPhone in
   * landscape mode, this also creates good looking black borders on the left
   * and right side instead of white ones.
   *
   * In Firefox under Windows this causes a black vertical scroll bar.
   * Currently no CSS flag exists to set the scroll bar color of Firefox. */
  background-color: #000;
  color: #d7cabc;
  font-family: "Helvetica", sans-serif;
}

/*  If instead of using this div.page, the header, main and footer backgrounds
 *  would be set to white, the page would almost look perfect and this div
 *  wouldn't be needed. Except when zooming in under Chrome or Safari. Then,
 *  horizontal hairlines would be visible between the header and the main as
 *  well as between the main and the footer. Using this div prevents the
 *  unwanted hairlines.
 */
div.page {
  background-color: #000;
}

h1 {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2em;
  padding-bottom: 1em;
}

h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0.6rem 0 0.8rem 0;
}

p {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  margin: 1.4rem 4rem 1.4rem 4rem;
}

a {
  text-decoration: none;
  color: #d7cabc;
}

a:hover {
  color: #eeeeee;
}



/* ######
 * Header
 * ######
 */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  /* min-height: 120px; */
}

header .stars {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 70vw;
  background-image: url("/static/home/images/obershanti_mountains_and_stars.jpg");
  background-position: 0% 0%;
  background-size: cover;
}

header img {
  z-index: 1;
  width: 80%;
  margin-top: 3.5vw;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: top;
  width: 100%;
  z-index: 1;
  font-size: 1.2rem;
}

header nav li {
  margin: 0;
}

header nav li a {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  text-decoration: none;
  color: #fff;
}

header nav li a img {
  height: 26px;
  margin-right: 10px;
}

header nav ul.icons-only-header {
  display: flex;
  justify-content: right;
  align-items: center;

  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  margin-top: 6vw;
  margin-right: 3.5vw;

  list-style: none;
}

header nav ul.icons-only-header li {
  margin-top: 0;
}


/* ####
 * Main
 * ####
 */

section.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}


section.main ul.navigation {
  /* display: flex;
  justify-content: space-between;
  align-items: center;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); */

  width: 80%;
  padding-left: 0;
  text-align: center;
  z-index: 1;

  margin-bottom: 2vw;
}

section.main ul.navigation li {
  /* Source: https://stackoverflow.com/questions/14885026/how-to-lay-out-list-items-like-a-grid-with-css-and-html */
  display: inline-block;
  vertical-align: top;

  margin: 0 5vw 0 5vw;

  list-style: none; /* no dot */
  font-size: 1.8rem;
  font-weight: 500;
}


section.main img.ober_shanti {
  margin-bottom: 0;
  width: 35%;
  z-index: 1;
}

section.main p.date {
  font-size: 1.8rem;
  text-align: center;

  margin-top: 5vw;
  margin-bottom: 5vw;
}

section.main p.intro {
  margin: 0.5rem 4rem 0.5rem 4rem;
}

section.main p.intro2 {
  margin: 0.5rem 2rem 2rem 2rem;
}

section.main img.full_width {
  margin: 0;
  width: 100%;
}

#location {
  margin-top: 10vw;
}

section.main img.jvsw {
  width: 6rem;
  margin-top: 1rem;
}

section.main img.suedkultur {
  width: 10rem;
  margin-top: 1rem;
}

section.main table.line-up {
  font-size: 1.2rem;
  margin: 0 0 3rem 1rem;
}

section.main table.line-up td {
  vertical-align: top;
  padding: .5rem 1.5rem .5rem 0;
}

section.main table.line-up td.playtime {
  white-space: nowrap;
}

section.main span.smaller
{
  font-size: 80%;
}

section.main div.map {
  width: 90%;
  height: 50vw;

  margin-top: 4vw;
  margin-bottom: 0;
}

section.main p.map_caption {
  margin-bottom: 10vw;
}

#supported_by {
  margin-top: 15vw;
}





/* ######
 * Footer
 * ######
 */
footer {
  display: flex;
  height: 10vw;
  min-height: 120px;
  color: #fff;
}


footer div.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 13vw;

  z-index: 1;
  font-size: 1.2rem;
}

footer div.content ul.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 4vw 15vw 4vw 15vw;

  list-style: none;
}

footer ul.social-media {
  display: none;
}

footer ul.social-media li {
  margin: 0;
}

footer ul.social-media li img {
  margin: 0;
  height: 26px;
}




/* ###########################
 * Width dependent alterations
 * ###########################
 */

/* Temp comment: Maybe a max-device-width for mobile phones is needed as well.
 * See https://stackoverflow.com/questions/13550541/media-min-width-max-width.
 */

/* browser width >= 1025px. */
@media (min-width: 1025px) {
  header {
    --search-input-width: 30vw;

    /* Alternative: If only the search bar should expand.
    /* --search-input-width: calc(100vw - 815px); /* 1025px - input.width(when < 1025px) = 210px */
  }

  /* Only needed because of the IE fallback */
  header nav ul li input {
    width: 30vw; /* IE 10 and 11 fallback */
    width: var(--search-input-width);
  }
}

/* browser width <= 860px. */
@media (max-width: 660px) {
  header nav {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
    margin: 4vw 4vw 4vw 4vw;
  }

  section.main ul.navigation li {
    margin: 0 3vw 0 3vw;
    font-size: 1.2rem;
  }

  section.main img.ober_shanti {
    margin: 4vw 0 4vw 0;
  }

  section.main p.date {
    font-size: 1.2rem;
    margin-bottom: 10vw;
  }

  section.main img.full_width {
    margin: 0;
  }

  section.main table.line-up {
    font-size: 1rem;
  }
  
  section.main p.map_caption {
    margin-bottom: 20vw;
  }
}

/* browser width <= 730px. */
@media (max-width: 730px) {
  header .logo {
    min-width: 110px;
    height: 110px;
  }

  footer div.content ul.sponsors li a img {
    width: 82px;
  }
  
  footer div.content ul.sponsors li a img.wide {
    width: 150px;
  }
}

/* IE 10 and 11. */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (max-width: 730px) {
  footer .stars {
    background-position: 0% 0%;
  }
}

/* browser width <= 560px. */
@media (max-width: 560px) {
  header nav ul.icons-only-header {
    margin-top: 6vw;
  }

  header nav li a img {
    height: 23px;
  }

  footer div.content ul.sponsors li a img {
    width: 77px;
  }
  
  footer div.content ul.sponsors li a img.wide {
    width: 140px;
  }
}

/* IE 10 and 11. */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (max-width: 560px) {
  footer .stars {
    background-position: 0% 0%;
  }
}

/* browser width <= 480px. */
@media (max-width: 480px) {
  header nav ul.icons-only-header {
    margin-top: 6vw;
  }

  header {
    --left-height: 34px;
  }

  header .logo {
    min-width: 90px;
    height: 90px;
    margin-left: 12px;
  }

  header nav li a img {
    height: 20px;
  }

  footer div.content ul.sponsors li a img {
    width: 66px;
  }
  
  footer div.content ul.sponsors li a img.wide {
    width: 120px;
  }
}

/* browser width <= 360px. */
@media (max-width: 360px) {
  footer div.content ul.sponsors {
    padding-top: 1vw;
  }

  footer div.content ul.sponsors li a img {
    width: 55px;
  }
  
  footer div.content ul.sponsors li a img.wide {
    width: 100px;
  }
}


/* browser width <= 315px. */
@media (max-width: 315px) {
  header {
    --left-height: 25px;
  }

  header .logo {
    min-width: 68px;
    height: 68px;
    margin-left: 8px;
  }

  header nav ul.icons-only-header {
    margin-top: 6vw;
  }

  header nav li a img {
    height: 15px;
  }

  section.grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  footer div.content ul.sponsors li a img {
    width: 44px;
  }
  
  footer div.content ul.sponsors li a img.wide {
    width: 80px;
  }
}

/* browser width <= 220px. */
@media (max-width: 220px) {
  section.grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

}
