* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Roboto", system-ui, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #222;
    background-image: url('hatter.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

h1, h2 {
    font-family: "Georgia", "Times New Roman", serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo {
    width: 160px;
    height: auto;
    margin: 0;
}

nav {
    background: none;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.menu li {
    margin: 0 1rem;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.menu a.active {
    background-color: #ccc;
    color: #222;
    border-radius: 4px;
}

.fejlec-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #333;
}

main.tartalom {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
}

.bal-oldal, .jobb-oldal {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tartalom-ketto {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.karakter {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.karakter:nth-child(even) {
    flex-direction: row-reverse;
}

.karakter img {
    max-width: 200px;
    border-radius: 8px;
}

.titan-kepek {
    border-radius: 8px;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

video {
    width: 100%;
    border-radius: 8px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

button:hover {
    background-color: #555;
}

.reset-btn {
    background-color: #e74c3c;
}

.reset-btn:hover {
    background-color: #c0392b;
}

.stars {
    display: flex;
    direction: rtl;
    font-size: 2rem;
    gap: 5px;
}

.stars input {
    display: none;
}

.stars label {
    width: 40px;
    height: 40px;
    background: url('emptystar.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stars input:checked ~ label,
.stars input:hover ~ label,
.stars input:checked + label {
    background: url('star.png') no-repeat center center;
    background-size: contain;
}

.video-description summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
}

.description-content {
    margin-top: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #333;
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.accessibility-controls button[aria-pressed="true"] {
    background-color: #4CAF50;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgba(0,0,0,0.9);
    z-index: 1000;
    text-align: center;
}

#lightbox-img {
    max-height: 90%;
    max-width: 90%;
    margin-top: 5vh;
}

@media (max-width: 768px) {
    main.tartalom {
        flex-direction: column;
    }
    .karakter {
        flex-direction: column !important;
    }
    .bal-oldal, .jobb-oldal {
        flex: 1 1 100%;
        margin-bottom: 2rem;
    }
}

@media print {
    header, nav, footer, .oldalsav, video {
        display: none !important;
    }
    img {
        max-width: 50% !important;
        border: 1px solid #ddd !important;
    }
    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        background: none !important;
        margin: 0 !important;
        padding: 10mm !important;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
.video-description {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.video-description summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

.video-description summary:hover {
    background-color: #e0e0e0;
}

.description-content {
    margin-top: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 3px;
}

.description-content ol,
.description-content ul {
    margin-left: 20px;
    padding-left: 15px;
}

.description-content li {
    margin-bottom: 5px;
}
.accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.accessibility-controls button {
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    min-width: 40px;
}

.accessibility-controls button:hover {
    background-color: #555;
}

.accessibility-controls button:focus {
    outline: 2px solid #4CAF50;
}

.accessibility-controls button[aria-pressed="true"] {
    background-color: #4CAF50;
}
aside.oldalsav {
    background-color: #f5f5f5;
    padding: 1em;
    border-left: 2px solid #ddd;
}
.footer {
  background-color: #222;
  color: #eee;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}
