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

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Nagy kontraszt, nagybetűs mód */
body.accessibility {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 1.5em !important;
}
body.accessibility header,
body.accessibility nav,
body.accessibility main,
body.accessibility footer {
    background-color: #000 !important;
    color: #fff !important;
}
body.accessibility .menu .active a {
    background-color: #fff !important;
    color: #000 !important;
}
body.accessibility a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}
body.accessibility table th,
body.accessibility table td {
    background-color: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
    color: white;
}

.fejlec tr{
    color: black;
}

section {
    margin-bottom: 30px;
}

.hatterkep {
    background-image: url('images/pasztel_sarga.jpg');
    background-size: cover;
    background-position: center;
    color: #000000;
    padding: 40px 20px;
    border-radius: 12px;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    display: inline-block;
  }
  
.menu a:active {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
  }

.menu .active a {
    background-color: #ffcc00;
    color: #222 !important;
    font-weight: bold;
    border-radius: 6px;
}
.animals-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 90%;
    margin: 0 auto 2em auto;
}

.animal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    /* border: 1px solid #ccc;  <-- EZT TÖRÖLD vagy kommentezd ki */
    border-radius: 10px;
    box-sizing: border-box;
    background: #0e2547; /* eredeti kék háttér */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #fff; /* fehér szöveg a kék háttéren */
}

.animal-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: block;
    margin-bottom: 14px;
    border: 2px solid #ffcc00;
}

.animal-card img[alt="Alchemilla micans"],
.animal-card img[alt="Psilocybe Pelliculosa"],
.animal-card img[alt="Colchicum autumnale"] {
    width: 240px;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(27, 25, 25, 0.15);
    display: block;
    margin-bottom: 14px;
    border: 2px solid #ffcc00;
}

.animal-card img[alt="Hyacinthoides"],
.animal-card img[alt="Pimpinella Animus"],
.animal-card img[alt="Onoclea sensibilis"] {
    width: 260px;
    height: 180px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: block;
    margin-bottom: 14px;
    border: 2px solid #ffcc00;
}

@media (max-width: 900px) {
    .animals-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .animal-card img {
        width: 130px;
        height: 130px;
    }
}

.animal p {
    display: flex;
    align-items: center; 
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #eee0764e;
    padding: 8px;
    text-align: left;
}

th {
    background-color: rgba(224, 114, 17, 0.644);
}

td{
    background-color: #d17b1296;
}

form input, form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

form button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #444;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

a {
    color: #fff;
    text-decoration: underline;
}
a:visited:not(.menu a) {
    color: #bbbbbb;
}
.menu a,
.menu a:visited {
    color: #fff;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: #ff0;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    outline: 2px solid #000;
    box-shadow: 0 0 2px #000;
}

.animals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
@media (max-width: 600px) {
    .animals-list {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    .animals-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 901px) {
    .animals-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    margin: 2em auto;
    width: 95%;
}

.gallery img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: block;
    margin-bottom: 14px;
    border: 2px solid #ffcc00;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .gallery img {
        width: 140px;
        height: 140px;
    }
}
@media (max-width: 600px) {
    .gallery {
        gap: 12px;
    }
    .gallery img {
        width: 100px;
        height: 100px;
    }
}