/*
Font: Liera Sans
License: SIL Open Font
The SIL Open Font License (OFL) is a free, libre and open source license specifically designed for fonts and related software based on our experience in font design and linguistic software engineering.
https://fontlibrary.org/en/font/liera-sans
*/

@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-Bold.ttf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-ExtraLight.ttf') format('truetype');
    font-weight: 200;
}
@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-Italic.ttf') format('truetype');
    font-style: italic;
}
@font-face {
    font-family: 'liera-sans';
    src: url('/fonts/LieraSans-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}


html {
    height: 100%;
}

body {
    min-height: 100%;
    color: bisque;
    position: relative;
    font-family: 'liera-sans', Cambria, Tahoma, Verdana, Segoe, sans-serif;
}

body[id^='challenge-body'] {
    background-image:url('/Wasserfall.jpg');
    background-size: cover;
}
@media (min-width: 45em) {
    body#challenge-body-2021 {
        background-image:url('/Gruenau-Steyr.jpg');
        background-size: cover;
    }
    body#challenge-body-2022 {
        background-image:url('/erlauf.jpg');
        background-size: cover;
    }
}

body#gallery-body {
    background-image:url('/PuergschachenMoos.jpg');
    background-size: cover;
    margin-top: 2px;
    margin-bottom: 0px;
    height: 100%;
}
@media (min-width: 45em) {
    body#gallery-body {
        background-image:url('/Gesaeuse.jpg');
        background-size: cover;
    }
}

body.showdarker::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

main {
    padding: 5px;
    padding-bottom: 1.1rem;   /* Height of the footer */
}

main#gallery-main {
    display: flex;
    flex-direction: column;
    height: 91%;
}
@media (min-width: 45em) {
    main#gallery-main {
        flex-direction: row;
    }
}

div#gallery-menu {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

div#images-section {
    height: 100%;
    overflow: auto;
}

div.gallery-year-menu {
    padding: 0.2em;
}
@media (min-width: 45em) {
    div.gallery-year-menu {
        display: flex;
        flex-direction: column;
    }
}

.gallery-year-menu-header {
    padding-top: 0.2rem;
}

div#gallery-menu-border {
    border-bottom:1px solid;
    border-right: 0px;
}
@media (min-width: 45em) {
    div#gallery-menu-border {
        border-bottom:0px;
        border-right: 1px solid;
    }
}

button#new_folder_button_id {
    white-space: nowrap;
}

footer {
    color: darkslategray;
    display: block;
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 1.1rem;
}

div#makebig-div {
    display: flex;
    flex-direction: row;
}

.invisible {
    visibility: hidden;
    display: none;
}

.hdr {
    color: gold;
    font-weight: bold;
}

@keyframes newsanimation {
    0% {color: gold;}
    50% {color: red;}
    100% {color: gold;}
}

.newsflash {
    color: gold;
    font-weight: bold;
    animation-name: newsanimation;
    animation-duration: 2s;
    animation-delay: 1s;
    animation-iteration-count: 20;
}

span.rubriklink {
    white-space: nowrap;
}

.rubriklink {
    display: inline-block;
    padding: 0px;
    margin-top: 0.1em;
    margin-right: 0.4em;
    margin-bottom: 0.1em;
    margin-left: 0.1em;
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}
@media (min-width: 45em) {
    .rubriklink {
        margin-right: 0.1em;
    }
}

.changedcontent::after {
    content: "*";
    color: aqua;
}

.normaltext {
    color: bisque;
}

.descriptionform {
    margin: 0px;
}

.italic {
    font-style: italic;
}

body[id^='challenge-body'] div.hdr {
    margin: 1em 0px;
}

body[id^='challenge-body'] a {
    text-decoration: none;
}

button, figcaption {
    font-family: 'liera-sans';
    font-weight: 200;
}

figcaption {
    font-size: small;
}

/*
nav {
   position: fixed;
   transition: transform .25s .1s ease-in-out;
}

.downscroll nav {
    transform: translate3d(0, -300px, 0);
}
*/
nav {
    background-color: rgba(255, 255, 255, 0.1);
}

ul.obenknopfe {
    margin-bottom: 0px;
    margin-top: 0px;
}

nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-left: 1em;
}

@media (min-width: 30em) {
    nav ul {
        flex-direction: row;
    }
}

nav li {
    margin: 0px 0.2em;
    background-color: transparent;
    list-style: none;
    padding: 0px;
}

nav a {
    display: block;
    padding: 0.8em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: gold;
    background-color: transparent;
    transition: all .25s ease-in;
    border: 1px solid lightgray;
}

nav li[aria-current] a {
    background-color: darkcyan;
    color: gold;
    border-color: darkcyan;
    text-decoration: underline;
}

span[id=folderanzeige] {
    text-transform: none;
}
	
nav a:focus,
nav a:hover,
nav li[aria-current] a:focus,
nav li[aria-current] a:hover {    
    color: darkblue; 
    background-color: gold;
}

.buttons {
    background-color: bisque;
}
/*
div#body {
}
*/
.figures {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    color: bisque;
    margin: 6px;
}

/* Mobile */
img.themenfotokl {
    max-width: 95%;
    max-height: 95%;
}
/* Desktop */
@media (min-width: 30em) {
    img.themenfotokl {
        max-width: 400px;
        max-height: 400px;
    }
}

figure.themenfotokl {
    position: relative;
}

figure.themenfotokl > button {
  position: absolute;
  top: 0%;
  left: 0%;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}
figure.themenfotokl > button:hover {
  background-color: gold;
}
figure:not(.themenfotokl) > button {
    visibility: hidden;
}

/* Mobile */
img.themenfotogr {
    max-width: 150%;
    max-height: 100%;
}
/* Desktop */
@media (min-width: 30em) {
    img.themenfotogr {
        max-width: 100%;
        max-height: 150vh;
    }
}

/* Mobile */
img.downloadfoto {
    max-width: 120%;
    max-height: 100%;
}
/* Desktop */
@media (min-width: 30em) {
    img.downloadfoto {
        max-width: 70%;
        max-height: 80vh;
    }
}

img.themenfotoorig {
    white-space: nowrap;
}

.dsgvolink {
    color: darkslategray;
}

.input-sizer {
	 display: inline-grid;
     grid-template-rows: 1fr 0fr;
	 vertical-align: top;
	 align-items: center;
}
.input-sizer::after, .input-sizer input {
	 width: auto;
	 min-width: 1em;
	 grid-area: auto;
	 margin: 0;
	 resize: none;
	 appearance: none;
}
.input-sizer::after {
	 content: attr(data-value) ' ';
	 visibility: hidden;
	 white-space: pre-wrap;
     height: 1px;
}
.input-sizer input {
    border-width: 1px;
}

.newsgrid {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.newsgrid .leftnews {
    flex: 0 0 0;
    height: 3em;
    align-self: stretch;
}
.newsgrid .rightnews {
    flex: 1 1 auto;
    text-align: left;
    padding: 0px 0px 0px 3px;
}

.uploadgrid {
    display: grid;
    grid-template-columns: 1fr;
    border-style: solid;
    border-width: 1px;
    padding: 2px;
    max-width: 100%;
}

.uploadgrid .two-one {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0.7em;
}

.uploadgrid .two-two {
    grid-column: 1;
    grid-row: 2;
}

progress#progressbar {
    background-color: bisque;
}

summary#bilder-hochladen {
    margin: 0.5em 0px;
}

dialog#new_dialog_id {
    margin-top: 8em;
    margin-left: 10em;
}