body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: #222;
    font-size: 1rem;
}
header {
    background: #f3f3f3;
    border-bottom: 2px solid #222;
    padding: 0;
}
header h1 {
    text-align: center;
    margin: 0;
    padding: 0.75em 0 0 0;
    font-size: 1.4rem;
    font-weight: bold;
}
.external-links :visited {
    color: yellow !important;
}
nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0 16px 0 0;
    border-bottom: 1px solid #222;
    background: #fff;
}
nav ul li {
    margin-left: 32px;
}
nav ul li a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    padding: 0.5em 0;
}
nav ul li a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5em 1em 0 1em;
    min-height: 70vh;
}
footer {
    border-top: 2px solid #222;
    background: #f3f3f3;
    text-align: center;
    padding: 1em 0 0.5em 0;
    font-size: 1rem;
    margin-top: 2em;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0;
    gap: 12px;
}
.footer-section {
    flex: 1 1 200px;
    text-align: center;
    font-size: 1rem;
    color: #444;
}
.footer-section a {
    color: #222;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
}
.footer-section a:hover {
    text-decoration: underline;
}
.footer-author {
    font-style: italic;
    color: #666;
}
@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 4px;
    }
    .footer-section {
        text-align: center;
        font-size: 0.98rem;
    }
}
/* Home oldal */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
    gap: 2em;
}
.main-info {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 2em;
    border: 2px solid #222;
    padding: 2em;
    background-image: url('/kepek/gpu_bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
}
.main-img {
    width: 400px;
    max-width: 45%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 2px solid #222;
    background: #eee;
}
.main-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}
.timeline-box {
    width: 100%;
    max-width: 800px;
    border: 2px solid #222;
    background: #fafafa;
    padding: 2em;
}
.timeline-box h2 {
    font-size: 1.2rem;
    margin-top: 0;
    background: #eaeaea;
    padding: 0.25em 0.5em;
    font-weight: bold;
}
.timeline-box ul {
    padding-left: 18px;
    margin-bottom: 12px;
}
.timeline-box li {
    margin-bottom: 4px;
}
.gallery {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 0;
}
.gallery-item {
    flex: 1;
    max-width: 450px;
    text-align: center;
    background: #fafafa;
    padding: 1.5em;
    border: 2px solid #222;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid #222;
    background: #eee;
    margin-bottom: 1em;
}
.video-section {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2em;
    margin: 0;
    align-items: start;
}
.video-section video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background: #eee;
    border: 2px solid #222;
}
.video-section .video-desc {
    padding: 1.5em;
    background: #fafafa;
    border: 2px solid #222;
    font-size: 1.1rem;
    line-height: 1.5;
}
body.dark-mode .video-section .video-desc {
    background: #222;
    color: #e0e0e0;
}
.video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    border: 2px solid #222;
    padding: 1.5em;
    font-size: 1.2rem;
    text-decoration: none;
    color: #222;
    background: #fafafa;
    transition: background 0.2s;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.video-link:hover {
    background: #eaeaea;
}
.video-icon {
    font-size: 2.2rem;
}
/* Comparison oldal */
.comparison-info {
    border: 2px solid #222;
    background: #fafafa;
    padding: 20px;
    margin-bottom: 24px;
}
.comparison-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
}
.comparison-info th, .comparison-info td {
    border: 1px solid #222;
    padding: 8px 10px;
    text-align: center;
}
.comparison-info th {
    background: #eaeaea;
    font-weight: bold;
}
.brands {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}
.brand {
    flex: 1;
    border: 2px solid #222;
    background: #fff;
    padding: 20px 16px 16px 16px;
    text-align: center;
}
.brand-logo {
    width: 160px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    background: #fff;
}
.brand h2 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: bold;
}
/* Review oldal */
.review-form {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    justify-content: center;
}
.form-left, .form-right {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-left label, .form-right label {
    font-weight: 500;
    margin-bottom: 2px;
}
.form-left input, .form-left textarea {
    width: 100%;
    padding: 8px;
    border: 1.5px solid #222;
    border-radius: 3px;
    font-size: 1rem;
    margin-bottom: 8px;
    background: #fafafa;
}
.form-left textarea {
    min-height: 70px;
    resize: vertical;
}
.checkbox-group, .radio-group, .rating-group {
    margin-bottom: 12px;
}
.radio-group label, .rating-group label {
    margin-right: 10px;
    font-weight: 400;
}
.form-buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.form-buttons button {
    padding: 0.5em 1.5em;
    font-size: 1rem;
    border: 2px solid #222;
    background: #fafafa;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}
.form-buttons button:hover {
    background: #eaeaea;
}
@media (max-width: 1200px) {
    .home {
        grid-template-columns: repeat(8, 1fr);
        padding: 1.5em 1.5em;
    }
    
    .timeline-box {
        grid-column: 1 / 4;
    }
    
    .gallery {
        grid-column: 4 / -1;
    }
}
@media (max-width: 900px) {
    .home {
        padding: 1em;
        gap: 1.5em;
    }
    
    .main-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }
    
    .main-img {
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-box, .gallery {
        grid-column: 1 / -1;
    }
    
    .video-section {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .video-section .video-desc {
        text-align: center;
    }
    
    .timeline-box,
    .video-section .video-desc {
        max-width: 600px;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
        max-width: 600px;
    }

    .gallery-item {
        width: 100%;
        max-width: 500px;
    }
}
@media (max-width: 500px) {
    .home {
        padding: 0.5em;
        gap: 1em;
    }
    .main-info,
    .timeline-box,
    .gallery-item,
    .external-links {
        padding: 1em;
    }
    .gallery-item {
        padding: 1em;
    }
    .gallery-item img {
        height: 200px;
    }
    .video-section {
        max-width: 350px;
    } 
}
/* Sötét mód stílusok */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

body.dark-mode nav ul {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

body.dark-mode .main-info,
body.dark-mode .timeline-box,
body.dark-mode .brand,
body.dark-mode .comparison-info,
body.dark-mode .video-link {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .timeline-box h2 {
    background: #404040;
    color: #ffffff;
}

body.dark-mode .comparison-info th {
    background: #404040;
    color: #ffffff;
}

body.dark-mode .comparison-info th,
body.dark-mode .comparison-info td {
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .form-left input,
body.dark-mode .form-left textarea {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .form-left label,
body.dark-mode .form-right label,
body.dark-mode .radio-group p,
body.dark-mode .rating-group p {
    color: #e0e0e0;
}

body.dark-mode footer {
    background: #2d2d2d;
    border-top-color: #404040;
}

body.dark-mode .footer-section {
    color: #e0e0e0;
}

body.dark-mode .footer-section a {
    color: #ffffff;
}

body.dark-mode .footer-author {
    color: #b0b0b0;
}

body.dark-mode .gallery-item p {
    color: #e0e0e0;
}

body.dark-mode .video-link {
    color: #e0e0e0;
}

body.dark-mode .gallery-item,
body.dark-mode .external-links {
    color: #e0e0e0;
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-mode td {
    color: #e0e0e0;
    background: #525252;
    border-color: #404040;
}


body.dark-mode .video-link:hover {
    background: #404040;
}

/* Sötét mód gomb stílusok */
#darkModeToggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5em;
    font-size: 1.2rem;
}

body.dark-mode #darkModeToggle {
    color: #ffffff;
}

body.dark-mode .main-info {
    background-blend-mode: multiply;
    /* Sötét módban sötétebb legyen a háttérkép */
}

.video-section video {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.back-btn {
    padding: 0.5em 1em;
    font-size: 1rem;
    border: 2px solid #222;
    background: #fafafa;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 0.5em;
    transition: background 0.2s;
}
.back-btn:hover {
    background: #eaeaea;
}

@media (max-width: 700px) {
    .video-section video {
        max-width: 100vw;
    }
    .gallery-item img {
        max-width: 90vw;
    }
}

@media (max-width: 500px) {
    .video-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
        margin: 1em 0 0.5em 0;
    }
    .video-section video,
    .video-section .video-desc {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .video-section .video-desc {
        padding: 0.5em;
        font-size: 0.98rem;
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #222;
    color: #fff;
    padding: 0.5em 1em;
    z-index: 1000;
    border-radius: 4px;
    font-size: 1.1em;
    text-decoration: none;
}
.skip-link:focus {
    left: 8px;
    outline: 2px solid #fff;
}

body.accessible-mode {
    font-size: 1.25em;
    background: #000 !important;
    color: #fff !important;
    line-height: 1.6;
    letter-spacing: 0.5px;
}
body.accessible-mode header,
body.accessible-mode nav ul,
body.accessible-mode .main-info,
body.accessible-mode .timeline-box,
body.accessible-mode .brand,
body.accessible-mode .comparison-info,
body.accessible-mode .video-link,
body.accessible-mode footer,
body.accessible-mode .video-section .video-desc,
body.accessible-mode .gallery-item,
body.accessible-mode .form-left input,
body.accessible-mode .form-left textarea {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    border-width: 3px !important;
}
body.accessible-mode h1,
body.accessible-mode h2,
body.accessible-mode h3,
body.accessible-mode h4,
body.accessible-mode h5,
body.accessible-mode h6 {
    color: #ff0 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold !important;
    margin-bottom: 1em !important;
}
body.accessible-mode a {
    color: #0ff !important;
    text-decoration: underline !important;
    font-weight: bold;
    padding: 0.2em 0;
}
body.accessible-mode a:hover,
body.accessible-mode a:focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 2px !important;
}
body.accessible-mode .back-btn,
body.accessible-mode #darkModeToggle,
body.accessible-mode button,
body.accessible-mode .form-buttons button {
    font-size: 1.2em;
    padding: 0.7em 2em;
    background: #222 !important;
    color: #fff !important;
    border: 3px solid #fff !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    min-height: 44px !important;
    min-width: 44px !important;
}
body.accessible-mode .back-btn:hover,
body.accessible-mode #darkModeToggle:hover,
body.accessible-mode button:hover,
body.accessible-mode .form-buttons button:hover {
    background: #444 !important;
    outline: 3px solid #ff0 !important;
}
body.accessible-mode .external-links,
body.accessible-mode input,
body.accessible-mode textarea,
body.accessible-mode select {
    font-size: 1.1em;
    background: #111 !important;
    color: #fff !important;
    border: 3px solid #fff !important;
    padding: 0.5em !important;
    min-height: 44px !important;
}
body.accessible-mode input:focus,
body.accessible-mode textarea:focus,
body.accessible-mode select:focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 2px !important;
}
body.accessible-mode .footer-section {
    color: #fff !important;
}
body.accessible-mode .gallery-item img {
    border: 3px solid #fff !important;
}
body.accessible-mode .video-section video {
    border: 3px solid #fff !important;
}
body.accessible-mode .skip-link {
    background: #ff0 !important;
    color: #000 !important;
    font-weight: bold !important;
    padding: 1em !important;
    font-size: 1.2em !important;
}
body.accessible-mode .skip-link:focus {
    left: 8px;
    outline: 3px solid #fff !important;
}
/* Akadálymentesített táblázatok */
body.accessible-mode table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}
body.accessible-mode th,
body.accessible-mode td {
    border: 3px solid #fff !important;
    padding: 1em !important;
    text-align: left !important;
}
body.accessible-mode th {
    background: #222 !important;
    color: #ff0 !important;
}
/* Akadálymentesített lista elemek */
body.accessible-mode ul,
body.accessible-mode ol {
    padding-left: 2em !important;
    margin: 1em 0 !important;
}
body.accessible-mode li {
    margin-bottom: 0.5em !important;
}
/* Akadálymentesített form elemek */
body.accessible-mode .checkbox-group,
body.accessible-mode .radio-group,
body.accessible-mode .rating-group {
    margin: 1em 0 !important;
}
body.accessible-mode .checkbox-group label,
body.accessible-mode .radio-group label,
body.accessible-mode .rating-group label {
    display: block !important;
    margin-bottom: 0.5em !important;
    padding: 0.5em !important;
}
body.accessible-mode input[type="checkbox"],
body.accessible-mode input[type="radio"] {
    width: 1.5em !important;
    height: 1.5em !important;
    margin-right: 0.5em !important;
}
/* Akadálymentesített videó leírások */
body.accessible-mode .video-desc {
    font-size: 1.2em !important;
    padding: 1em !important;
}
/* Akadálymentesített idővonal */
body.accessible-mode .timeline-box {
    font-size: 1.2em !important;
    padding: 1.5em !important;
}
body.accessible-mode .timeline-box li {
    margin-bottom: 1em !important;
    padding-left: 0.5em !important;
}
/* Akadálymentesített galéria */
body.accessible-mode .gallery-item figcaption {
    font-size: 1.2em !important;
    margin-top: 1em !important;
    font-weight: bold !important;
}

.external-links {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 1em;
    background: #fafafa;
    border: 2px solid #222;
}

.external-links ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.external-links li {
    margin: 0.5em 0;
} 

@media (max-width: 700px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border-bottom: none;
    }
    nav ul li {
        margin-left: 0;
        width: 100%;
    }
    nav ul li a, nav ul li button {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.75em 1em;
        font-size: 1.1rem;
        box-sizing: border-box;
    }
    .form-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .form-buttons button {
        width: 100%;
        font-size: 1.05rem;
    }
}

.gallery-img.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05);
    max-width: 70vw;
    max-height: 70vh;
    z-index: 2000;
    box-shadow: 0 0 40px 10px rgba(0,0,0,0.7);
    background: #222;
    border: 4px solid #fff;
    cursor: zoom-out;
}
.gallery-img.expanded::backdrop {
    background: rgba(0,0,0,0.7);
}
@media (max-width: 700px) {
    .brands {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .brand {
        max-width: 100%;
    }
}

.navbar-toggle {
    display: none;
    background: #222;
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5em 1em;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 1100;
    border-radius: 4px;
}
@media (max-width: 700px) {
    .navbar-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 48px;
        right: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        border-bottom: 2px solid #222;
        padding: 0;
    }
    nav ul.open {
        display: flex;
    }
} 