

:root {
    --bg-dark: #070a13;
    --card-bg: #161e2d;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --tag-bg: rgba(79, 70, 229, 0.15);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --line: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}
 img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 35px;
}
.motto{
    max-width:600px;margin:0px auto;color:#94a3b8;
}

.brand {
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0px;
    display: block;
    text-transform: uppercase;
}


#app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1150px;
    margin: 0 auto;
    justify-content: center;
}

    .hero-image {
    width: 100%;
  height: clamp(240px, 40vw, 360px);
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.app-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .app-card:hover {
        transform: translateY(-8px);
        border-color: rgba(79, 70, 229, 0.5);
    }




.banner-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0f172a; /* רקע כהה כגיבוי לתמונה חסרה */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.app-card:hover .banner {
    transform: scale(1.1);
}

.content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

h2 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}

p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.tags {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.65rem;
    background: var(--tag-bg);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn {
    margin-top: auto;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .btn:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

@media (max-width: 420px) {
    body {
        padding: 30px 15px;
    }

    #app-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

footer {
    margin-top: 80px;
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 0.9rem;
}

    footer a {
        color: var(--accent-light);
        text-decoration: none;
        margin-top: 10px;
        display: inline-block;
    }




.container {
    max-width: 920px;
    margin: 0 auto;
}
.container > p {
    max-width: 760px;
}

.container h1 {
    font-size: 3rem;
     margin-bottom: 10px;
}



h1 {
    font-size: 2.2rem;
    margin-bottom: 0;
     margin-top: 0;
}



.section {
    margin-top: 40px;
    text-align: left;
}

.game-card {
    background: #111;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.btn-play {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: #00ff99;
    color: black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.learn-more {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
}

    .learn-more:hover {
        color: white;
    }


.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px; /* או left: 20px; אם אתה מעדיף */
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-link {
    text-decoration: none;
    color: #94a3b8; /* צבע אפור כמו הטקסט שלך */
    transition: color 0.3s;
}

    .lang-link:hover {
        color: #ffffff;
    }

    .lang-link.active {
        color: #fbbf24; /* צבע צהוב/אמבר שמתאים לכרטיסיית הטריוויה שלך */
        border-bottom: 2px solid #fbbf24;
    }

/* התאמה למובייל - שהכפתורים לא יברחו */
@media (max-width: 600px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }
}



/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid #333;
    font-family: sans-serif;
    direction: rtl;
}

.cookie-text {
    font-size: 14px;
    margin-left: 20px;
}

    .cookie-text a {
        color: #4db8ff;
        text-decoration: none;
    }

.cookie-btns {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.btn-cookie {
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: 0.2s;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-reject {
    background: #444;
    color: white;
}

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* התאמה למובייל */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-text {
        margin-left: 0;
    }
}





/* Footer Navigation Styles */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

    .footer-section h4 {
        color: var(--text-main);
        font-size: 0.9rem;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 8px;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-section ul li {
            margin-bottom: 8px;
        }

            .footer-section ul li a {
                color: var(--text-dim);
                font-size: 0.85rem;
                text-decoration: none;
                transition: color 0.2s;
            }

                .footer-section ul li a:hover {
                    color: var(--accent-light);
                }

/* התאמה למובייל */
@media (max-width: 600px) {
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        min-width: 100%;
    }
}


/* MORE CHALLENGES SECTION */

.more-challenges {
    max-width: 920px;
    margin: 70px auto 20px auto;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}

.more-challenges h2 {
    margin-bottom: 22px;
    font-size: 1.7rem;
    color: #fff;
}

/* GRID */

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* CARD */

.card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: var(--text-main);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-light);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

/* THUMB */

.card-thumb {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    display: block;
}

/* TEXT */

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.35rem;
    color: #fff;
}

.card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ARROW */

.card::after {
    content: "→";
    display: inline-block;
    margin-top: 18px;
    font-size: 1.15rem;
    color: var(--accent-light);
    transition: transform 0.2s ease;
}

.card:hover::after {
    transform: translateX(4px);
}

/* MOBILE */

@media (max-width: 700px) {

    .more-challenges {
        margin-top: 50px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card-thumb {
        height: 160px;
    }
}


.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.hero-text {
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.mini-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    margin-bottom: 50px;
}

.mini-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    padding: 12px 18px;
    border-radius: 14px;
    color: var(--text-main);
    font-size: 0.95rem;
}

















.mini-game-box {
    margin: 40px 0;
    text-align: center;
}

.reaction-area {
    margin-top: 20px;
    height: 220px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: #222;
    user-select: none;
}

.hidden {
    display: none;
}

#reaction-result {
    margin-top: 24px;
    font-size: 1.2rem;
}












.subpage header {
    padding-top: 20px;
    padding-bottom: 10px;
}

.subpage header h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 10px;
}

.subpage header p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.85;
}


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span:last-child {
    color: var(--text-dim);
}


















#precision-timer-display {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 24px;
}

#precision-result {
    margin-top: 24px;
    font-size: 1.2rem;
}

#circle-area {
    position: relative;
    width: 100%;
    height: 420px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
}

#tap-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #22c55e;
    cursor: pointer;
}

#circle-score {
    margin-top: 24px;
    font-size: 1.2rem;
}