/* ---------------------------------------------------------------- */
/* Globals */
/* ---------------------------------------------------------------- */
/* Colour Variables */

:root,
    /* color-scheme: light dark; */
    /* Light theme */
    :root.light{
        /* Use this color as the background for your dark-on-light designs, or the text color of an inverted design. */
        --background: #F4F6F7;
        /* Use as the text color for dark-on-light designs, or as the background for inverted designs. */
        --text1: #232121;
        --text2: #F4F6F7;
        /* This color should be eye-catching but not harsh. It can be liberally applied to your layout as its main identity. */
        --primary: #149E94;
        --a: #149E94;
        /* Accent colors can be used to bring attention to design elements by contrasting with the rest of the palette. */
        --accent-light: #7C915E;
        /* Another accent color to consider. Not all colors have to be used - sometimes a simple color scheme works best. */
        --accent-dark: #5B5959;
        --layers: rgba(0,0,0,0.05);
        --layers2: rgba(0,0,0,0.7);
		--layers3: rgba(255, 255, 255, 0.9);
    }
    /* Dark theme */
    :root.dark{
        --background: #232121;
        --text1: #F4F6F7;
        --text2: #232121;
        --primary: #47c7ae;
        --a: #47c7ae;
        /* Accent colors can be used to bring attention to design elements by contrasting with the rest of the palette. */
        --accent-light: #7C915E;
        /* Another accent color to consider. Not all colors have to be used - sometimes a simple color scheme works best. */
        --accent-dark: #5B5959;
        --layers: rgba(255, 255, 255, 0.05);
        --layers2: rgba(255, 255, 255,0.7);
		--layers3: rgba(0,0,0,0.5);
    }

/* Fonts */
h1, h2, h3, p {
    margin: 4px 0;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


h1 {
	color: var(--text1);
}

h2 {
  font-size: 1.9em; /* 32px */
	/*font-weight: 500;*/
}

h3 {
  font-size: 1.7em; /* 28px */
	/*padding-top: 24px;*/
}

h4 {
  font-size: 1.5em; /* 24px */
}

h5 {
  font-size: 1.25em; /* 20px */
}

h6 {
  font-size: 1em; /* 16px */
}

a {
    color: var(--text1);
}

/* Icons */
.material-icons {
    color: var(--primary);
}

.material-icons.light_dark {
    color: var(--text2)
}

/* Classes */
.grid {
    display: grid;
    grid-gap: 24px;
}

.flex {
    display: flex;
    grid-gap: 8px;
    flex-wrap: wrap;
}

.spacer_50 {
    height: 50px;
}

.spacer_100 {
    height: 100px;
}
/* Main Layout */

html {
    overflow-x: hidden;
    position: relative;
}

body {
    margin: 0;
    color: var(--text1);
    background: var(--background);
    min-height: 100vh;
    min-width: 100vw;
    position: inherit;
}

ul {
	margin-top: 0px !important;
}

#header, #main, #footer {
    padding: 8px 15%;
}

#main {
    padding-bottom: 150px;
    padding-top: 24px;
}

#desc_btn .material-icons {
    font-size: 40px !important;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    background-color: lightgrey !important;
    color: rgb(0 0 0 / 50%);
}


/* ---------------------------------------------------------------- */
/* Header */
/* ---------------------------------------------------------------- */
#header {
    background-color: var(--layers);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header a {
    color: inherit; /* blue colors for links too */
    text-decoration: none; /* no underline */
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer .content {
    display: contents;
}

.site_name {
    cursor: pointer;
	max-width: 60%;
}

.menu_items {
	display: flex;
    grid-gap: 16px;
    height: 100%;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
	color: var(--primary);
    font-weight: bold;
}

.menu_links {
	color: var(--primary);
    font-weight: 700;
}

.main_menu {
    justify-content: flex-end;
}
.theme-btn {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background-color: transparent;
}
.theme-btn.light {
    display: none;
}
.dark .theme-btn.light {
    display: block;
    /* background-color: var(--layers); */
}
.dark .theme-btn.dark {
    display: none;
}
/* ---------------------------------------------------------------- */
/* Body */
/* ---------------------------------------------------------------- */
select {
    width: 100%;
}
/* ---------------------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------------------- */
#footer {
    background-color: var(--primary);
    color: var(--text2);
    min-height: 100px;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#footer a {
    color: var(--text2);
    padding: 4px;
}

#footer .content div {
    display: flex;
    flex-direction: column;
}

.copyright {
    text-align: right;
} 

/* ---------------------------------------------------------------- */
/* Cookie popup */
/* ---------------------------------------------------------------- */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 1em;
    right: 1em;
    background: var(--background);
    border-radius: 3px;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

@media (max-width: 767px) {
    .cookie-popup {
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.cookie-content {
    text-align: center;
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-button {
    margin: 5px;
    padding: 8px 16px;
    cursor: pointer;
    background: var(--primary);;
    color: #fff;
    border: none;
    border-radius: 4px;
}
.cookie-button#reject-cookies {
    background: none;
    color: var(--text-1);
}



/* ---------------------------------------------------------------- */
/* Notice banner */
/* ---------------------------------------------------------------- */
.notice-banner {
    display: none;
    /* position: fixed; */
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #f7f7f7;
    z-index: 9999;
    padding: 16px 15%;
    text-align: start;
}

.notice-banner a {
    color: #add8e6;
}

.notice-content {
    display: flex;
    align-items: center;
}

.close-button {
    cursor: pointer;
    font-weight: bold;
    margin-right: 8px;
    padding: 4px 24px;
}

.toggle-container {
    justify-self: end;
}


/* ---------------------------------------------------------------- */
/* Responsive settings */
/* ---------------------------------------------------------------- */

@media (max-width: 425px), only screen and (orientation: portrait) {
    #header {
        padding: 8px 5%;
        flex-direction: column;
        align-items: flex-start;
    }
    #main {
        padding: 8px 5%;
        padding-bottom: 150px;
    }
    #footer {
        padding: 8px 5%;
    }
	.site_name {
		max-width: fit-content;
	}
    .notice-banner {
        padding: 16px 5%;
    }
    .close-button {
        padding: 4px 8px;
    }
    .popup-content {
        width: 100% !important;
        height: 100% !important;
    }
    #specific_mushroom {
        grid-template-columns: 1fr !important;
    }
    .prev_mushroom {
        justify-content: space-evenly;
    }
    .prevmushrooms_image , .prevmushrooms_image img  {
        width: 170px !important;
        height: 130px !important;
    }
    .prevmushrooms_caption {
        height: -webkit-fit-content !important;
        height: -moz-fit-content !important;
        height: fit-content !important;
    }
    .prev_mushroom figure {
        width: 170px !important;
    }
    .identification_image, .begleitpflanze_image, .umfeld_image {
        width: 100px !important;
        height: 100px !important;
    }
    .carousel {
        width: 100% !important;
        height: 350px !important;
    }
}