/* --- 1. VÁLTOZÓK ÉS ALAP BEÁLLÍTÁSOK --- */
:root {
    --bg-white: #ffffff;
    --text-dark: #333333;
    --sidebar-bg: #ffffff;
    --border-color: #e0e0e0;
    --footer-bg: #2d2d2d;
    --accent-blue: #3273dc;
    --accent-green: #27ae60;
    --accent-hover: #4a86e8;
    --sidebar-width: 320px;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background-color: #f4f7f6;
    background-image: radial-gradient(#d5e0d8 2px, transparent 2px);
    background-size: 30px 30px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-blue);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-hover);
}

/* --- 2. FŐ ELRENDEZÉS (LAYOUT) --- */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    flex-grow: 1;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-content {
    flex-grow: 1;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.main-footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* --- 3. TIPOGRÁFIA ÉS CÍMSOROK --- */
.main-header {
    padding: 0 0 30px 0;
    border-bottom: none;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.header-image-container {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid #ffffff;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.header-image-container:hover .header-banner {
    transform: scale(1.03);
}

.main-header h1 {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    font-size: 3rem;
}

.site-subtitle {
    margin: 10px 0 0 0;
    font-size: 1.3rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 400;
}

.main-content h2,
.main-content h3 {
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.main-content h2::after,
.main-content h3::after {
    content: "";
    position: absolute;
    left: -5px;
    bottom: 5px;
    width: calc(100% + 10px);
    height: 12px;
    background-color: rgba(241, 196, 15, 0.4);
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

.main-content ul {
    list-style-type: none;
    padding-left: 10px;
}

.main-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.main-content ul li::before {
    content: "🧭";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
    color: var(--accent-blue);
}

/* --- 4. OLDALSÁV (SIDEBAR) ÉS MENÜ --- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px 0 20px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 10px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
}

.sidebar-top-logo {
    width: 80%;
    max-width: 160px;
    height: auto;
    display: inline-block;
    mix-blend-mode: multiply;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.main-nav li {
    margin-bottom: 10px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--accent-blue);
}

.nav-link.active {
    color: var(--accent-green) !important;
    font-weight: 700;
}

.nav-link.active::before {
    content: "💰";
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2rem;
    animation: bounceIn 0.5s ease;
}

.sub-menu {
    padding-left: 20px !important;
    margin-top: 5px !important;
}

.sub-menu a {
    font-size: 0.95rem;
    font-weight: 400;
}

.sub-menu .active {
    color: #f1c40f !important;
}

.sub-menu .active::before {
    content: "💵";
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1rem;
    animation: bounceIn 0.5s ease;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 20px;
}

.cimer-area {
    text-align: center;
    margin-bottom: 20px;
}

.varmegye-svg {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.top-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* --- 5. UI KOMPONENSEK (GOMBOK, KÖNYVEK, MAPPA) --- */
.folder-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.folder-list ul li::before {
    display: none;
}

.folder-list ul li a {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 0 #23519d;
    transition: all 0.2s;
}

.folder-list ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #23519d;
    background-color: var(--accent-hover);
}

.folder-list ul li a:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #23519d;
}

.btn-submit {
    display: inline-block;
    background-color: var(--accent-green);
    color: #ffffff !important;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 0 #1e8449;
    transition: all 0.2s ease;
    margin-top: 20px;
    width: auto;
    min-width: 280px;
}

.btn-submit:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1e8449;
}

.btn-submit:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1e8449;
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--accent-blue);
    color: #ffffff !important;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 0 #23519d;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #23519d;
}

.btn-link:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #23519d;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.book-item {
    display: flex;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 3px solid #f0f4f8;
    align-items: flex-start;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.book-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.book-cover {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.book-item:hover .book-cover {
    transform: scale(1.05) rotate(-2deg);
}

.book-info {
    flex-grow: 1;
}

.book-info h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1.6rem;
    font-family: 'Fredoka', sans-serif;
}

.book-info p {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* --- 6. ŰRLAPOK ÉS MODÁLIS ABLAK --- */
.form-container {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: 400;
}

.submit-box {
    margin-top: 30px;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    background-color: #ffffff;
    margin: 15vh auto;
    padding: 40px 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

.custom-modal-content h3 {
    color: var(--accent-blue);
    margin-top: 0;
    font-size: 1.6rem;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--accent-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 25px auto 0;
    animation: spin 1s linear infinite;
}

/* --- 7. ANIMÁCIÓK ÉS VISSZAJELZÉSEK --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes shakeIt {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-15px);
    }

    40% {
        transform: translateX(15px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }
}

.feedback-icon {
    text-align: center;
    font-size: 5rem;
    margin-top: 40px;
    margin-bottom: 10px;
    display: block;
}

.success-icon {
    animation: floatUp 2.5s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.error-icon {
    animation: shakeIt 0.5s ease-in-out;
}

/*    8. MOBIL NÉZET ÉS RESZPONZIVITÁS (EGYETLEN BLOKKBA GYŰJTVE) */

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    .mobile-only {
        display: inline-block !important;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .main-header h1 {
        font-size: 2.2rem;
    }

    .header-image-container {
        margin-bottom: 15px;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .main-content {
        padding: 20px;
    }

    .btn-submit {
        width: 100%;
        font-size: 1.2rem;
        padding: 15px 20px;
        min-width: auto;
    }

    .btn-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
        width: 280px !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 0 50px 0;
        margin-bottom: 30px;
        text-align: center;
        position: relative;
    }

    .burger-btn {
        background-color: var(--accent-blue) !important;
        color: white !important;
        border: none !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
        cursor: pointer;
        font-weight: 600 !important;
        font-family: 'Fredoka', sans-serif !important;
        font-size: 0.9rem !important;
        box-shadow: 0 3px 0 #23519d !important;
        position: absolute !important;
        bottom: 10px !important;
        right: 0 !important;
        display: block !important;
        width: auto !important;
        z-index: 100 !important;
    }

    .header-image-container {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
        z-index: 10;
    }

    .main-header::after {
        content: "";
        display: table;
        clear: both;
    }

    .burger-btn:active {
        transform: translateY(4px) !important;
        box-shadow: 0 1px 0 #23519d !important;
    }

    .close-btn {
        background: none !important;
        border: none !important;
        color: #888 !important;
        font-size: 2.2rem !important;
        cursor: pointer;
        align-self: flex-end !important;
        padding: 5px 15px !important;
        margin-top: -5px !important;
        line-height: 1 !important;
        display: block !important;
        transition: color 0.2s;
    }

    .close-btn:hover {
        color: var(--accent-blue) !important;
    }

    .book-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .book-cover {
        width: 160px;
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- HÍREK OLDAL SPECIÁLIS STÍLUSAI --- */
.news-container {
    max-width: 800px;
    /* Hogy ne legyen túl széles és nehezen olvasható a szöveg */
    margin: 0 auto;
}

.news-card {
    background: #fdfdfd;
    border: 2px solid #f0f4f8;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-blue);
}

.news-card-title {
    margin: 10px 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: var(--accent-blue);
}

.news-date {
    display: inline-block;
    background-color: #eef2f7;
    color: #5c7c94;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.news-card-body {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.btn-read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: letter-spacing 0.2s;
}

.btn-read-more:hover {
    letter-spacing: 0.5px;
    color: var(--accent-hover);
}

/* --- 🍪 SÜTI (COOKIE) BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--accent-blue);
    padding: 20px 25px;
    z-index: 10000;
    /* Minden felett legyen */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: modalFadeIn 0.5s ease-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-icon {
    font-size: 3rem;
    animation: floatUp 2.5s ease-in-out infinite;
    /* Mozog a süti! */
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--accent-green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #1e8449;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e8449;
}

.btn-cookie-accept:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #1e8449;
}

.btn-cookie-reject {
    background-color: transparent;
    color: #888;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-cookie-reject:hover {
    color: var(--accent-blue);
}

/* Mobilos nézet igazítása a Süti Bannerhez */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        bottom: 10px;
        padding: 15px;
        border-radius: 15px;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        gap: 5px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }
}

/* --- GOOGLE ŰRLAP BEÁGYAZÁS (1. Forduló) --- */
.google-form-wrapper {
    position: relative;
    width: 100%;
    /* A magasságot úgy állítjuk be, hogy kényelmes legyen asztalin és mobilon is */
    height: 1200px;
    overflow: hidden;
    border-radius: 15px;
    /* Illeszkedik a többi kártyánkhoz */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
    background: #fff;
    margin-top: 30px;
}

.google-form-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobilon kicsit kisebb magasság is elég lehet, illetve igazodik a képernyőhöz */
@media (max-width: 768px) {
    .google-form-wrapper {
        height: 1500px;
        /* Mobilon hosszabb az űrlap, mert egymás alá kerülnek az elemek */
        border-radius: 10px;
    }
}

/* --- 2. FORDULÓ SPECIÁLIS ŰRLAPELEMEK --- */
.task-image {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text-puzzle {
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--text-dark);
}

.inline-input {
    border: none;
    border-bottom: 2px dashed var(--accent-blue);
    background: transparent;
    padding: 2px 10px;
    font-size: 1.1rem;
    font-family: 'Quicksand', sans-serif;
    color: var(--accent-blue);
    font-weight: bold;
    text-align: center;
    width: 150px;
    transition: all 0.2s;
}

.inline-input:focus {
    outline: none;
    border-bottom-color: var(--accent-green);
    background-color: #f0f8ff;
}

.small-input {
    width: 50px;
    margin-left: 10px;
}

.char-input {
    width: 40px;
    text-transform: uppercase;
}

.puzzle-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.puzzle-table td,
.puzzle-table th {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    vertical-align: middle;
}

.puzzle-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.code-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--sidebar-bg);
    padding: 20px;
    border-radius: 10px;
}

.list-puzzle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.list-item select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--accent-blue);
    font-family: inherit;
    font-weight: bold;
}

/* Mobil nézet igazítás a feladatokhoz */
@media (max-width: 768px) {
    .puzzle-table td {
        display: block;
        border: none;
        padding: 8px 15px;
    }

    .puzzle-table tr {
        border: 1px solid var(--border-color);
        display: block;
        margin-bottom: 10px;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .list-item select {
        width: 100%;
    }
}

/* --- 9. FELADAT: SZÓKERESŐ --- */
.word-search-grid {
    display: grid;
    gap: 4px;
    background-color: var(--sidebar-bg);
    padding: 15px;
    border-radius: 10px;

    /* EZT A SORT VÁLTOZTATTUK MEG: */
    max-width: 600px;
    /* 100% helyett fix maximumot kapott */

    margin: 0 auto;
    user-select: none;
}

.word-cell {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    /* Tökéletes négyzet marad */
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 0 #d1d1d1;
    transition: all 0.1s ease;
}

/* Amikor a játékos rákattint (Kihúzza a betűt) */
.word-cell.found {
    background-color: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 0 0 transparent;
    /* Lenyomódik */
    transform: translateY(2px);
    opacity: 0.6;
    /* Kicsit halványodik, hogy a "maradék" betűk kiugorjanak */
}

/* Hover effekt (asztali gépre) */
.word-cell:not(.found):hover {
    background-color: #f0f8ff;
    border-color: var(--accent-blue);
}

/* Mobilon kicsit kisebb betűk, hogy kiférjen 12-13 oszlop */
@media (max-width: 600px) {
    .word-cell {
        font-size: 0.9rem;
        border-radius: 4px;
        gap: 2px;
    }

    .word-search-grid {
        padding: 5px;
    }
}

/* --- 10. FELADAT: KVÍZ --- */
.quiz-question {
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.quiz-question p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: var(--accent-blue);
    font-family: 'Fredoka', sans-serif;
}

.radio-label {
    display: block;
    /* Hogy egymás alá kerüljenek és kitöltsék a sort */
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 1.05rem;
}

.radio-label:hover {
    background-color: #f0f8ff;
    border-color: var(--accent-blue);
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.3);
    /* Kicsit felnagyítjuk a pöttyöt a jobb láthatóságért */
    cursor: pointer;
}