/*
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;
    background-color: black;
}

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;
}

@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 */
}

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;
}

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

.rubriklink {
    display: inline-block;
    padding: 0px;
    margin: 1em;
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}

.normaltext {
    color: bisque;
}

.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);
}

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;
}
	
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;
}

.figures {
    display: inline-block;
    color: bisque;
    margin: 6px;
}

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

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

.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;
}
.input-sizer input {
    border-width: 1px;
}

.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;
}

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

progress#progressbar {
    background-color: bisque;
}

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