/* varela-round-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/varela-round-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    font-family: 'Varela Round', sans-serif;
    background: linear-gradient(to top, #999900, #ffffff);
    height: 1080px;
    padding: 0px;  
    margin: 0px;  
}

#tutorial {
    display: block;
}

#tutorial strong {
    font-size: 20px;
}

#interface {
    position: fixed;
    left: 0px;
    top: 0px;
    padding: 15px;
    width: 250px;
    height: 1080px;
    background-color: white;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

#reload {
    width: 42px;
    height: 42px;
    text-align: center;
    line-height: 42px;
    background-color: #669966;
    color: white;
    border-radius: 5px;
    margin-top: 30px;
    cursor: pointer;
    border-bottom: 3px solid #336633;
    display: none;
}

.button {
    display: inline-block;
    border: none;
    outline: none;
    padding: 0px;
    margin: 0px;
    height: 42px;
    text-align: center;
    padding: 0px 15px;
    line-height: 42px;
    background-color: #669966;
    color: white;
    border-radius: 5px;
    border-bottom: 3px solid #336633;
    cursor: pointer;
    margin-bottom: 15px;    
}

#back:hover, #reload:hover, .button:hover, #show-photo:hover {
    background-color: #4D804D;
    color: white;
    text-decoration: none;
}

.overlay .button {
    display: block;
}

.button-grey {
  border: none;
  outline: none;
  padding: 0px;
  text-align: center;
  padding: 10px 15px;
  line-height: 24px;
  background-color: #9B9B9B;
  color: white;
  border-radius: 5px;
  border-bottom: 3px solid #6B6B6B;
  cursor: pointer;
}

.button-grey:hover {
  background-color: #808080;
}

#back, .overlay-close {
    width: 42px;
    height: 42px;
    text-align: center;
    line-height: 42px;
    background-color: #669966;
    color: white;
    border-radius: 5px;
    margin-top: 30px;
    cursor: pointer;
    border-bottom: 3px solid #336633;
    display: block;
}

#game-container {
    width: 1670px;
    margin-left: 250px;
    height: 1080px;
    overflow: hidden;
}

#question-container {
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#cell-next {
    position: absolute;
    right: -800px;
    top: -600px;
    z-index: 3;
    width: 1300px;
    height: 880px;
    display: none;
}

#cell-bakterium {
    position: absolute;
    right: 300px;
    top: 400px;
    z-index: 3;
    width: 100px;
    height: 400px;
    display: none;
}

#cell-svg {
    position: relative;
    z-index: 5;
    width: 780px;
    height: 880px;
    margin-left: 445px;
    margin-top: 50px;
}

#info-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 50px;
}

#component-info {
    font-size: 18px;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1080px;
    }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Schwarz transparenter Hintergrund */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: #ffffff; /* Weißer Hintergrund */
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 100px;
  position: relative;
}

.overlay-close {
    margin-top: 0px;
    position: absolute;
    right: -22px;
    top: -22px;
}

.overlay-content img {
    margin-bottom: 15px;
}

.overlay-content img {
    max-width: 100%;
    height: auto;
}

.overlay.active {
  display: flex;
}