/* Estilos principais */
body {
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gradient-bg {
    background: linear-gradient(135deg, #0F9D58 0%, #0D7D47 100%);
}

.classroom-pattern {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .05) 35px, rgba(255, 255, 255, .05) 70px);
}

.hidden {
    display: none;
}

.lesson-nav-btn {
    transition: all 0.3s ease;
}

.lesson-nav-btn:hover {
    transform: translateX(5px);
}

.lesson-nav-btn.prev:hover {
    transform: translateX(-5px);
}

.page-number {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
}

.toc-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-item:hover {
    transform: translateX(10px);
    color: #0F9D58;
}

.catalog-box {
    border: 2px solid #333;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

/* View transition */
@view-transition {
    navigation: auto;
}
