/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilo para as páginas */
.page {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    padding: 40px 40px 80px 40px;
    position: relative;
    overflow: hidden;
    border: 4px solid #4a90e2;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.page:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo para os balões de fala */
.speech-bubble {
    position: relative;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f8ff 100%);
    border-radius: 25px;
    padding: 20px;
    margin: 25px 0;
    border: 3px solid #4a90e2;
    animation: float 3s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    z-index: 2;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 60px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #e6f2ff transparent;
    display: block;
    width: 0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Estilo para títulos */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #e74c3c;
    text-shadow: 3px 3px 0 #f9e79f;
    animation: bounce 2s infinite;
    margin-bottom: 30px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

h2 {
    font-size: 2rem;
    border-bottom: 4px dashed #3498db;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Estilo para listas */
ul {
    list-style-type: none;
    padding-left: 25px;
}

li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

li:before {
    content: "💡";
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Estilo para botões */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    margin: 15px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #2980b9;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #2980b9;
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #2980b9;
}

.btn-download {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 6px 0 #27ae60;
}

.btn-download:hover {
    box-shadow: 0 8px 0 #27ae60;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.btn-download:active {
    box-shadow: 0 4px 0 #27ae60;
}

/* Estilo para personagens */
.character {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    animation: wiggle 4s infinite;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}

.character-1 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.character-2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.character-3 {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Estilo para imagens ilustrativas */
.illustration {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin: 20px auto;
    display: block;
    transition: transform 0.3s ease;
}

.illustration:hover {
    transform: scale(1.05);
}

.image-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.image-caption {
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Estilo para o rodapé */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    color: #7f8c8d;
    font-size: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page {
        padding: 25px 25px 70px 25px;
        margin-bottom: 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .character {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .illustration {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .page {
        padding: 20px 20px 60px 20px;
    }
    
    .illustration {
        max-width: 200px;
    }
}

/* Animações adicionais */
.page:nth-child(odd) {
    border-color: #e74c3c;
}

.page:nth-child(even) {
    border-color: #2ecc71;
}

.speech-bubble:nth-child(odd) {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #f39c12;
}

.speech-bubble:nth-child(even) {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-color: #17a2b8;
}

/* Estilo especial para a mensagem final */
.speech-bubble.special-message {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ff9800;
    color: #2c3e50;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.speech-bubble.special-message p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Efeitos especiais */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #e74c3c, #2ecc71, #f39c12);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}