/* Flexbox for mushroom gallery */
.mushroom-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}
.mushroom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.08);
    padding: 12px;
    margin-bottom: 10px;
}
.footer-links li {
    font-size: 1.3em;
}
.content-grid {
    display: block;
    margin: 32px 0;
}
.content-card {
    background: #f8f8f8;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.08);
    padding: 10px 12px;
    width: 100%;
    /* max-width removed for full-width display */
    margin-bottom: 10px;
    box-sizing: border-box;
}
.content-card p {
    width: 100%;
    word-break: normal;
    white-space: normal;
    overflow-wrap: break-word;
}
.content-card h2 {
    color: #2e8b57;
    font-size: 1.5em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.content-card .card-icon {
    font-size: 1.3em;
    margin-right: 8px;
}
.privacy-card {
    background: #f8f8f8;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.08);
    padding: 10px 12px;
    margin: 10px auto;
    /* max-width removed for full-width display */
}
.privacy-list {
    margin: 18px 0 0 0;
    padding-left: 24px;
    font-size: 1.1em;
}
.privacy-list li {
    margin-bottom: 10px;
}
.privacy-card h2 {
    color: #2e8b57;
    font-size: 2em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.header-home-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.header-home-link:hover {
    text-decoration: none;
    color: inherit;
}
.header-content {
    width: 100%;
    height: 100%;
}
header {
    cursor: pointer;
}

.card {
    background: #f8f8f8;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.08);
    padding: 10px 12px;
    margin: 10px auto;
    /* max-width removed for full-width display */
}
.card-icon {
    font-size: 1.5em;
    margin-right: 8px;
}
.citation-list, .image-credit-list {
    margin: 18px 0 0 0;
    padding-left: 24px;
    font-size: 1.1em;
}
.image-credit-list li {
    margin-bottom: 10px;
}
.card h2 {
    color: #2e8b57;
    font-size: 2em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.card h3 {
    color: #4682b4;
    font-size: 1.3em;
    margin-bottom: 10px;
}
.card a {
    color: black;
    text-decoration: underline;
    transition: color 0.2s;
}
.card a:hover {
    color: #2e8b57;
}
.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px 0;
}
.contacts-desc {
    font-size: 1.2em;
    color: #2e8b57;
    margin-bottom: 18px;
}
.contacts-list {
    display: flex;
    flex-direction: row;
    gap: 36px;
    list-style: none;
    padding: 0;
    justify-content: center;
    align-items: center;
}
.contact-icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 24px rgba(46,139,87,0.18);
}
.contacts-message.card {
    background: #f8f8f8;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.08);
    padding: 24px 18px;
    margin: 24px auto 0 auto;
    max-width: 600px;
    font-size: 1.15em;
    color: #2e8b57;
    text-align: center;
}
body {
    font-size: 100%;
    background-image: url("../img/Medicinal-Mushroom-Background.webp");
    background-size: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    font-family: 'Merriweather', 'Arial', sans-serif;
}

header, footer {
    background: linear-gradient(to top, #357a38 0%, #a4bba4 100%);
    color: white;
    border: 2px solid #a4bba4;
    text-align: center;
}
header {
    background-image:
        url('../img/Non-Medicinal-Mushroom-Header.webp'),
        linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
    background-position: center;
    background-size: cover;
        height: 320px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
}
footer {
    height: 150px;
}
main {
    background-color: #F0F8FF;
    padding: 10px;
    text-align: center;
    min-height: 550px;
}

.about-me {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin: 32px 0;
    justify-content: center;
}
.about-me-img {
    height: auto;
    flex: 0 0 320px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.about-me-text {
    flex: 1 1 320px;
    min-width: 220px;
    font-size: 1.1em;
    text-align: left;
}
.about-me-text p{
    margin:20px;
}
h1, h2, h3 {
    margin-bottom: 16px;
}
h1 {
    font-size: 300%;
    stroke: #2e8b57;
}
h2 {
    font-size: 200%;
    color: #2e8b57;
}
h3 {
    font-size: 250%;
}
.intro {
    display: flex;
    align-items: center;
    justify-content: center; /* center the image + text block as a whole */
    gap: 32px;
    flex-wrap: wrap; /* allow stacking on small screens */
}
.intro img {
    flex-shrink: 0; 
    height: auto;
    border: 2px solid #a4bba4;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.12);
}
/* For main mushroom image in intro section */
.main-mushroom-img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/* For main mushroom image in intro section */
.main-mushroom-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.intro-text {
    flex: 1 1 420px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: flex-start; 
    box-sizing: border-box;
    padding: 0 12px;
    max-width: 640px;
}
.intro-text h2 {
    font-size:200%;
    margin-bottom: 18px;
}
.intro-text p{
    font-size: 115%;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 560px; /* limit paragraph width for better readability */
    text-align: left; /* ensure paragraphs are left-aligned while the section stays centered */
}
p {
    font-size: 100%;
    line-height: 1.7;
}

/* For external links styled in HTML */
.external-link {
    color: #222;
    font-style: italic;
    text-decoration: underline;
}

/* Author signature styling */
.author-signature {
    display: block;
    margin-left: auto;
    margin-right: 0;
    margin-top: 40px;
    font-size: 1.1em;
    color: #1B5030;
    font-style: italic;
}

/* Footer links styling */
    .footer-links {
.footer-copyright {
    position: absolute;
    left: 16px;
    bottom: 8px;
    margin: 0;
    font-size: 1em;
}
    font-size: 180%;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 10px;
}
ul p, section.list li p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
section.list li {
    text-align: center;
}
section.list ul li {
    list-style-type: none;
    margin-bottom: 20px;
    margin-top: 20px;
    background-color: #a4bba4;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
footer a {
    color: white;
    text-decoration: none;
}

/* For external links styled in HTML */
.external-link {
    color: #222;
    font-style: italic;
    text-decoration: underline;
}
a:hover {
    color: #2e8b57;
    text-decoration: underline;
    transition: color 0.2s;
}
footer p {
    text-align: left;
}
footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 10px;
}
.content section{
    text-align: left;
}
.content p {
    font-size: 120%;
    line-height: 1.6;
}
.about-me {
    display:flex;
}
.contacts ul {
    display:flex;
}
.contacts li{
    font-size: 120%;
    margin-left: 10px;
}
.imagecredits{
    margin-bottom:10px;
}

/* Cookie consent banner styles */
.cookie-banner{
    display:none;
    position:fixed;
    left:1rem;
    right:1rem;
    bottom:1rem;
    background: rgba(255,255,255,0.98);
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
    border-radius:8px;
    z-index:9999;
    padding:1rem;
}
.cookie-content{
    display:flex;
    gap:1rem;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
}
.cookie-content p{
    margin:0;
    flex:1 1 320px;
    color:#222;
}
.cookie-actions{
    display:flex;
    gap:.5rem;
    align-items:center;
    justify-content:flex-end;
    flex:0 0 auto;
}
.btn{
    padding:0.5rem 0.75rem;
    border-radius:6px;
    border:1px solid transparent;
    font-size:0.95rem;
    cursor:pointer;
    text-decoration:none;
}
.btn-accept{ background:#2b8a3e; color:#fff; border-color:#2b8a3e }
.btn-decline{ background:#fff; color:#333; border-color:#ccc }

@media (max-width:480px){
    .cookie-banner{ left:0.5rem; right:0.5rem; bottom:0.5rem; padding:.75rem }
    .cookie-actions{ width:100%; justify-content:space-between; margin-top:.5rem }
}
