@font-face {
    font-family: "MyGoodSansBold";
    src: url("/fonts/GoodSans-Bold.otf") format("opentype");
}
@font-face {
    font-family: "MyGoodSansRegular";
    src: url("/fonts/GoodSans-Regular.otf") format("opentype");
}
@font-face {
    font-family: "MySoehne";
    src: url("/fonts/SoehneSchmal-Halbfett.ttf") format("opentype");
}

:root {
    height:100%;
    font-size: 100%;                        /*Sets the base font size to browser default, e.g. 16px*/
    font-family: "MyGoodSansRegular";       /*Sets the base font*/
    color:var(--night-color);               /*Sets base txt color as night*/
    --cream-color: rgb(247, 237, 225);
    --cream-color-50: rgb(247, 237, 225,0.5);
    --night-color: rgb(43, 39, 51);
    --night-color-50: rgb(43, 39, 51, 0.5);
    --pale-color: rgb(230, 128, 71);
    --pale-color-0: rgb(230, 128, 71, 0);
    --gold-color: rgb(222, 157, 51);
    --gold-color-50: rgb(222, 157, 51, 0.5);
    --dusty-color: rgb(229, 194, 166);
}
* {
    margin: 0;                              /*outside, padding is between inside and border */
    box-sizing: border-box;                 /*defines that size of element is including content, padding and border */
}
h1, h2, h3 {
    margin: 0;
}
body {
    height:100%;
}
.pageContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: var(--cream-color);
}
.pageContainer h1{
    margin: 0;
    line-height: 1;
}
.pageContainer h2{
    margin: 0;
}
.pageContainer h3{
    margin: 0;
}
.pageHeader {
    position: sticky;               /* The element will "stick" */
    top: 0;                         /* Anchors it to the top edge */
    width: 100%;                    /* Makes it span the full width */
    height: 40vh;                   /* 5 times the root font size */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: var(--cream-color);
    font-family: 'MyGoodSansBold';
    background-image: linear-gradient(to bottom, rgba(229,194,166,0) 60%, var(--dusty-color) 100%), url('/header_plain.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 50;                    /* Ensures it stays on top of other content */
    transition: height 0.2s ease-out;
    will-change: height;
}
.lightBackground {
    background-image:  url('/header_plain.png');
}
.compact {
    height: 19vh;
}
.pageHeader > a {
    align-self: flex-start;
    width: 33%;
    padding: 4vh 3vw 0 3vw;
    text-decoration: none;
    transition: width 0.2s ease-out, padding 0.2s ease-out;
    margin-left: -2vw;
}

.pageHeader img {
    width: 100%;
    transition: width 0.2s ease-out;
}

.compact > a {
    width: 20%;
    padding: 1vh 3vw 0 3vw;
    margin-left: -1vw;
}

.pageHeader h1 {
    font-family: 'MyGoodSansBold';
    font-size: 4vh;
    text-transform: uppercase;
    text-align: center;
    width: 45%;
    line-height:1;
    transition: font-size 0.2s ease-out;
}

.compact h1 {
    font-size: 2.5vh;
}
.pageHeader nav {
    width: 22%;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    padding-bottom: 2vh;
    padding-right: 3vw;
}
.pageHeader > nav > button {
    color: var(--cream-color);
    box-shadow: inset 0 0 0 2px var(--cream-color);
}
.pageMain {
    max-width: 60%;
    width: 100%;
    background-color: var(--dusty-color);
    display: flex;
    flex-direction: column;
    min-height: 49vh;
    flex-grow: 1;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 4vh;
}
.cream {
    background-color:  var(--cream-color);
}
.column {
    flex-direction: column;
    align-items: center;
}
.full {
    min-height: 74vh;
}
.pageMain > section {
    display:flex;
    flex-direction: column;
    padding: 1vh 3vw;
    width: 100%;
}
.sectionCentred {
    justify-content: center;
}
.sectionLeft {
    justify-content: flex-start;
}
.pageMain h1 {
    font-family: 'MySoehne';
    font-size: 6vh;
}
.pageMain h2 {
    font-family: 'MySoehne';
    font-size: 4vh; 
    padding: 1vh 0 2vh 0;
}
.pageMain h3 {
    font-size: 2vh;
    color: var(--night-color);
    font-family: 'MyGoodSansBold';
    text-transform: uppercase;
}
.pageMain p {
    font-family: 'MyGoodSansRegular';
    font-size: 2.2vh;
    line-height: 1.1;
    padding: 0.5vh 0 2vh 0;
}
.button {
    max-width: 20vw;
    align-self: flex-start;
    margin-bottom: 2vh;
}
.pageFooter {
    display: flex;
    height: 7vh;
    background-color: var(--night-color);
    text-align: center;
    color: var(--cream-color);
    font-size: 2vh;
    padding: 0.5vh 3vw;
    max-width: 100%;
    width: 100%;
    gap: 2vh;
}
.row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
#mapContainer {
    height: auto;
    min-height: auto;
    /*align-items: center;*/
}
.svgMap {
    height: 50vh;
    width: 100%;
    max-width: 90vw;
    aspect-ratio: 1;
    background: url('/api/v1/albums/20250723-adventurer/images/day08-12h-006?format=base') right / cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.singleImage {
    width: 100%;
    max-width: 90vw;
    aspect-ratio: 16 / 9;
    background-size: cover;
    border: transparent;
    border-radius: 0.8rem;
    text-align: right;
    color: var(--cream-color);
    font-size: 3vh;
    font-family: 'MyGoodSansBold';
    padding: 1rem;

}
@media only screen and (max-width: 768px) {
    .pageMain, .pageHeader{
        flex-direction: column; /* Switch to column layout for smaller screens */
        align-items: center; /* Example alignment for column layout */
    }
    .pageMain {
        max-width: 100%;
    }
    .pageHeader > a {
        align-self: flex-start;
        width: 50%;
        text-decoration: none;
        padding: 10px 0px 0px 10px;
        margin-left: 0;
    }
    .pageHeader h1 {
        width: 100%;
        font-size: 2vh;
    }
    .pageHeader > nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding-right: 10px;
        padding-bottom: 10px;
    }
}