@font-face {
  font-family: 'EBGaramond';
  src: url(/fonts/EBGaramond-VariableFont_wght.ttf);
}

* {
  font-family: 'EBGaramond';
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0px;
  background-color: #4c5649;
  color: white;
}

p {
  margin: 1em;
}

a {
  text-decoration: none;
  font-size: 1.3em;
  color: lightseagreen;
}

/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image. This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/img/hopfen.jpg");

  /* Set a specific height */
  height: 50%;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text h1 {
  font-size: 5em;
}

.hero-text p {
  font-size: 2em;
}

.gallery-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1em;
  justify-items: center;
  margin: 0 auto;
  padding-bottom: 30px;
  width: 98%;
}

/* The Images */
.gallery-img {
  display:inline-block;
  position:relative;
  max-width: 250px;
  height: auto; 
  object-fit: cover;
  border-radius: 5%;
  z-index: -1;
}

.box-flex:hover {
  opacity: .7;
}

.box-caption {
  position: absolute;
  max-width: 200px;
  word-break: break-word;
  color: white;
  bottom: 80px;
}

.box-text {
  position: absolute;
  max-width: 200px;
  word-break: break-word;
  color: white;
  font-size: 0.9em;
  bottom: 20px;
}

.player {
  position: absolute;
  width: 90%; 
  bottom: 50px;
}

.box-flex {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: .5rem;
  text-align: center;
  font-size: 1.2rem;
  word-break: break-word;
  transition: opacity 0.25s ease-in-out;
  background-image: linear-gradient(rgba(0, 0, 0, 0.0),rgba(0, 0, 0, 0.0),rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 1));
  background-clip: content-box;
  border-radius: 5%;
}


/* Box: Bottom Center */
.box-flex-bottom {
  align-items: flex-end;
}

h1, h2, h3 {
  margin: 1rem;
}

.footer {
  background-color: #4c5649;
  margin-top: 10px;
  padding: 10px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  color: white;
  text-align: center;
}

.footer a {
    margin-right: 1rem;
}

audio::-webkit-media-controls-panel {
  background-color: white;
}

