/* Az eredeti stílusok a korábban feltöltött styles.css fájlból */

html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    position: relative;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px;
    overflow: hidden;
    background-image: url('pic/bor.jpg'); /* relatív elérési út */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin-top: 10px;
    font-size: 1.2em;
}

nav {
    background: #444;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #4CAF50;
    color: white;
}

section {
    padding: 40px 20px;
    background: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 30px; /* Egy kis extra hely a cím és a tartalom között */
    font-size: 2em;      /* Igény szerint állítsd a méretet */
    color: #2e7d32;      /* Az erdőhöz illő zöld árnyalat */
}

.fa {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.fa:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

footer {
    background: #444;
    color: white;
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 1em;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
}

form input, form textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

form button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #45a049;
}


/* Stílusok a galériához */
.tree-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px; /* Helyköz a képek között */
}

.tree-item {
    flex-basis: calc(33.33% - 20px);
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    min-width: 250px;
}

.tree-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tree-item img {
    width: 100%; /* A képek kitöltik a tároló szélességét */
    height: 200px; /* Rögzített magasság az egységes mérethez */
    object-fit: cover; /* Megtartja az arányokat, vágva a felesleget */
    border-radius: 4px;
    margin-bottom: 10px;
}

.tree-item h3 {
    margin: 0;
    font-size: 1.2em;
    color: #4CAF50;
}

.tree-item a {
    text-decoration: none; /* eltávolítja az aláhúzást a linkekről */
    color: inherit;
    display: block;
}

/* Reszponzív kialakítás kisebb képernyőkre */
@media (max-width: 500px) {
    .tree-gallery {
        flex-direction: column;
        align-items: center;
    }

    .tree-item {
        width: 100%;
        margin-bottom: 20px;
    }

    /* ÚJ: Mobil menü javítása */
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

#terkep {
    margin: 40px 20px;
}

#terkep h2 {
    text-align: center; /* Középre igazított cím */
    margin-bottom: 20px;
}

.map-container {
    max-width: 1000px; /* Hogy ne legyen túl széles nagy monitoron */
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.top-jump {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dotted #ddd;
}

.top-jump a {
    text-decoration: none;
    color: #2e7d32; /* Az erdőhöz illő zöld */
    font-size: 0.9em;
    font-weight: bold;
    transition: color 0.3s;
}

.top-jump a:hover {
    color: #4CAF50;
    text-decoration: underline;
}