@font-face {
    font-family: Lato;
    src: url(/css/Lato-Regular.ttf);
}

body {
    margin: 0;
    font-family: Lato, sans-serif;
    font-size: 1.1em;

    background-image: url(/img/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
}


header {
    font-family: sans-serif;
    margin: 0;
}

main {
    padding: 1em;
    margin: auto;
    width: 50em;
    min-width: 50%;
    max-width: 85%;

    backdrop-filter: blur(50px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: serif;
}

hr {
    margin-top: 3em;
}

#commentsection {
    margin-top: 4em;
    border-top: 1px solid #555;
    color: #555;
    font-size: 0.8em;
}

#backtostart {
    display: block;
    color: #444;
}

.anmerkung {
    text-decoration: underline;
    text-decoration-style: dotted;
}

.bildbeschriftung {
    color: #444;
    font-size: 0.8em;
    margin-top: 0;
}

img:not(.comparisonslider), video {
/*img, video {*/
    display: block;
    margin: auto;
    max-width: 90%;
    
    object-fit: contain; /*fixes aspect ratio in modal popup*/
}

/* Modal image viewer */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content.show {
  opacity: 1;
}

.close {
  color: #ccc;
  float: right;
  font-size: 50px;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

img-comparison-slider {
  width: 100%;
}

/* Änderungen für dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        background-image: url(/img/bg_dark.jpg);
        color: white;
    }

    a {color:orange;}
    a:active, a:hover {color:red;}
    a:visited {color:skyblue; }

    .bildbeschriftung, #backtostart {color:#ccc;}
    #commentsection {color:#aaa;}
}
