:root {
    --text-dark: rgba(67, 67, 67, 1);
}

body {
    font-family: Inter, sans-serif;
    color: var(--text-dark);
    background-image: url("assets/bg.jpg");
    background-size: cover;
    background-position: center 80%;
    background-attachment: fixed;
    margin: 0;
}

h2 {
    color: var(--text-dark);
}

.hero{
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.hero-logo{
    height: 180px;
}

.download-btn{
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background-image: url("assets/green-texture.jpg");
    background-size: cover;
    background-position: center;
    padding: 20px 70px;
    border-radius: 35px;
    text-decoration: none;
    box-shadow: darkslategrey 2px 2px 5px;
    color: rgba(67, 67, 67, 1);
    font-weight: bolder;
    font-size: 20px;
    margin-top: 10px;
    transition: all 0.2s ease;
    border: none;
}

.download-btn:hover{
    background-image:
            linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
            url("assets/dark-green-texture.jpg");
    transform: translateY(-2px);
}

.download-btn:active{
    background-image:
            linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
            url("assets/dark-green-texture.jpg");
    transform: translateY(1px);
}

.btn-icon{
    height: 30px;
}

.try-btn{
    background-image: url("assets/light-green-texture.jpg");
    background-size: cover;
    background-position: center;
    padding: 20px 70px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: darkslategrey 2px 2px 5px;
    color: rgba(67, 67, 67, 1);
    font-weight: bolder;
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.try-btn:hover{
    background-image:
            linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
            url("assets/dark-green-texture.jpg");
    transform: translateY(-2px);
}

.try-btn:active{
    background-image:
            linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
            url("assets/dark-green-texture.jpg");
    transform: translateY(1px);
}

.hero-tagline{
    font-size: 25px;
    line-height: 1.5;
    color: var(--text-dark);
    max-width: 1200px;
}

.hero-ages{
    font-size: 20px;
}

.themes-container{
    max-width: 73vw;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-cards{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-card{
    width: 200px;
    height: 200px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    box-shadow: darkslategrey 2px 2px 5px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: transform 0.2s ease;
}

.theme-card-header {
    width: 100%;
    height: 100%;
}

.theme-card img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mobile-label, .chevron {
    display: none;
}

.card-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-dark);
    font-weight: bolder;
    background-image: url("assets/texture.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-card:hover .card-overlay{
    opacity: 1;
}

.theme-card:hover{
    transform: translateY(-2px);
}

.theme-card.active .card-overlay{
    opacity: 1;
}

.theme-card:active{
    transform: translateY(1px);
}

.theme-box{
    background-image: url("assets/texture.jpeg");
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    padding: 30px 60px;
    margin: 20px auto;
    display: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

#theme-text{
    font-size: 18px;
    line-height: 1.5;
    max-width: 95%;
    margin: 0 auto;
}

.designed-for-kids {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.benefit-item {
    font-weight: bold;
    font-size: 18px;
}

.benefit-item img {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    margin-bottom: 15px;
}

.detailed-features {
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    line-height: 1.4;
}

.f-icon {
    font-size: 24px;
}

.testimonials {
    text-align: center;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.rating {
    font-weight: bold;
    margin-bottom: 30px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    width: 100%;
    scrollbar-width: none;
}

.testimonial-cards::-webkit-scrollbar {
    display: none;
}

.t-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: #fff;
    padding: 30px 25px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: left;
    display: block;
    border: 2px solid rgba(107, 142, 35, 0.05);
}

.t-card .author {
    font-weight: bold;
    color: #666;
    margin-top: 15px;
}

.carousel-btn {
    background-color: white;
    background-image: url("assets/texture.jpeg");
    background-size: cover;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 10;
}

.carousel-btn.prev-btn { left: -25px; }
.carousel-btn.next-btn { right: -25px; }

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.faq {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: #444;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px;
}

footer {
    background: rgba(18, 53, 18, 0.85);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.footer-bottom {
    font-size: 14px;
    opacity: 0.8;
}

#game-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center; align-items: center;
    z-index: 1000;
}

.modal-hidden {
    display: none !important;
}

.modal-content {
    background-image: url("assets/texture.jpeg");
    padding: 40px;
    border-radius: 30px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 24px; font-weight: bold;
    cursor: pointer;
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #6b8e23;
    background-image: url("assets/fingerprint-texture.png");
    background-size: cover;
    background-blend-mode: multiply;
    color: white;
    border: 3px solid #173215;
    border-radius: 40px 20px 50px 30px / 30px 50px 20px 40px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 6px 8px 0px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .hero{
        height: auto;
        padding-top: 40px;
        padding-bottom: 10px;
        padding: 20px;
    }

    .hero-logo {
        height: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .themes-container {
        max-width: 100%;
    }

    .theme-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .theme-card {
        width: 100%;
        height: auto;
        border-radius: 20px;
        background-image: url("assets/texture.jpeg");
        background-size: cover;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .theme-card:hover {
        transform: none;
    }

    .theme-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 70px;
        width: 100%;
    }

    .theme-card-header img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        box-shadow: none;
    }

    .mobile-label {
        display: block;
        flex: 1;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        color: var(--text-dark);
        text-transform: uppercase;
    }

    .chevron {
        display: block;
        font-size: 24px;
        color: var(--text-dark);
        padding-right: 20px;
        transition: transform 0.3s ease;
    }

    .theme-card.active .chevron {
        transform: rotate(180deg);
    }

    .card-overlay {
        display: none !important;
    }

    .theme-box {
        margin: 0;
        padding: 15px 20px;
        background: transparent;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    #theme-text {
        font-size: 14px;
        text-align: left;
    }

    .benefits-grid {
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: space-between;
    }

    .benefit-item {
        font-size: 14px;
        flex: 1;
    }

    .benefit-item img {
        width: 70px;
        height: 70px;
    }

    .detailed-features {
        padding: 30px 20px;
        margin: 20px;
    }

    .features-list {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .t-card {
        flex: 0 0 70%;
    }

    .carousel-btn {
        display: none;
    }
}