html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #f4fdf4, #e2f5e2); 
    color: #333;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.layout-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

main {
    flex: 2;
}

aside {
    flex: 1;
}

header {
    text-align: center;
    padding: 30px;
    background: #2e8b57;
    color: white;
    border-radius: 15px 15px 0 0;
}

header h1 {
    font-size: 2.5em;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.4); 
}

nav {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    outline: 2px dashed #2e8b57; 
    outline-offset: -5px;
    border-radius: 0 0 15px 15px;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #2e8b57;
    cursor: pointer; 
    transition: 0.3s;
    text-decoration-line: underline; 
    text-decoration-style: wavy; 
    text-decoration-color: orange;
}

nav a:hover {
    color: #1a5233;
}

.gradient-border-box {
    background: white;
    padding: 25px;
    border: 6px solid transparent;
    border-image: linear-gradient(45deg, #2e8b57, #9acd32) 1;
    margin-bottom: 20px;
}

.mushroom-card {
    background: radial-gradient(circle at top left, #ffffff, #f0fff0); 
    border-radius: 15px; 
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.mushroom-card h3 {
    margin-bottom: 15px;
    color: #2e8b57;
}

.mushroom-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

aside.info-panel {
    background: #fff;
    padding: 20px;
    border: 15px solid transparent; 
    border-image-source: url('border.png');
    border-image-slice: 27;
    border-image-width: 15px;
    border-image-outset: 5px;
    border-image-repeat: round;
}

textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical; 
    caret-color: #ff4500; 
}

textarea:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 8px rgba(46, 139, 87, 0.3);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #555;
    font-size: 0.9em;
}

.main-title::before {
    content: "\1F344 "; 
}

.section-title::before {
    content: url('icon.png'); 
    margin-right: 10px;
    vertical-align: middle;
}

q {
    quotes: "«" "»" "„" "“"; 
    color: #d2691e;
    font-weight: bold;
}

.quote-block {
    margin-top: 15px;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #2e8b57;
}

.quote-block::before {
    content: open-quote " ";
}

.quote-block::after {
    content: " " close-quote;
}

.mushroom-card::after {
    content: "Категорія: " attr(data-type); 
    display: block;
    width: max-content;
    background: #2e8b57;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

footer::before {
    content: ""; 
    display: block; 
    width: 50px;
    height: 4px;
    background-color: #2e8b57;
    margin: 0 auto 15px auto;
    border-radius: 2px;
}