/* Alapbeállítások */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    font-size: 1rem;
}

/* Sötét mód */
body.darkmode {
    background-color: #222;
    color: #eee;
}
body.darkmode main {
    background: #333;
    color: #eee;
}
body.darkmode header {
    background-color: #111;
}
body.darkmode nav a {
    color: #1abc9c;
}
body.darkmode nav a:hover {
    color: #fff;
}

/* Fejléc és navigáció */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 15px;
    margin-bottom: 30px;
    border-radius: 8px;
}
header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
nav {
    background-color: #1a232e;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    margin-bottom: 20px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0;
    padding: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
nav a:hover {
    background: #1abc9c;
    color: #222;
}
nav a,
nav a:visited {
    text-decoration: none;
}
nav a.active {
    background: #fff;
    color: #1a232e !important;
    border-bottom: 3px solid #1abc9c;
    cursor: default;
    pointer-events: none;
}

/* Fő tartalom */
main {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
main h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}
main h3 {
    margin-top: 20px;
    color: #1abc9c;
}
main a:link {
    color: #2980b9;
    text-decoration: underline;
}
main a:visited {
    color: #8e44ad;
    text-decoration: underline;
}
main a:hover,
main a:focus {
    color: #1abc9c;
    text-decoration: underline;
}
main#main-content,
main.with-bg {
    background-image: url('renata_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
section {
    margin-bottom: 30px;
}
section ul {
    padding-left: 20px;
    list-style: disc;
}

/* Lábjegyzet */
footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 0.875rem;
}

/* Linkek */
a {
    color: #2980b9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Layout (két hasáb, reszponzív) */
.layout {
    display: flex;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.main-content {
    flex: 2 1 0;
    min-width: 0;
}
.side-content {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 340px;
}
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }
    .side-content {
        max-width: 100%;
    }
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Táblázatok */
.matchup-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    margin: 2em 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.matchup-table th, .matchup-table td {
    padding: 1em 1.2em;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    text-align: left;
    background: #fafbfc;
}
.matchup-table th {
    background: #e8f4fa;
    font-size: 1.1em;
    font-weight: bold;
}
.matchup-table tr:last-child td {
    border-bottom: none;
}
.matchup-table td {
    line-height: 1.6;
    font-size: 1em;
}

/* Visszajelzés doboz és űrlap */
.feedback-box {
    background: #f3f7fa;
    border: 2px solid #b8d8ea;
    border-radius: 10px;
    padding: 24px 20px 16px 20px;
    margin: 32px 0 0 0;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}
.feedback-box h2 {
    margin-top: 0;
    color: #2980b9;
}
.feedback-box form {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}
.feedback-box label {
    font-weight: 500;
    margin-bottom: 0.2em;
}
.feedback-box input[type="text"],
.feedback-box textarea {
    padding: 0.5em;
    border-radius: 5px;
    border: 1px solid #b8d8ea;
    background: #fff;
    font-size: 1em;
}
.feedback-box .radio-group,
.feedback-box .checkbox-group {
    display: flex;
    gap: 1.5em;
    align-items: center;
    margin-bottom: 0.5em;
}
.feedback-box button[type="submit"] {
    align-self: flex-start;
    background: #1abc9c;
    color: #fff;
    border: 1px solid #1abc9c;
    border-radius: 5px;
    padding: 0.6em 1.4em;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.feedback-box button[type="submit"]:hover {
    background: #2980b9;
    border: 1px solid #2980b9;
}
.feedback-box button[type="reset"] {
    align-self: flex-start;
    background: linear-gradient(90deg, #1abc9c 0%, #2980b9 100%);
    color: #fff;
    border: 1px solid #1abc9c;
    border-radius: 5px;
    padding: 0.6em 1.4em;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.7em;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.feedback-box button[type="reset"]:hover {
    background: linear-gradient(90deg, #2980b9 0%, #1abc9c 100%);
    color: #fff;
    border: 1px solid #2980b9;
}

/* Skip link akadálymentességhez */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: #ff0;
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    outline: 2px solid #1abc9c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Fejléc flexbox */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.header-logo {
    max-width: 120px;
    border-radius: 8px;
}

/* High contrast mód gyengénlátóknak */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
    font-size: 1.3rem !important;
    letter-spacing: 0.05em;
}
body.high-contrast header,
body.high-contrast main,
body.high-contrast footer {
    background: #000 !important;
    color: #fff !important;
}
body.high-contrast nav {
    background: #fff !important;
}
body.high-contrast nav a {
    color: #000 !important;
    background: #fff !important;
    font-size: 1.2em !important;
    border-radius: 0 !important;
    border-bottom: 3px solid #ff0 !important;
}
body.high-contrast nav a.active {
    background: #ff0 !important;
    color: #000 !important;
    border-bottom: 3px solid #fff !important;
}
body.high-contrast a {
    color: #ff0 !important;
    text-decoration: underline !important;
    font-weight: bold;
}
body.high-contrast table,
body.high-contrast th,
body.high-contrast td {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #ff0 !important;
}
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast button {
    background: #fff !important;
    color: #000 !important;
    font-size: 1.1em !important;
    border: 2px solid #ff0 !important;
}

/* Nyomtatási stílus */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 1rem;
        line-height: 1.4;
        padding: 0;
        margin: 0;
    }
    header, nav, footer, .side-content, .extra-content, button, #toggle-theme, video, aside {
        display: none !important;
    }
    main {
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    img {
        max-width: 40% !important;
        height: auto !important;
        display: block;
        margin: 1em auto !important;
        page-break-inside: avoid;
    }
    table {
        width: 100% !important;
        font-size: 0.95em;
        border-collapse: collapse;
    }
    th, td {
        border: 1px solid #888;
        padding: 4px 8px;
    }
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    a {
        color: #000;
        text-decoration: underline;
        word-break: break-all;
    }
    * {
        background: none !important;
        box-shadow: none !important;
        color-adjust: exact;
    }
}

/* Űrlap mezők */
input[type="text"] {
    max-width: 200px;
    width: 100%;
    box-sizing: border-box;
}
textarea {
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}
form label {
    margin-right: 0.5em;
    margin-bottom: 0.2em;
    display: inline-block;
}
form input,
form textarea {
    margin-bottom: 1em;
}

/* Magas kontraszt */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast img {
    filter: contrast(150%);
    border: 2px solid #fff;
}

.high-contrast header,
.high-contrast footer,
.high-contrast nav {
    background-color: #111 !important;
    border-bottom: 2px solid #fff;
}

.high-contrast button {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff;
}